@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,400&family=Montserrat:wght@400;600;700;800;900&display=swap");

:root {
  --gold: #c5a86b;
  --gold-dark: #a38850;
  --gold-light: #dfc48a;
  --black: #000;
  --dark: #0b0b0b;
  --dark2: #111111;
  --dark3: #181818;
  --white: #fff;
  --text-muted: rgba(255, 255, 255, 0.55);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  background: var(--black);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Cormorant Garamond", Georgia, serif;
}

/* =====================
   BACKGROUND TEXTURE
   ===================== */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 20% 50%,
      rgba(197, 168, 107, 0.04) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse at 80% 20%,
      rgba(197, 168, 107, 0.03) 0%,
      transparent 50%
    );
  pointer-events: none;
  z-index: 0;
}

/* =====================
   FULL-SCREEN LOADING
   ===================== */
.full-screen-loading {
  position: fixed;
  inset: 0;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.loading-content {
  text-align: center;
  color: var(--gold);
}

.loading-content h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  margin: 0 0 8px;
}

.loading-content p {
  font-family: "Montserrat", sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(197, 168, 107, 0.5);
  margin: 0;
}

.spinner {
  border: 2px solid rgba(197, 168, 107, 0.15);
  border-top: 2px solid var(--gold);
  border-radius: 50%;
  width: 52px;
  height: 52px;
  animation: spin 1s linear infinite;
  margin: 0 auto 28px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* =====================
   BACK BUTTON
   ===================== */
.back-button {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(197, 168, 107, 0.4);
  border-radius: 2px;
  padding: 10px 18px;
  color: var(--gold);
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.back-button:hover {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
  transform: translateY(-1px);
}

.back-button i {
  font-size: 0.8rem;
}

/* =====================
   BOOKING CONTAINER
   ===================== */
.booking-container {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: 100px 20px 60px;
}

/* =====================
   BOOKING HEADER
   ===================== */
.booking-header {
  text-align: center;
  margin-bottom: 48px;
}

.booking-eyebrow {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.booking-title {
  font-family: "Cormorant Garamond", serif;
  color: var(--white);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
  line-height: 1;
}

.booking-title span {
  color: var(--gold);
}

.booking-subtitle {
  font-family: "Montserrat", sans-serif;
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0;
}

/* =====================
   STEP INDICATOR
   ===================== */
.step-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin-bottom: 40px;
}

.step {
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid rgba(197, 168, 107, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: rgba(197, 168, 107, 0.35);
  transition: all 0.35s ease;
  position: relative;
  z-index: 1;
}

.step.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
}

.step.completed {
  background: rgba(197, 168, 107, 0.12);
  border-color: rgba(197, 168, 107, 0.5);
  color: var(--gold);
}

.step-line {
  width: 60px;
  height: 1px;
  background: rgba(197, 168, 107, 0.2);
}

/* =====================
   BOOKING CARD
   ===================== */
.booking-card {
  background: var(--dark2);
  border: 1px solid rgba(197, 168, 107, 0.14);
  border-radius: 2px;
  padding: 40px 36px;
  position: relative;
  animation: cardFadeUp 0.5s ease both;
}

@keyframes cardFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =====================
   FORM ELEMENTS
   ===================== */
.form-section-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--white);
  text-align: center;
  margin-bottom: 32px;
}

.form-section-title em {
  color: var(--gold);
  font-style: italic;
}

.form-label {
  font-family: "Montserrat", sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  display: block;
}

.form-control,
.form-select {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  color: var(--white);
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
  padding: 13px 16px;
  width: 100%;
  transition: border-color 0.3s ease;
  outline: none;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.22);
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(197, 168, 107, 0.5);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
  color: var(--white);
}

.form-control:disabled {
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.25);
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.06);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* Date input */
input[type="date"] {
  cursor: pointer;
  color-scheme: dark;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.7) sepia(1) hue-rotate(5deg) saturate(2);
  cursor: pointer;
  opacity: 0.7;
}

input[type="date"]::-webkit-datetime-edit {
  color: var(--white);
}

/* =====================
   PARTY SIZE GRID
   ===================== */
.party-size-grid-container {
  border: 1px solid rgba(197, 168, 107, 0.12);
  border-radius: 2px;
  padding: 16px;
  margin: 12px 0;
  max-height: 210px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(197, 168, 107, 0.3) transparent;
}

.party-size-grid-container::-webkit-scrollbar {
  width: 4px;
}
.party-size-grid-container::-webkit-scrollbar-track {
  background: transparent;
}
.party-size-grid-container::-webkit-scrollbar-thumb {
  background: rgba(197, 168, 107, 0.3);
  border-radius: 2px;
}

.party-size-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(62px, 1fr));
  gap: 8px;
}

.party-size-box {
  height: 48px;
  border: 1px solid rgba(197, 168, 107, 0.25);
  border-radius: 2px;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.party-size-box:hover:not(.disabled) {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(197, 168, 107, 0.06);
}

.party-size-box.selected {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
  font-weight: 700;
}

.party-size-box.disabled {
  opacity: 0.25;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.2);
}

.party-size-box.disabled.selected {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
  opacity: 0.55;
}

.party-helper {
  font-family: "Montserrat", sans-serif;
  font-size: 0.7rem;
  color: rgba(197, 168, 107, 0.6);
  text-align: center;
  margin-top: 10px;
  display: none;
  letter-spacing: 0.04em;
}

.party-helper.show {
  display: block;
}

/* =====================
   TIME PICKER
   ===================== */
.time-display-container {
  position: relative;
}

