/* =========================================================
   Hope Integrated Clinic — Book Appointment (Wizard)
   Matches the exact HTML you provided.
   File: /assets/css/book-appointment.css
   Depends on your global variables in /assets/css/style.css
   ========================================================= */

.booking-main{
  padding: 0 0 72px;
}

/* -------------------------
   HERO
-------------------------- */
.booking-hero{
  background: linear-gradient(135deg, rgba(11,59,101,.10), rgba(32,130,170,.10));
  border-bottom: 1px solid rgba(11,18,32,.08);
  padding: 36px 0;
}

.booking-hero-grid{
  display:grid;
  grid-template-columns: 1.45fr .55fr;
  gap: 18px;
  align-items:start;
}

.booking-title{
  margin: 0 0 10px 0;
  font-size: clamp(2.1rem, 3.2vw, 3.2rem);
  font-weight: 950;
  letter-spacing: -0.6px;
  color: var(--text);
}

.booking-subtitle{
  margin: 0 0 18px 0;
  max-width: 75ch;
  color: #3b4c64;
  line-height: 1.85;
}

.booking-hero-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 10px 0;
}

.booking-emergency{
  margin: 10px 0 0 0;
  color: #2f3e55;
}

.booking-side-card{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(11,18,32,.10);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 18px;
}

.booking-side-title{
  margin: 0 0 10px 0;
  font-weight: 950;
  font-size: 1.15rem;
  color: #10223d;
}

.booking-side-list{
  list-style:none;
  padding:0;
  margin:0 0 12px 0;
  display:grid;
  gap: 10px;
}

.booking-side-list li{
  color:#2f3e55;
  line-height:1.5;
}

.booking-side-list i{
  color: var(--primary);
  margin-right: 8px;
}

.booking-side-list a{
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.booking-side-note{
  margin:0;
  color:#56657a;
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 900px){
  .booking-hero-grid{
    grid-template-columns: 1fr;
  }
}

/* -------------------------
   WIZARD CARD
-------------------------- */
.booking-section{
  padding: 18px 0 0;
}

.booking-card{
  background: #fff;
  border: 1px solid rgba(11,18,32,.10);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 18px;
}

/* Progress header */
.booking-progress{
  padding: 10px 6px 16px;
  border-bottom: 1px solid rgba(11,18,32,.08);
  margin-bottom: 14px;
}

.booking-progress-top{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.booking-step-label{
  margin:0;
  font-weight: 950;
  color:#10223d;
}

.booking-step-hint{
  margin:0;
  color:#56657a;
  font-weight: 800;
}

.booking-progress-bar{
  height: 10px;
  background: rgba(11,18,32,.08);
  border-radius: 999px;
  overflow:hidden;
}

.booking-progress-fill{
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

/* Alert */
.booking-alert{
  margin: 12px 0;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(220,38,38,.25);
  background: rgba(220,38,38,.06);
  color: rgba(185,28,28,.95);
  font-weight: 800;
}

/* Form / steps */
.booking-form{
  margin-top: 14px;
}

.booking-step{
  border: 0;
  padding: 0;
  margin: 0;
}

.booking-legend{
  margin: 0 0 14px 0;
  font-weight: 950;
  color: #10223d;
  font-size: 1.1rem;
}

/* Grid */
.booking-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 14px;
  align-items:start;
}

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

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

@media (max-width: 820px){
  .booking-grid{
    grid-template-columns: 1fr;
  }
}

/* Labels / required */
.label{
  font-weight: 900;
  color: #2f3e55;
}

.req{
  color: rgba(185,28,28,.95);
  font-weight: 950;
}

/* Inputs */
.control{
  width: 100%;
  border: 1px solid rgba(11,18,32,.16);
  border-radius: 12px;
  padding: 12px 12px;
  font: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.control::placeholder{
  color: rgba(86,101,122,.75);
}

.control:hover{
  border-color: rgba(11,59,101,.28);
}

.control:focus{
  outline: none;
  border-color: rgba(11,59,101,.55);
  box-shadow: 0 0 0 4px rgba(11,59,101,.14);
}

/* Control + addon (DOB show/hide) */
.control-with-addon{
  display:flex;
  gap: 10px;
  align-items:center;
}

.addon-btn{
  border-radius: 999px;
  border: 1px solid rgba(11,59,101,.28);
  background: rgba(255,255,255,.95);
  color: var(--primary);
  padding: 10px 14px;
  font-weight: 900;
  cursor:pointer;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease;
  white-space: nowrap;
}

.addon-btn:hover{
  background: rgba(11,59,101,.06);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.addon-btn:focus-visible{
  outline: 3px solid rgba(11,59,101,.35);
  outline-offset: 3px;
}

/* Segmented (Visit Type) */
.segmented{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

.segmented-item{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(11,18,32,.10);
  background: rgba(248,250,252,.7);
  cursor:pointer;
  user-select:none;
  font-weight: 900;
  min-width: 170px;
  transition: background .2s ease, border-color .2s ease, transform .15s ease;
}

.segmented-item input{
  margin: 0;
}

.segmented-item:hover{
  border-color: rgba(11,59,101,.22);
  background: rgba(11,59,101,.04);
  transform: translateY(-1px);
}

.segmented-item:has(input:checked){
  border-color: rgba(11,59,101,.50);
  background: rgba(11,59,101,.06);
}

/* Errors */
.error{
  margin: 0;
  min-height: 16px;
  font-size: 13px;
  color: rgba(185,28,28,.95);
  font-weight: 800;
}

/* Notes / hints */
.booking-note{
  margin: 12px 0 0 0;
  color:#56657a;
  line-height: 1.65;
}

.booking-hint{
  margin: 6px 0 0 0;
  color:#56657a;
  line-height: 1.65;
  font-size: 13px;
}

.booking-disclaimer{
  margin: 16px 0 0 0;
  color:#56657a;
  line-height: 1.7;
  font-size: 13px;
}

/* Checkbox row */
.check{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  padding: 12px 12px;
  border: 1px solid rgba(11,18,32,.10);
  border-radius: 12px;
  background: rgba(248,250,252,.7);
}

.check input{
  margin-top: 3px;
}

.link{
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Review */
.review-card{
  border: 1px solid rgba(11,18,32,.10);
  border-radius: 14px;
  background: rgba(248,250,252,.6);
  padding: 14px;
}

.review-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.review-title{
  margin:0;
  font-weight: 950;
  font-size: 1.05rem;
  color:#10223d;
}

.review-list{
  display:grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin:0;
}

.review-list dt{
  font-weight: 950;
  color:#10223d;
}

.review-list dd{
  margin: 0 0 8px 0;
  color:#3b4c64;
}

/* Buttons in this page (small helper) */
.btn-sm{
  padding: 9px 12px !important;
  font-size: 13px !important;
}

/* Actions */
.booking-actions{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(11,18,32,.08);
  margin-top: 16px;
}

.booking-actions-right{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 560px){
  .booking-actions{
    flex-direction: column;
    align-items: stretch;
  }
  .booking-actions-right{
    display:grid;
    grid-template-columns: 1fr;
  }
  .booking-actions .btn{
    width: 100%;
  }
}

/* Optional validation states (your JS can add these classes) */
.is-invalid{
  border-color: rgba(220,38,38,.55) !important;
  box-shadow: 0 0 0 4px rgba(220,38,38,.12) !important;
}

.is-valid{
  border-color: rgba(22,163,74,.50) !important;
  box-shadow: 0 0 0 4px rgba(22,163,74,.12) !important;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *{
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
