/* ============================================================
   IESL VENUE HIRE — STYLESHEET
   Aesthetic: Refined institutional / luxury governmental
   Fonts: Playfair Display (display) + DM Sans (body)
   ============================================================ */

:root {
  --gold:        #C9A84C;
  --gold-light:  #E5C97E;
  --gold-dark:   #9A7830;
  --navy:        #0D1E3A;
  --navy-mid:    #1A3360;
  --navy-light:  #243E6A;
  --cream:       #F9F6F0;
  --cream-dark:  #EEE8DC;
  --white:       #FFFFFF;
  --text-body:   #2D3748;
  --text-muted:  #718096;
  --text-light:  #A0AEC0;
  --border:      #E2D9C8;
  --success:     #1A6B4A;
  --success-bg:  #E6F4EE;
  --danger:      #C53030;
  --danger-bg:   #FFF5F5;
  --warning:     #D97706;
  --shadow-sm:   0 2px 8px rgba(13,30,58,.07);
  --shadow-md:   0 6px 24px rgba(13,30,58,.10);
  --shadow-lg:   0 16px 48px rgba(13,30,58,.14);
  --radius:      12px;
  --radius-lg:   18px;
  --transition:  .25s cubic-bezier(.4,0,.2,1);
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

/* ── HEADER ────────────────────────────────── */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

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

.logo-emblem svg { display: block; }

.logo-text {
  display: flex;
  flex-direction: column;
}

.org-name {
  color: var(--gold-light);
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .3px;
  line-height: 1.3;
}

.org-sub {
  color: #8FA3C4;
  font-size: .78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
}

.header-badge {
  background: rgba(201,168,76,.15);
  color: var(--gold-light);
  border: 1px solid rgba(201,168,76,.3);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-rule {
  height: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, transparent 100%);
}

/* ── HERO ──────────────────────────────────── */
.hero-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, #1A2F5A 100%);
  padding: 64px 0 52px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 600px 400px at 80% 50%, rgba(201,168,76,.06) 0%, transparent 70%),
    repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(255,255,255,.012) 40px, rgba(255,255,255,.012) 41px);
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  left: -80px; top: -80px;
  width: 300px; height: 300px;
  border: 60px solid rgba(201,168,76,.04);
  border-radius: 50%;
}

.hero-overlay { display: none; }

.hero-content { position: relative; z-index: 2; max-width: 680px; }

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.eyebrow-line {
  display: inline-block;
  width: 36px; height: 1.5px;
  background: var(--gold);
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
}

.hero-subtitle {
  color: #8FA3C4;
  font-size: .97rem;
  max-width: 520px;
  margin-bottom: 0;
}

.hero-divider {
  width: 64px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin-top: 28px;
}

/* ── PROGRESS TRACKER ──────────────────────── */
.progress-tracker-wrap {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 72px;
  z-index: 900;
  box-shadow: var(--shadow-sm);
}

.progress-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 0 8px;
}

.p-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 90px;
  opacity: .4;
  transition: opacity var(--transition);
}

.p-step.active, .p-step.done { opacity: 1; }

.p-step-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--cream-dark);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--text-muted);
  transition: all var(--transition);
}

.p-step.active .p-step-icon {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--gold);
}

.p-step.done .p-step-icon {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.p-step-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.p-step.active .p-step-label { color: var(--navy); }

.p-step-connector {
  flex: 1;
  height: 2px;
  background: var(--border);
  min-width: 24px;
  max-width: 80px;
  margin: 0 4px;
  margin-bottom: 22px;
}

/* ── MAIN CONTENT ──────────────────────────── */
.main-content {
  padding: 40px 0 80px;
}

/* ── FORM SECTION ──────────────────────────── */
.form-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 28px;
  border: 1px solid var(--border);
  animation: fadeSlideUp .4s ease both;
}

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

.section-header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 28px 36px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-bottom: 3px solid var(--gold);
}

.section-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(201,168,76,.25);
  line-height: 1;
  min-width: 52px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 4px;
}

.section-desc {
  color: #8FA3C4;
  font-size: .88rem;
  margin: 0;
}

.section-body {
  padding: 36px;
}

/* ── FORM FIELDS ───────────────────────────── */
.form-field { position: relative; }

.field-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--navy-mid);
  margin-bottom: 8px;
}

.field-label-sm {
  display: block;
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--navy-mid);
  margin-bottom: 8px;
}

.req { color: var(--gold-dark); }

.custom-input {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 11px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: .93rem;
  color: var(--text-body);
  background: var(--cream);
  transition: all var(--transition);
  width: 100%;
}

.custom-input:focus {
  border-color: var(--navy-mid);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(26,51,96,.08);
  outline: none;
}

