/* =========================================================
   FDCA Gujarat — Slot Booking Portal
   Public-facing styles
   Design language: civic / trustworthy, ticket-stub motif
   ========================================================= */

:root {
  --ink:        #1B2A4A;   /* deep indigo - headers, authority */
  --ink-soft:   #4A5578;
  --paper:      #F7F5F0;   /* warm paper background */
  --paper-deep: #EDE9E0;
  --amber:      #D97706;   /* action accent */
  --amber-soft: #FDE9D2;
  --green:      #15803D;
  --green-soft: #DCF5E4;
  --red:        #B91C1C;
  --red-soft:   #FBE5E5;
  --slate:      #2D3344;
  --slate-mute: #6B7280;
  --line:       #DEDAD0;
  --white:      #FFFFFF;
  --radius:     14px;
  --shadow-sm:  0 2px 8px rgba(27, 42, 74, 0.06);
  --shadow-md:  0 8px 28px rgba(27, 42, 74, 0.12);
  --shadow-lg:  0 18px 48px rgba(27, 42, 74, 0.18);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  background-image:
    radial-gradient(circle at 10% 0%, rgba(217,119,6,0.05) 0%, transparent 45%),
    radial-gradient(circle at 90% 100%, rgba(27,42,74,0.05) 0%, transparent 45%);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--slate);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display-font {
  font-family: 'Lexend', 'Inter', sans-serif;
  color: var(--ink);
  letter-spacing: -0.01em;
}

a { color: var(--ink); }

/* ---------- Top governmental strip ---------- */
.gov-strip {
  background: var(--ink);
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
  padding: 6px 0;
  text-align: center;
  letter-spacing: 0.02em;
}

/* ---------- Page shell ---------- */
.portal-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px 60px;
}

/* ---------- Header / masthead ---------- */
.masthead {
  background: linear-gradient(135deg, var(--ink) 0%, #233562 100%);
  border-radius: 0 0 28px 28px;
  padding: 36px 28px 60px;
  margin: 0 -16px 0;
  color: white;
  position: relative;
  overflow: hidden;
}
.masthead::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(217,119,6,0.18);
}
.masthead::after {
  content: '';
  position: absolute;
  bottom: -90px; left: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.masthead-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}
.masthead h1 {
  color: white;
  font-size: 1.7rem;
  font-weight: 700;
  margin: 14px 0 6px;
  position: relative;
  z-index: 1;
}
.masthead p {
  color: rgba(255,255,255,0.78);
  font-size: 0.95rem;
  margin: 0;
  max-width: 520px;
  position: relative;
  z-index: 1;
}

/* ---------- Floating notice card (overlaps masthead) ---------- */
.notice-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 22px 24px;
  margin: -40px 4px 28px;
  position: relative;
  z-index: 2;
  border-top: 4px solid var(--amber);
}
.notice-card .notice-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--amber);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.notice-card p {
  margin: 0;
  color: var(--slate);
  font-size: 0.95rem;
  line-height: 1.6;
}
.notice-card .notice-gu {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-top: 8px;
}

/* ---------- CTA ---------- */
.cta-row { text-align: center; margin-bottom: 28px; }
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--amber);
  color: white;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 32px;
  border-radius: 999px;
  border: none;
  box-shadow: 0 10px 24px rgba(217,119,6,0.32);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(217,119,6,0.4);
  color: white;
}

/* ---------- Booking form panel ---------- */
.booking-panel {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 28px 24px;
  border: 1px solid var(--line);
}
.booking-panel .panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 22px;
}
.panel-title .step-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--amber-soft);
  color: var(--amber);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}

.form-label.fld {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.88rem;
  margin-bottom: 6px;
}
.form-control, .form-select {
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 0.97rem;
  background: var(--paper);
}
.form-control:focus, .form-select:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(217,119,6,0.15);
  background: white;
}
.form-control[readonly] {
  background: var(--paper-deep);
  color: var(--slate-mute);
}

.slot-status-msg {
  font-size: 0.86rem;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* DOB verification block */
.dob-verify-box {
  background: var(--amber-soft);
  border: 1px solid #F2CD96;
  border-radius: 12px;
  padding: 16px 18px;
  margin-top: 4px;
}
.dob-verify-box .vlabel {
  font-weight: 700;
  color: #92400E;
  font-size: 0.86rem;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.btn-submit-booking {
  background: var(--ink);
  color: white;
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: 12px;
  padding: 14px;
  border: none;
  width: 100%;
  transition: background 0.15s ease;
}
.btn-submit-booking:hover { background: #233562; color: white; }
.btn-submit-booking:disabled { background: var(--slate-mute); }

/* ---------- Slot pills (selectable) ---------- */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.slot-pill {
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  background: white;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.15s ease;
}
.slot-pill.available:hover { border-color: var(--amber); background: var(--amber-soft); }
.slot-pill.selected { border-color: var(--amber); background: var(--amber); color: white; }
.slot-pill.unavailable {
  background: var(--paper-deep);
  color: var(--slate-mute);
  text-decoration: line-through;
  cursor: not-allowed;
  opacity: 0.6;
}

/* ---------- Ticket-stub confirmation (signature element) ---------- */
.ticket {
  background: white;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  position: relative;
  margin: 0 auto;
  max-width: 460px;
}
.ticket-head {
  background: var(--green);
  color: white;
  padding: 26px 24px 20px;
  text-align: center;
}
.ticket-head .check-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 10px;
}
.ticket-head h4 { color: white; margin: 0; font-size: 1.25rem; }
.ticket-body {
  padding: 24px 26px;
  position: relative;
}
.ticket-perforation {
  position: relative;
  border-top: 2px dashed var(--line);
  margin: 0 -26px;
}
.ticket-perforation::before, .ticket-perforation::after {
  content: '';
  position: absolute;
  top: -10px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--paper);
}
.ticket-perforation::before { left: -10px; }
.ticket-perforation::after { right: -10px; }

.ticket-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #F0EDE5;
  font-size: 0.92rem;
}
.ticket-row:last-child { border-bottom: none; }
.ticket-row .t-label { color: var(--slate-mute); font-weight: 500; }
.ticket-row .t-value { color: var(--ink); font-weight: 700; text-align: right; }

.ticket-footer-note {
  background: var(--red-soft);
  color: var(--red);
  padding: 16px 24px;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.5;
}

/* ---------- Generic alert/info card ---------- */
.info-card {
  border-radius: 12px;
  padding: 18px 20px;
  font-size: 0.92rem;
  margin-bottom: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.info-card.warn   { background: var(--amber-soft); color: #92400E; }
.info-card.danger { background: var(--red-soft); color: var(--red); }
.info-card.success{ background: var(--green-soft); color: var(--green); }
.info-card i { font-size: 1.2rem; margin-top: 2px; }

/* ---------- Footer ---------- */
.portal-footer {
  text-align: center;
  color: var(--slate-mute);
  font-size: 0.82rem;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
  .masthead { padding: 28px 18px 54px; border-radius: 0 0 22px 22px; margin: 0 -16px; }
  .masthead h1 { font-size: 1.35rem; }
  .notice-card { margin: -34px 0 22px; padding: 18px; }
  .booking-panel { padding: 20px 16px; }
  .btn-cta { width: 100%; justify-content: center; }
  .slot-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Loading spinner small */
.spin-sm {
  width: 14px; height: 14px;
  border: 2px solid rgba(0,0,0,0.15);
  border-top-color: var(--amber);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
