:root {
  --gold: #d7a24a;
  --gold-dark: #8e611b;
  --bg-dark: #111111;
  --card: rgba(17, 17, 17, 0.5);
  --border: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --muted: rgba(247, 243, 237, 0.75);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  font-family: "Be Vietnam Pro", Arial, sans-serif;
  color: var(--text);
  background:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("../../shares/images/background.jpg") center / cover no-repeat fixed;
  line-height: 1.7;
}

.booking-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.booking-card {
  width: min(100%, 920px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.booking-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px 36px 0;
  flex-wrap: wrap;
}

.topbar-back {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 2px;
  font-size: 14px;
}

.booking-header {
  padding: 36px 36px 18px;
}

.eyebrow,
.modal-eyebrow {
  font-size: 18px;
  letter-spacing: 3px;
  color: orange;
}

.eyebrow {
  margin-bottom: 12px;
}

.booking-header h1,
.modal-content h2 {
  font-family: "Playfair Display", serif;
}

.booking-header h1 {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 12px;
}

.booking-intro {
  color: var(--muted);
  line-height: 1.6;
  max-width: 90vw;
}

.booking-form {
  padding: 18px 36px 36px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  font-size: 14px;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 14px 16px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

input::placeholder,
textarea::placeholder {
  color: rgba(247, 243, 237, 0.45);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(215, 162, 74, 0.85);
  box-shadow: 0 0 0 4px rgba(215, 162, 74, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.actions {
  margin-top: 28px;
}

.submit-btn {
  border: none;
  border-radius: 999px;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: white;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease, opacity 0.2s ease;
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.submit-btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.back-link {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 2px;
}

.success-message {
  display: none;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(51, 138, 73, 0.18);
  border: 1px solid rgba(88, 201, 118, 0.35);
  color: #dff7e4;
  line-height: 1.5;
}

.success-message.show {
  display: block;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.modal.hidden {
  display: none;
}

.hidden {
  display: none !important;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.modal-content {
  position: relative;
  width: min(92%, 520px);
  margin: 10vh auto 0;
  background: linear-gradient(180deg, rgba(28, 23, 20, 0.98), rgba(17, 17, 17, 0.98));
  border: 1px solid rgba(215, 162, 74, 0.22);
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  padding: 32px 28px 28px;
  text-align: center;
  color: var(--text);
  animation: modalFadeIn 0.28s ease, modalScaleIn 0.28s ease;
}

.modal-eyebrow {
  margin-bottom: 10px;
}

.modal-content h2 {
  font-size: clamp(28px, 4vw, 34px);
  margin-bottom: 14px;
}

.modal-message {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 22px;
}

.reservation-code {
  margin-bottom: 24px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  line-height: 1.6;
}

.reservation-code strong {
  color: var(--gold);
  font-size: 18px;
  letter-spacing: 0.5px;
}

.modal-actions {
  display: flex;
  justify-content: center;
}

.modal-btn {
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: white;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.modal-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

#bookingTime option,
#occasion option {
  color: #111 !important;
  background: #fff !important;
}

#bookingTime option:disabled,
#occasion option:disabled {
  color: #777 !important;
}

#bookingTime,
#occasion {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 40px;
  background-color: rgba(255, 255, 255, 0.06);
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23ffffff' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px 6px;
}

#bookingTime:focus,
#occasion:focus {
  background-color: rgba(255, 255, 255, 0.08);
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23ffffff' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px 6px;
}

/* Guest count is a manual numeric text field. Keep browser spinners hidden if type=number is used later. */
#guestCount::-webkit-outer-spin-button,
#guestCount::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#guestCount {
  appearance: textfield;
  -moz-appearance: textfield;
}

/* Language dropdown - aligned with main site */
.lang-dropdown {
  position: relative;
  flex: 0 0 auto;
}

.lang-current {
  width: auto;
  min-width: 64px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.lang-current:hover {
  background: rgba(255, 255, 255, 0.16);
}

.lang-current[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.24);
}

.arrow {
  font-size: 10px;
  opacity: 0.8;
  transition: transform 0.2s ease;
}

.lang-current[aria-expanded="true"] .arrow {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 140px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: rgba(21, 17, 15, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: all 0.2s ease;
  z-index: 2000;
}

.lang-menu.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.lang-menu li {
  padding: 6px 14px;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.lang-menu li:hover {
  background: rgba(255, 255, 255, 0.08);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalScaleIn {
  from {
    transform: translateY(10px) scale(0.97);
  }
  to {
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 768px) {
  .booking-topbar {
    padding: 20px 20px 0;
  }

  .booking-header,
  .booking-form {
    padding-left: 20px;
    padding-right: 20px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .field.full {
    grid-column: auto;
  }

  .modal-content {
    width: calc(100% - 24px);
    margin-top: 8vh;
    padding: 28px 20px 24px;
  }

  .lang-current {
    min-width: 58px;
    height: 34px;
    font-size: 12px;
    padding: 0 10px;
  }

  .lang-menu {
    min-width: 132px;
  }

}

@media (max-width: 640px) {
  .lang-current {
    min-width: 56px;
  }

  .lang-menu {
    min-width: 128px;
  }

  .actions {
    width: 100%;
  }

  .submit-btn,
  .back-link {
    width: 100%;
    text-align: center;
  }
}

/* ---------- Shared toast notification UI ---------- */

.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 12000;
  display: grid;
  gap: 12px;
  justify-items: end;
  max-width: min(92vw, 720px);
}

.toast {
  display: block;
  width: fit-content;
  max-width: min(92vw, 720px);
  padding: 8px 10px;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: toastIn 0.22s ease;
}

.toast-success {
  background: rgba(28, 67, 41, 0.94);
  border-color: rgba(88, 201, 118, 0.35);
  color: #e6ffec;
}

.toast-error {
  background: rgba(90, 28, 28, 0.95);
  border-color: rgba(255, 120, 120, 0.35);
  color: #ffe6e6;
}

.toast-info {
  background: rgba(33, 33, 33, 0.94);
  border-color: rgba(215, 162, 74, 0.28);
  color: #f7f3ed;
}

.toast-message {
  line-height: 1.5;
  font-size: 14px;
}

.toast-removing {
  animation: toastOut 0.18s ease forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(-6px) scale(0.98); }
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
