/* Appointment booking and status pages. Loaded after the site's styles.css; teal palette from iqbal/COLOR_PALETTE.md. */
.booking { position: relative; z-index: 1; max-width: 920px; margin: 0 auto; padding: 120px 20px 70px; color: #013b37; font-family: Inter, system-ui, sans-serif; }
.booking-intro { text-align: center; margin-bottom: 28px; }
.booking-intro h1 { font: 700 clamp(30px, 5vw, 44px) 'Cormorant Garamond', Georgia, serif; margin: 6px 0 10px; color: #013b37; }
.booking-intro p { max-width: 560px; margin: 0 auto; color: #015952; line-height: 1.6; }
.booking-card { background: rgba(255, 255, 255, .92); border: 1px solid #a8f0e9; border-radius: 16px; padding: 22px; margin: 0 0 18px; box-shadow: 0 10px 30px rgba(1, 107, 97, .08); }
.booking-step { min-width: 0; }
.booking-step[disabled] { opacity: .55; }
.booking-step legend { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; padding: 0 6px; color: #013b37; }
.step-number { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #016b61; color: #fff; font-size: 15px; }
.step-status { margin: 4px 0 14px; color: #015952; font-size: 15px; }

.doctor-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; margin-top: 8px; }
.doctor-option { cursor: pointer; display: block; }
.doctor-option input, .chip input { position: absolute; opacity: 0; pointer-events: none; }
.doctor-option-body { display: flex; gap: 14px; align-items: center; padding: 14px; border: 2px solid #d5efeb; border-radius: 12px; background: #fff; transition: border-color .2s, box-shadow .2s, background .2s; height: 100%; }
.doctor-option-body img, .doctor-initials { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.doctor-initials { display: grid; place-items: center; background: #e0f9f7; color: #016b61; font-weight: 700; font-size: 22px; }
.doctor-option strong { display: block; font-size: 16px; }
.doctor-specialty, .doctor-hours { display: block; font-size: 13px; color: #015952; margin-top: 2px; }
.doctor-hours { color: #3f6f69; }
.doctor-option:hover .doctor-option-body { border-color: #01d6c1; }
.doctor-option input:checked + .doctor-option-body { border-color: #016b61; background: #f0fcfb; box-shadow: 0 0 0 3px rgba(1, 107, 97, .15); }
.doctor-option input:focus-visible + .doctor-option-body, .chip input:focus-visible + span { outline: 3px solid #01d6c1; outline-offset: 2px; }

.day-options, .time-options { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { cursor: pointer; position: relative; }
.chip span { display: grid; gap: 2px; min-width: 92px; padding: 10px 14px; border: 2px solid #d5efeb; border-radius: 10px; background: #fff; text-align: center; transition: border-color .2s, background .2s, color .2s; }
.chip strong { font-size: 15px; }
.chip small { font-size: 12px; color: #3f6f69; }
.chip:hover span { border-color: #01d6c1; }
.chip input:checked + span { background: #016b61; border-color: #016b61; color: #fff; }
.chip input:checked + span small { color: #e0f9f7; }
.time-group h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: #015952; margin: 14px 0 8px; }
.time-group:first-child h3 { margin-top: 0; }
.link-button { margin-top: 12px; background: none; border: 0; color: #016b61; font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; padding: 4px 0; }

.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.booking-form label, .status-form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.field-wide { grid-column: 1 / -1; }
.booking-form input:not([type=radio]), .booking-form textarea, .status-form input { font: inherit; font-weight: 400; width: 100%; padding: 12px; border: 1px solid #a8d7d1; border-radius: 9px; background: #fff; color: #013b37; }
.booking-form input:focus, .booking-form textarea:focus, .status-form input:focus { outline: 2px solid #01d6c1; border-color: #016b61; }
.optional { font-weight: 400; color: #3f6f69; font-size: 13px; }
.field-hint { font-weight: 400; font-size: 13px; color: #3f6f69; margin: 0; }
.field-hint a { color: #016b61; }
.honeypot { position: absolute; left: -9999px; }

.booking-confirm { display: grid; gap: 12px; justify-items: start; }
.booking-selection { margin: 0; font-weight: 600; color: #3f6f69; }
.booking-selection.ready { color: #013b37; font-size: 17px; }
.booking .btn-primary, .booking .btn-outline { font-size: 15px; padding: 14px 26px; cursor: pointer; border: 0; }
.booking button.btn-primary[disabled] { opacity: .6; cursor: wait; }
.booking-error { background: #fff1ec; border: 1px solid #f3c8b8; color: #643024; border-radius: 12px; padding: 14px 18px; margin-bottom: 18px; }

.booking-done { text-align: center; }
.done-icon { width: 60px; height: 60px; border-radius: 50%; background: #016b61; color: #fff; display: grid; place-items: center; font-size: 30px; margin: 0 auto 10px; }
.booking-done h2 { font: 700 30px 'Cormorant Garamond', Georgia, serif; margin: 0 0 6px; }
.done-lead { margin: 0 0 18px; }
.booking-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; text-align: left; background: #f0fcfb; border-radius: 12px; padding: 16px; margin: 0 0 18px; }
.booking-summary dt { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #3f6f69; }
.booking-summary dd { margin: 2px 0 0; font-weight: 600; }
.booking-done h3 { text-align: left; font-size: 17px; margin: 0 0 8px; }
.next-steps { text-align: left; margin: 0 0 20px; padding-left: 20px; line-height: 1.7; }
.booking-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.status-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: end; }
.status-badge { display: inline-block; padding: 5px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; background: #e0f9f7; color: #014d45; }
.status-badge.pending { background: #fff3d6; color: #6b4e00; }
.status-badge.cancelled, .status-badge.rejected, .status-badge.expired, .status-badge.no_show { background: #eef2f1; color: #5a6f6c; }

@media (max-width: 700px) {
    .booking { padding-top: 100px; }
    .booking-card { padding: 16px; border-radius: 14px; }
    .field-grid, .booking-summary, .status-form { grid-template-columns: 1fr; }
    .chip span { min-width: 80px; padding: 9px 10px; }
    .booking .btn-primary, .booking .btn-outline { width: 100%; }
}
