/* =========================================
   THE BANGALORE CONSERVATORY — RSVP PAGE
   Theme: Blue — hsl(221 62% 19%)
   ========================================= */

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

:root {
  --bg:           hsl(221, 68%,  7%);
  --bg-raised:    hsl(221, 62%, 12%);
  --bg-card:      hsl(221, 58%, 17%);
  --bg-input:     hsl(221, 60%, 13%);
  --border:       hsl(221, 40%, 26%);
  --border-input: hsl(221, 36%, 32%);
  --accent:       hsl(212, 80%, 60%);
  --accent-hover: hsl(210, 86%, 70%);
  --accent-dim:   hsla(212, 80%, 60%, 0.12);
  --accent-dim2:  hsla(212, 80%, 60%, 0.22);
  --text:         hsl(220, 38%, 94%);
  --text-muted:   hsl(220, 18%, 68%);
  --text-dim:     hsl(221, 16%, 46%);
  --success:      hsl(160, 52%, 44%);
  --header-h:     72px;
  --page-max:     1080px;
  --r-sm:  5px;
  --r-md:  10px;
  --r-lg:  14px;
  --r-xl:  18px;
  --font-title: 'Playfair Display', Georgia, serif;
  --font-ui:    'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

sup { font-size: 0.6em; vertical-align: super; }

/* ── Page wrapper ── */
.page-wrap {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ══════════════════════════════════
   HEADER
══════════════════════════════════ */
.site-header {
  height: var(--header-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
}

.site-header__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
}

.logo { display: flex; align-items: center; gap: 12px; }

.logo__img {
  height: 42px;
  width: 42px;
  max-height: 42px;
  max-width: 42px;
  flex-shrink: 0;
  object-fit: contain;
}

.logo__img--sm { height: 32px; }

.logo__text { display: flex; flex-direction: column; gap: 1px; }
.logo__name { font-family: var(--font-title); font-size: 16px; font-weight: 600; color: var(--text); }
.logo__sub  { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-dim); }

/* ══════════════════════════════════
   EVENT HERO
══════════════════════════════════ */
.event-hero {
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
  padding: 52px 0 56px;
}

.event-hero__layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}

/* Poster */
.event-hero__poster-col { flex-shrink: 0; }

.event-hero__poster {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-xl);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.55);
}

/* Info */
.event-hero__info { padding-top: 4px; }

.event-hero__presented {
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.event-hero__title {
  font-family: var(--font-title);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.06;
  margin-bottom: 6px;
}

.event-hero__subtitle {
  font-size: 15px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 32px;
}

/* Meta pills */
.event-meta { display: flex; flex-direction: column; gap: 16px; margin-bottom: 36px; }

.event-meta__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.event-meta__icon {
  width: 32px; height: 32px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-dim2);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}

.event-meta__item > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.event-meta__label {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 700;
}

.event-meta__value {
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
  line-height: 1.5;
}

.event-meta__address {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}

/* Yellow seating note in hero meta */
.event-meta__icon--yellow {
  background: hsla(45, 90%, 55%, 0.12);
  border-color: hsla(45, 90%, 55%, 0.28);
  color: hsl(45, 90%, 58%);
}

.event-meta__label--yellow {
  color: hsl(45, 85%, 52%);
}

.event-meta__value--yellow {
  color: hsl(45, 90%, 72%);
  font-weight: 600;
}