.custom-input.is-invalid { border-color: var(--danger); }
.custom-input.is-valid   { border-color: var(--success); }

.custom-textarea { resize: vertical; min-height: 80px; }

.input-icon-wrap { position: relative; }

.input-icon {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: .95rem;
  pointer-events: none;
}

.ps-icon { padding-left: 36px !important; }

/* Contact group label */
.contact-group-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--navy-mid);
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(13,30,58,.04), rgba(13,30,58,.02));
  border: 1px solid var(--border);
  border-radius: 8px 8px 0 0;
  margin-bottom: -1px;
}

/* ── AVAILABILITY BANNER ────────────────────── */
.availability-banner {
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: .93rem;
  margin-top: 16px;
  animation: fadeSlideUp .3s ease;
}

.availability-banner.is-available {
  background: var(--success-bg);
  border: 1.5px solid #68D391;
  color: var(--success);
}

.availability-banner.is-unavailable {
  background: var(--danger-bg);
  border: 1.5px solid #FC8181;
  color: var(--danger);
}

/* ── SERVICES ──────────────────────────────── */
.sub-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.service-card {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  background: var(--cream);
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.service-card:hover {
  border-color: var(--navy-mid);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.service-card.selected {
  border-color: var(--gold);
  background: rgba(201,168,76,.06);
}

.service-card.disabled {
  opacity: .35;
  pointer-events: none;
}

.svc-check {
  width: 20px; height: 20px;
  border-radius: 5px;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
  margin-top: 1px;
}

.service-card.selected .svc-check {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

.svc-info { flex: 1; }
.svc-name { font-weight: 600; font-size: .9rem; color: var(--navy); line-height: 1.3; }
.svc-rate { font-size: .78rem; color: var(--gold-dark); font-weight: 500; margin-top: 2px; }
.svc-applicable { font-size: .72rem; color: var(--text-muted); margin-top: 3px; }

/* ── VENUE INFO CARD ────────────────────────── */
.venue-info-card {
  border-radius: 10px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(13,30,58,.04), rgba(13,30,58,.02));
  border: 1px solid var(--border);
}

.venue-info-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.venue-icon-wrap {
  width: 44px; height: 44px;
  background: var(--navy);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  color: var(--gold);
  flex-shrink: 0;
}

.venue-info-name { font-weight: 700; font-size: 1rem; color: var(--navy); }
.venue-info-meta { font-size: .82rem; color: var(--text-muted); }

/* ── INVOICE CARD ──────────────────────────── */
.invoice-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-md);
}

.invoice-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 3px solid var(--gold);
}

.invoice-org {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}

.invoice-subtitle {
  color: var(--gold);
  font-size: .75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
  margin-top: 2px;
}

.invoice-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}

.inv-meta-item {
  padding: 14px 20px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.inv-meta-item:nth-child(even) { border-right: none; }
.inv-meta-item:nth-child(n+3) { border-top: 1px solid var(--border); }

.inv-meta-item span {
  font-size: .72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

.inv-meta-item strong {
  font-size: .9rem;
  color: var(--navy);
  font-weight: 700;
}

.inv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}

.inv-table thead tr {
  background: var(--navy);
}

.inv-table thead th {
  padding: 12px 20px;
  color: var(--gold-light);
  font-size: .75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  border: none;
}

.inv-table tbody tr { border-bottom: 1px solid var(--cream-dark); }
.inv-table tbody tr:hover { background: var(--cream); }

.inv-table tbody td {
  padding: 12px 20px;
  color: var(--text-body);
  border: none;
}

.inv-table tfoot .inv-subtotal td {
  padding: 10px 20px;
  border-top: 1.5px solid var(--border);
  font-weight: 500;
  background: var(--cream);
  font-size: .88rem;
  color: var(--text-muted);
}

.inv-table tfoot .inv-grand td {
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
  font-size: 1rem;
}

.inv-table tfoot .inv-grand td strong { color: var(--gold-light); font-size: 1.1rem; }

.invoice-note {
  background: #FFFBEB;
  border-top: 1px solid #FED7AA;
  padding: 12px 20px;
  font-size: .78rem;
  color: var(--warning);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

/* ── BOOKING SUMMARY ────────────────────────── */
.booking-summary-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.bsum-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  background: var(--navy-mid);
  padding: 14px 20px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bsum-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.bsum-item {
  padding: 12px 18px;
  border-bottom: 1px solid var(--cream-dark);
  border-right: 1px solid var(--cream-dark);
}

.bsum-item:nth-child(even) { border-right: none; }

.bsum-label { font-size: .72rem; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); font-weight: 500; }
.bsum-value { font-weight: 600; color: var(--navy); font-size: .9rem; margin-top: 2px; }

/* ── RATE REFERENCE ─────────────────────────── */
.rate-ref-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.rate-ref-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  background: var(--navy-mid);
  padding: 14px 20px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rate-table {
  margin: 0;
  font-size: .8rem;
}

.rate-table thead th {
  background: rgba(13,30,58,.06);
  color: var(--navy);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  border-color: var(--border);
  padding: 8px 12px;
}

.rate-table tbody td {
  padding: 8px 12px;
  border-color: var(--cream-dark);
  font-size: .8rem;
  color: var(--text-body);
}

.rate-table tbody tr:hover td { background: var(--cream); }

.rate-ref-services { padding: 0 16px 16px; }

.rate-svc-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--cream);
  margin-bottom: 6px;
  font-size: .8rem;
}

