/* =========================================================
   BOOKING PAGE — extends styles.css
   ========================================================= */

   main.booking-page {
    background: linear-gradient(to bottom, #ffffff 0%, #f5fbfe 20%, #f5fbfe 100%);
  }
  
  .booking {
    min-height: 100vh;
    padding: calc(var(--section-py) + 90px) var(--section-px) var(--section-py);
  }
  
  .booking .section-head h1 {
    font-weight: 600;
    font-size: var(--fs-h1-sm);
    margin-bottom: 20px;
  }
  
  .booking .section-head p { margin-bottom: 0; }
  
  .booking-card {
    max-width: 760px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid #b1dff8;
    border-radius: var(--radius-xl);
    box-shadow: 0 30px 80px -37px var(--blue);
    padding: clamp(24px, 4vw, 56px);
  }
  
  .booking-field { margin-bottom: 26px; }
  
  .booking-field label,
  .picker-label {
    display: block;
    font-size: var(--fs-doctor-desc);
    font-weight: 700;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: 0.4px;
  }
  
  .booking-field label { margin-bottom: 8px; }
  
  .booking-field input {
    width: 100%;
    padding: 14px 18px;
    font-family: "Figtree", sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink);
    background: var(--white);
    border: 1.5px solid var(--outline);
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }
  
  .booking-field input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(0, 170, 232, 0.15);
  }
  
  .booking-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  
  /* ---------- PICKER HEADINGS ---------- */
  .picker-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
  }
  
  .picker-month {
    font-size: var(--fs-doctor-desc);
    font-weight: 600;
    color: var(--blue);
  }
  
  .picker-hint {
    margin: 0;
    max-width: unset;
    font-size: var(--fs-doctor-desc);
    font-weight: 500;
    color: var(--muted);
    padding: 18px 0;
  }
  
  /* ---------- DATE STRIP ---------- */
  .date-picker {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .date-strip {
    flex: 1;
    min-width: 0;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 6px 2px 10px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  
  .date-strip::-webkit-scrollbar { display: none; }
  
  .date-nav {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--outline);
    background: var(--white);
    color: var(--dark);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
  }
  
  .date-nav:hover:not(:disabled) { background: var(--cta-blue); border-color: var(--blue); }
  .date-nav:disabled { opacity: 0.35; cursor: default; }
  
  .date-chip,
  .time-chip {
    font-family: "Figtree", sans-serif;
    color: var(--dark);
    background: var(--white);
    border: 1.5px solid var(--outline);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  }
  
  .date-chip {
    flex: 0 0 auto;
    width: 72px;
    padding: 12px 6px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    scroll-snap-align: center;
  }
  
  .dc-dow, .dc-mon {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    opacity: 0.75;
  }
  
  .dc-day {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
  }
  
  .date-chip:hover,
  .time-chip:hover {
    border-color: var(--blue);
    background: var(--bg-tint);
  }
  
  .date-chip.is-selected,
  .time-chip.is-selected {
    background: var(--dark);
    border-color: var(--dark);
    color: #fff;
  }
  
  .date-chip.is-selected .dc-dow,
  .date-chip.is-selected .dc-mon { opacity: 0.9; }
  
  .date-chip:focus-visible,
  .time-chip:focus-visible,
  .date-nav:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
  }
  
  /* ---------- TIME PICKER ---------- */
  /* Slide-down reveal: animates the row height from 0 to its content height */
  .time-reveal {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    visibility: hidden;
    transition: grid-template-rows 0.45s ease, opacity 0.35s ease 0.1s, visibility 0s linear 0.45s;
  }
  
  .time-reveal.is-open {
    grid-template-rows: 1fr;
    opacity: 1;
    visibility: visible;
    transition: grid-template-rows 0.45s ease, opacity 0.35s ease 0.1s, visibility 0s;
  }
  
  .time-reveal-inner {
    min-height: 0;
    overflow: hidden;
  }
  
  .time-reveal-inner > .time-picker { margin-top: 12px; }
  
  /* Time input: always visible, mirrors the form's input style */
  .time-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--muted);
    background: var(--white);
    border: 1.5px dashed var(--outline);
    border-radius: var(--radius-md);
    transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
  }
  
  .time-trigger.is-active {
    border-style: solid;
    border-color: var(--blue);
    color: var(--ink);
  }
  
  .time-trigger.is-filled {
    background: var(--cta-blue);
    color: var(--dark);
    font-weight: 700;
  }
  
  .captcha-field { margin-bottom: 18px; }
  .captcha-field .cf-turnstile { max-width: 100%; overflow-x: auto; }
  
  @media (prefers-reduced-motion: reduce) {
    .time-reveal,
    .time-reveal.is-open { transition: none; }
  }
  
  .time-picker {
    background: var(--bg-tint);
    border-radius: var(--radius-lg);
    padding: 4px clamp(14px, 2vw, 22px);
    max-height: 340px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--card-blue) transparent;
  }
  
  .time-group { padding: 14px 0 6px; }
  
  .time-group + .time-group { border-top: 1px solid rgba(52, 91, 105, 0.12); }
  
  .time-group-title {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    gap: 8px;
    padding-bottom: 8px;
  }
  
  .time-chip {
    padding: 11px 6px;
    border-radius: var(--radius-sm);
    font-size: var(--fs-doctor-desc);
    font-weight: 600;
  }
  
  /* ---------- SUMMARY ---------- */
  .booking-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--cta-blue);
    border-radius: var(--radius-lg);
    padding: 14px 18px;
    margin-bottom: 8px;
  }
  
  .booking-summary[hidden] { display: none; }
  
  .summary-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
  }
  
  .booking-summary small {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
  }
  
  .booking-summary strong {
    font-size: var(--fs-card-body);
    color: var(--dark);
  }
  
  /* ---------- SUBMIT + MESSAGES ---------- */
  .booking-card .btn {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
  }
  
  .booking-card .btn:disabled { opacity: 0.6; cursor: default; transform: none; }
  
  .booking-msg {
    margin-top: 22px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    font-size: var(--fs-doctor-desc);
    font-weight: 600;
    line-height: 1.6;
  }
  
  .booking-msg-error { background: #fdeaea; color: #a33; }
  .booking-msg-success { background: var(--cta-blue); color: var(--dark); }
  
  .booking-note {
    text-align: center;
    color: var(--muted);
    font-size: var(--fs-doctor-desc);
    margin: 24px auto 0;
  }

  /* Keep browser autofilled fields transparent */
  .booking-field input:-webkit-autofill,
  .booking-field input:-webkit-autofill:hover,
  .booking-field input:-webkit-autofill:focus,
  .booking-field input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px var(--bg-tint) inset !important;
    box-shadow: 0 0 0 1000px var(--bg-tint) inset !important;
    -webkit-text-fill-color: var(--ink) !important;
    background: var(--bg-tint) !important;
  }
  
  /* ---------- RESPONSIVE ---------- */
  @media (max-width: 1024px) {
    .booking { padding-top: calc(var(--section-py) + 60px); }
  }
  
  @media (max-width: 600px) {
    .booking-row { grid-template-columns: 1fr; gap: 0; }
    .date-nav { display: none; }
    .date-chip { width: 66px; }
    .time-grid { grid-template-columns: repeat(3, 1fr); }
  }
  
  
    /* ---------- FIELD VALIDATION ---------- */
    .field-error {
      display: block;
      font-size: 13px;
      font-weight: 600;
      color: #d64545;
      margin-top: 6px;
    }
  
    .field-error:empty { display: none; }
  
    .booking-row .booking-field { margin-bottom: 18px; }
  
    .booking-field.has-error input,
    .booking-field.has-error .time-trigger {
      border-color: #d64545;
      background: #fdf2f2;
    }
  
    .booking-field.has-error input:focus {
      box-shadow: 0 0 0 4px rgba(214, 69, 69, 0.15);
    }
  
    .booking-field.has-error .date-strip {
      outline: 1.5px solid #d64545;
      outline-offset: 2px;
      border-radius: var(--radius-md);
    }
  
  
    /* =========================================================
       MATCH CONTACT FORM — same card, fields, errors and button
       as contact.css so both forms look identical
       ========================================================= */
    .booking-card {
      border: none;
      border-radius: var(--radius-xl);
      box-shadow: 0 0 20px 5px rgba(0, 170, 232, 0.12);
      padding: clamp(24px, 3vw, 50px);
    }
  
    #booking-form {
      display: flex;
      flex-direction: column;
      gap: var(--gap-sm);
    }
  
    .booking-field,
    .booking-row .booking-field { margin-bottom: 0; }
  
    .booking-row { gap: var(--gap-sm); }
  
    .booking-field label,
    .picker-label { letter-spacing: 0.3px; }
  
    .picker-head { margin-bottom: 8px; }
  
    .booking-field input {
      font-size: var(--fs-card-body);
      color: var(--ink);
      background: var(--bg-tint);
      border: 1.5px solid transparent;
      border-radius: var(--radius-sm);
      transition: border-color 0.2s ease, background 0.2s ease;
    }
  
    .booking-field input::placeholder {
      color: var(--muted);
      opacity: 0.8;
    }
  
    .booking-field input:focus {
      box-shadow: none;
      border-color: var(--blue);
      background: #fff;
    }
  
    /* Errors: same red, same reserved line under text inputs */
    .booking-row .field-error { min-height: 18px; margin-top: 8px; }
    .booking-row .field-error:empty { display: block; }
  
    .booking-field.has-error input {
      border-color: #d64545;
      background: #fdf2f2;
    }
  
    .booking-field.has-error input:focus {
      box-shadow: none;
      border-color: #d64545;
      background: #fff;
    }
  
    /* Date + time controls use the same tinted field surface */
    .date-nav,
    .date-chip,
    .time-trigger {
      background: var(--bg-tint);
      border: 1.5px solid transparent;
    }
  
    .date-nav:hover:not(:disabled),
    .date-chip:hover {
      background: var(--bg-tint);
      border-color: var(--blue);
    }
  
    .date-chip.is-selected {
      background: var(--dark);
      border-color: var(--dark);
    }
  
    .time-trigger {
      border-radius: var(--radius-sm);
      font-size: var(--fs-card-body);
    }
  
    .time-trigger.is-active {
      border-color: var(--blue);
      background: #fff;
    }
  
    .time-trigger.is-filled { background: #fff; }
  
    .booking-field.has-error .time-trigger {
      border-color: #d64545;
      background: #fdf2f2;
    }
  
    /* Time slots sit on the tinted panel, chips stay white for contrast */
    .time-chip { background: #fff; border-color: transparent; }
    .time-chip:hover { background: #fff; border-color: var(--blue); }
    .time-chip.is-selected { background: var(--dark); border-color: var(--dark); }
  
    /* Button: left-aligned like the contact form, full width on mobile */
    .booking-card .btn {
      width: auto;
      align-self: flex-start;
      justify-content: flex-start;
      margin-top: 6px;
    }
  
    @media (max-width: 600px) {
      .booking-card { padding: 20px; }
      .booking-card .btn { width: 100%; justify-content: center; }
    }
  
  
    /* ---------- PHONE: fixed +91 prefix ---------- */
    .phone-field {
      display: flex;
      align-items: stretch;
      background: var(--bg-tint);
      border: 1.5px solid transparent;
      border-radius: var(--radius-sm);
      transition: border-color 0.2s ease, background 0.2s ease;
    }
  
    .phone-field:focus-within {
      border-color: var(--blue);
      background: #fff;
    }
  
    .phone-prefix {
      display: flex;
      align-items: center;
      padding-left: 18px;
      font-size: var(--fs-card-body);
      font-weight: 600;
      color: var(--dark);
      user-select: none;
    }
  
    .booking-field .phone-field input,
    .booking-field .phone-field input:focus,
    .booking-field.has-error .phone-field input,
    .booking-field.has-error .phone-field input:focus {
      flex: 1;
      min-width: 0;
      border: none;
      background: transparent;
      padding-left: 8px;
    }
  
    .booking-field.has-error .phone-field {
      border-color: #d64545;
      background: #fdf2f2;
    }
  
    .booking-field.has-error .phone-field:focus-within { background: #fff; }
  
    /* ---------- SUCCESS STATE ---------- */
    #booking-form[hidden],
    .booking-success[hidden] { display: none; }
  
    .booking-success {
      text-align: center;
      padding: clamp(8px, 2vw, 24px) 0;
      outline: none;
    }
  
    .success-icon {
      width: 64px;
      height: 64px;
      margin: 0 auto 24px;
      border-radius: 50%;
      background: var(--blue);
      color: #fff;
      font-size: 30px;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
    }
  
    .success-details {
      max-width: 420px;
      margin: 0 auto 28px;
      background: var(--cta-blue);
      border-radius: var(--radius-lg);
      padding: 8px 22px;
      text-align: left;
    }
  
    .success-details > div {
      display: flex;
      justify-content: space-between;
      gap: 16px;
      padding: 12px 0;
      font-size: var(--fs-card-body);
    }
  
    .success-details > div + div { border-top: 1px solid rgba(52, 91, 105, 0.15); }
    .success-details dt { font-weight: 700; color: var(--dark); }
    .success-details dd { color: var(--ink); font-weight: 600; text-align: right; word-break: break-word; }
  
    .booking-success .btn { align-self: auto; width: auto; justify-content: center; }