/* Hero CTA */
.btn-primary--hero {
  display: inline-flex;
  width: auto;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

/* ══════════════════════════════════
   BOOKING SECTION
══════════════════════════════════ */
.booking-section {
  background: var(--bg);
  padding: 48px 0 80px;
}

.booking-layout {
  display: grid;
  grid-template-columns: 1fr 348px;
  gap: 32px;
  align-items: start;
}

/* ── Form column ── */
.booking-main__head { margin-bottom: 28px; }

.booking-main__title {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.booking-main__desc { font-size: 14px; color: var(--text-muted); }

/* Form cards */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px;
  margin-bottom: 16px;
}

.form-card__title {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-card__step {
  width: 24px; height: 24px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-dim2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.form-group { margin-bottom: 18px; }
.form-group:last-child { margin-bottom: 0; }

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.required { color: var(--accent); }

.form-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-input);
  border-radius: var(--r-md);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  padding: 12px 15px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-input::placeholder { color: var(--text-dim); }
.form-input.error { border-color: #e05252; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-hint { font-size: 12px; color: var(--text-dim); margin-top: 6px; }

.error-msg { font-size: 12px; color: #e07373; margin-top: 5px; }

/* Seat selector */
.seat-selector {
  display: flex;
  align-items: center;
  width: fit-content;
  border: 1px solid var(--border-input);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-input);
}

.seat-btn {
  background: transparent;
  border: none;
  color: var(--accent);
  font-size: 18px;
  width: 44px; height: 44px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}

.seat-btn:hover  { background: var(--accent-dim); }
.seat-btn:active { background: hsla(212, 80%, 60%, 0.22); }
.seat-btn:disabled { opacity: 0.3; cursor: default; }

.seat-input {
  width: 52px;
  background: transparent;
  border: none;
  border-left: 1px solid var(--border-input);
  border-right: 1px solid var(--border-input);
  color: var(--text);
  font-family: var(--font-title);
  font-size: 19px;
  font-weight: 700;
  text-align: center;
  height: 44px;
  outline: none;
  -moz-appearance: textfield;
}

.seat-input::-webkit-inner-spin-button,
.seat-input::-webkit-outer-spin-button { -webkit-appearance: none; }

/* Attendee fields */
.attendee-fields { display: flex; flex-direction: column; gap: 10px; }

.attendee-row { display: flex; align-items: center; gap: 10px; }

.attendee-num {
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
  width: 20px;
  text-align: right;
  flex-shrink: 0;
}

.attendee-row input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-input);
  border-radius: var(--r-md);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.attendee-row input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.attendee-row input::placeholder { color: var(--text-dim); }
.attendee-row input.error        { border-color: #e05252; }

/* ── Primary button ── */
.btn-primary {
  -webkit-appearance: none;
  appearance: none;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  border: none;
  border-radius: var(--r-md);
  color: hsl(221, 68%, 7%);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 15px 24px;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.18s, transform 0.1s, box-shadow 0.18s;
  text-decoration: none;
}

.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 4px 20px hsla(212, 80%, 60%, 0.3); }
.btn-primary:active { transform: scale(0.99); }
.btn-primary:disabled { background: var(--border); color: var(--text-dim); cursor: not-allowed; box-shadow: none; transform: none; }

.btn-arrow { font-size: 16px; transition: transform 0.2s; }
.btn-primary:hover .btn-arrow { transform: translateX(3px); }


/* ── Sidebar ── */
.booking-sidebar { position: sticky; top: calc(var(--header-h) + 20px); }

.order-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 24px;
}

.order-card__title {
  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
}

.order-event {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 20px;
}

.order-event__poster {
  width: 56px;
  height: 76px;
  object-fit: cover;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.order-event__name {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}

.order-event__sub {
  font-size: 12px;
  color: var(--text-dim);
  font-style: italic;
  margin-bottom: 4px;
}

.order-event__date { font-size: 12px; color: var(--text-muted); font-weight: 600; }

.order-divider { height: 1px; background: var(--border); margin: 16px 0; }

.order-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}

.order-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.order-value { font-size: 13px; color: var(--text-muted); text-align: right; }

.order-value--seats {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}


/* FCFS note in sidebar */
.order-fcfs {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: hsl(45, 90%, 65%);
  background: hsla(45, 90%, 55%, 0.08);
  border: 1px solid hsla(45, 90%, 55%, 0.22);
  border-radius: var(--r-md);
  padding: 10px 14px;
  margin-top: 16px;
  line-height: 1.5;
}

.order-fcfs svg {
  flex-shrink: 0;
  color: hsl(45, 90%, 60%);
  margin-top: 1px;
}

/* Seats stats row */
.seats-stats {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-top: 16px;
}

.seats-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 10px;
  gap: 3px;
}

.seats-stat__divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}