.rate-svc-item span:first-child { color: var(--text-body); font-weight: 500; }
.rate-svc-item span:last-child  { color: var(--gold-dark); font-weight: 700; }

/* ── BUTTONS ────────────────────────────────── */
.section-actions {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--cream-dark);
}

.btn-next, .btn-back, .btn-book {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .3px;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}

.btn-next {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--gold-light);
  box-shadow: 0 4px 16px rgba(13,30,58,.25);
}

.btn-next:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(13,30,58,.35);
  color: var(--gold);
}

.btn-back {
  background: var(--white);
  color: var(--navy);
  border: 1.5px solid var(--border);
}

.btn-back:hover {
  background: var(--cream);
  border-color: var(--navy-mid);
}

.btn-book {
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
  color: var(--navy);
  box-shadow: 0 4px 16px rgba(201,168,76,.35);
  font-size: 1rem;
  padding: 15px 36px;
}

.btn-book:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201,168,76,.50);
}

.btn-book:disabled {
  opacity: .6;
  transform: none;
  cursor: not-allowed;
}

/* ── SUCCESS SECTION ────────────────────────── */
.success-section {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.success-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 56px 48px;
  text-align: center;
  max-width: 540px;
  width: 100%;
  border: 1.5px solid var(--border);
  animation: fadeSlideUp .5s ease;
}

.success-icon-wrap { margin-bottom: 24px; }

.success-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--success) 0%, #2F855A 100%);
  color: var(--white);
  font-size: 2.2rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
  box-shadow: 0 8px 24px rgba(26,107,74,.35);
  animation: scaleIn .4s cubic-bezier(.175,.885,.32,1.275) both;
}

@keyframes scaleIn {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

.success-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.success-sub {
  color: var(--text-muted);
  font-size: .95rem;
  margin-bottom: 28px;
}

.success-ref-box {
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 18px 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.success-ref-label {
  font-size: .72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.success-ref {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 2px;
}

.success-note {
  font-size: .85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  margin-bottom: 28px;
}

.btn-new-booking {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--gold-light);
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-new-booking:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(13,30,58,.35);
}

/* ── FOOTER ─────────────────────────────────── */
.site-footer {
  background: var(--navy);
  padding: 28px 0;
  border-top: 2px solid var(--gold-dark);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-org {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #8FA3C4;
  font-size: .8rem;
}

.footer-org strong { color: var(--gold-light); font-size: .9rem; }

.footer-note {
  color: #5A7299;
  font-size: .78rem;
}

/* ── SPINNER ────────────────────────────────── */
.spinner-sm {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .6s linear infinite;
}

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

/* ── INVALID FEEDBACK ───────────────────────── */
.invalid-feedback { font-size: .78rem; color: var(--danger); margin-top: 4px; }

/* ── RESPONSIVE ─────────────────────────────── */
@media (max-width: 767px) {
  .section-body        { padding: 24px 20px; }
  .section-header      { padding: 20px 20px; }
  .section-number      { font-size: 1.8rem; min-width: 40px; }
  .invoice-meta        { grid-template-columns: 1fr; }
  .inv-meta-item       { border-right: none !important; border-top: 1px solid var(--border); }
  .bsum-grid           { grid-template-columns: 1fr; }
  .bsum-item           { border-right: none; }
  .footer-inner        { flex-direction: column; text-align: center; }
  .hero-section        { padding: 40px 0 32px; }
  .progress-tracker-wrap { top: 64px; }
  .p-step-label        { display: none; }
  .p-step-connector    { min-width: 16px; }
  .btn-book            { width: 100%; justify-content: center; }
  .section-actions     { flex-direction: column-reverse; }
  .btn-back, .btn-next { justify-content: center; }
}

@media (max-width: 575px) {
  .header-inner { flex-direction: column; gap: 10px; text-align: center; }
  .logo-block   { flex-direction: column; align-items: center; }
}