.form-control[id="timeDisplay"] {
  cursor: pointer;
  transition:
    border-color 0.3s ease,
    color 0.3s ease;
}

.time-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--dark3);
  border: 1px solid rgba(197, 168, 107, 0.3);
  border-radius: 2px;
  max-height: 220px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  scrollbar-width: thin;
  scrollbar-color: rgba(197, 168, 107, 0.3) transparent;
}

.time-dropdown::-webkit-scrollbar {
  width: 4px;
}
.time-dropdown::-webkit-scrollbar-track {
  background: transparent;
}
.time-dropdown::-webkit-scrollbar-thumb {
  background: rgba(197, 168, 107, 0.3);
  border-radius: 2px;
}

.time-dropdown.hidden {
  display: none;
}

.time-dropdown-option {
  padding: 13px 18px;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.2s ease;
}

.time-dropdown-option:last-child {
  border-bottom: none;
}

.time-dropdown-option:hover {
  background: rgba(197, 168, 107, 0.08);
  color: var(--gold);
}

.time-dropdown-option.selected {
  background: var(--gold);
  color: var(--black);
  font-weight: 800;
}

/* =====================
   BUTTONS
   ===================== */
.btn-gold {
  background-color: var(--gold);
  color: var(--black);
  border: 1px solid var(--gold);
  padding: 14px 32px;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 2px;
  width: 100%;
  cursor: pointer;
  transition:
    background 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
  display: block;
  text-align: center;
  text-decoration: none;
}

.btn-gold:hover:not(:disabled) {
  background-color: transparent;
  color: var(--gold);
  transform: translateY(-1px);
}

.btn-gold:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.btn-outline-gold {
  background-color: transparent;
  color: var(--gold);
  border: 1px solid rgba(197, 168, 107, 0.5);
  padding: 14px 32px;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 2px;
  width: 100%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  text-align: center;
}

.btn-outline-gold:hover:not(:disabled) {
  background-color: var(--gold);
  color: var(--black);
  border-color: var(--gold);
  transform: translateY(-1px);
}

.btn-outline-gold:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.button-group {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

/* =====================
   PREVIEW / SUMMARY
   ===================== */
.preview-section {
  background: rgba(197, 168, 107, 0.04);
  border: 1px solid rgba(197, 168, 107, 0.15);
  border-radius: 2px;
  padding: 28px;
  margin-bottom: 24px;
}

.preview-title {
  font-family: "Cormorant Garamond", serif;
  color: var(--white);
  font-weight: 300;
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  text-align: center;
  text-transform: uppercase;
}

.preview-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.preview-item:last-child {
  border-bottom: none;
}

.preview-label {
  font-family: "Montserrat", sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

.preview-value {
  font-family: "Montserrat", sans-serif;
  color: var(--white);
  font-weight: 600;
  font-size: 0.85rem;
  text-align: right;
}

/* =====================
   ALERT
   ===================== */
.alert-custom {
  background: rgba(197, 168, 107, 0.06);
  border: 1px solid rgba(197, 168, 107, 0.3);
  border-left: 3px solid var(--gold);
  color: rgba(255, 255, 255, 0.75);
  padding: 20px 24px;
  border-radius: 2px;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
  line-height: 1.7;
}

/* =====================
   SUCCESS STATE
   ===================== */
.success-message {
  text-align: center;
  padding: 20px 0;
}

.success-icon {
  font-size: 56px;
  color: var(--gold);
  margin-bottom: 20px;
  display: block;
  animation: successPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes successPop {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.success-title {
  font-family: "Cormorant Garamond", serif;
  color: var(--white);
  font-weight: 300;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.success-title span {
  color: var(--gold);
}

.success-text {
  font-family: "Montserrat", sans-serif;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.8;
  letter-spacing: 0.04em;
  margin-bottom: 32px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

/* =====================
   ERRORS
   ===================== */
.error-message {
  font-family: "Montserrat", sans-serif;
  color: #e57373;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-top: 6px;
  display: none;
}

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

.form-control.error {
  border-color: rgba(229, 115, 115, 0.6);
}

/* =====================
   DIVIDER
   ===================== */
.form-divider {
  height: 1px;
  background: rgba(197, 168, 107, 0.1);
  margin: 28px 0;
}

/* =====================
   FOOTER
   ===================== */
.booking-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 32px 20px;
  border-top: 1px solid rgba(197, 168, 107, 0.1);
  margin-top: 40px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  line-height: 2;
}

.booking-footer a {
  color: rgba(197, 168, 107, 0.5);
  text-decoration: none;
  transition: color 0.3s;
}

.booking-footer a:hover {
  color: var(--gold);
}

/* =====================
   UTILITIES
   ===================== */
.hidden {
  display: none !important;
}

.mb-3 {
  margin-bottom: 20px;
}
.mb-4 {
  margin-bottom: 28px;
}
.text-center {
  text-align: center;
}
.d-block {
  display: block;
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 768px) {
  .booking-container {
    padding: 90px 16px 40px;
  }
  .booking-card {
    padding: 28px 22px;
  }
  .button-group {
    flex-direction: column;
    gap: 10px;
  }
  .step {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
  .step-line {
    width: 40px;
  }
  .party-size-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 480px) {
  .booking-card {
    padding: 24px 18px;
  }
  .party-size-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .back-button span {
    display: none;
  }
  .back-button {
    padding: 10px 12px;
  }
  .preview-item {
    flex-direction: column;
    gap: 4px;
  }
  .preview-value {
    text-align: left;
  }
}