.seats-stat__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.seats-stat__value {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

/* Seats bar */
.seats-bar { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }

.seats-bar__labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.seats-bar__track {
  height: 22px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 99px;
  overflow: hidden;
}

.seats-bar__fill {
  height: 100%;
  min-width: 40px;
  background: linear-gradient(to right, var(--accent), var(--accent-hover));
  border-radius: 99px;
  transition: width 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.seats-bar__pct {
  font-size: 11px;
  font-weight: 700;
  color: hsl(221, 68%, 7%);
  padding-right: 10px;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.order-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 14px;
  text-align: left;
}

.order-note svg { flex-shrink: 0; color: var(--text-dim); }

/* ══════════════════════════════════
   EVENT DETAILS
══════════════════════════════════ */
.event-details {
  background: var(--bg-raised);
  padding: 56px 0 64px;
  border-top: 1px solid var(--border);
}

.section-heading {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 28px;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px 24px;
  transition: border-color 0.2s;
}

.detail-card:hover { border-color: var(--accent-dim2); }

.detail-card__icon {
  width: 40px; height: 40px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-dim2);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin-bottom: 16px;
}

.detail-card__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.detail-card__main {
  font-family: var(--font-title);
  font-size: 18px;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 6px;
}

.detail-card__sub {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

.seating-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  border-radius: var(--r-md);
  padding: 13px 20px;
}

.seating-note--yellow {
  font-weight: 600;
  color: hsl(45, 90%, 68%);
  background: hsla(45, 90%, 55%, 0.09);
  border: 1px solid hsla(45, 90%, 55%, 0.25);
}

.seating-note--yellow svg { color: hsl(45, 90%, 60%); flex-shrink: 0; }

/* ══════════════════════════════════
   MODAL
══════════════════════════════════ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: hsla(221, 68%, 4%, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
  backdrop-filter: blur(6px);
}

.modal-backdrop.active { display: flex; }

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 48px 40px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  animation: pop 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pop {
  from { opacity: 0; transform: scale(0.88) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal__icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: hsla(160, 52%, 44%, 0.12);
  border: 2px solid var(--success);
  color: var(--success);
  font-size: 26px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
}

.modal__title { font-family: var(--font-title); font-size: 26px; color: var(--text); margin-bottom: 12px; }
.modal__body  { font-size: 15px; color: var(--text-muted); margin-bottom: 8px; line-height: 1.7; }
.modal__body strong { color: var(--text); }
.modal__detail { font-size: 13px; color: var(--text-dim); margin-bottom: 0; }

.btn-outline {
  margin-top: 28px;
  background: transparent;
  border: 1px solid var(--border-input);
  border-radius: var(--r-md);
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 11px 28px;
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s;
}

.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ══════════════════════════════════
   FOOTER
══════════════════════════════════ */
.site-footer {
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  padding: 40px 24px 32px;
  text-align: center;
}

.site-footer__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-title);
  font-size: 16px;
  color: var(--text);
  margin-bottom: 14px;
}

.site-footer__address { font-size: 12px; color: var(--text-dim); line-height: 1.8; margin-bottom: 4px; }
.site-footer__phone   { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }

.site-footer__copy {
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

/* ══════════════════════════════════
   RESPONSIVE — TABLET  ≤ 900px
══════════════════════════════════ */
@media (max-width: 900px) {
  .event-hero__layout {
    grid-template-columns: 220px 1fr;
    gap: 32px;
  }

  .booking-layout {
    grid-template-columns: 1fr;
  }

  /* On tablet/mobile: sidebar becomes a top banner-summary, sidebar CTA hidden, mobile CTA shown */
  .booking-sidebar {
    position: static;
    order: 0;
  }

  .order-card { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; align-items: start; }
  .order-card__title { grid-column: 1 / -1; }
  .order-event { grid-column: 1 / -1; }

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

/* ══════════════════════════════════
   RESPONSIVE — MOBILE  ≤ 600px
══════════════════════════════════ */
@media (max-width: 600px) {
  .page-wrap { padding: 0 16px; }

  /* Hero: poster full width on top */
  .event-hero { padding: 0 0 36px; }

  .event-hero__layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .event-hero__poster-col {
    margin: 0 -16px; /* bleed to edge */
  }

  .event-hero__poster {
    border-radius: 0;
    box-shadow: none;
    width: 100%;
  }

  .event-hero__info { padding: 28px 0 0; }

  .event-hero__title { font-size: 34px; }

  /* Booking */
  .booking-section { padding: 32px 0 60px; }

  .form-card { padding: 20px 16px; }

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

  /* Sidebar below the form on mobile */
  .booking-main    { order: 1 !important; }
  .booking-sidebar { order: 2 !important; }

  /* Order card back to single column */
  .order-card { display: block; }

  /* Details */
  .details-grid { grid-template-columns: 1fr; }

  /* Modal */
  .modal { padding: 36px 22px; }

  /* Header */
  .logo__sub { display: none; }
}
