/* ═══════════════════════════════════════════════
   CLINIC BOOKING PAGE STYLES
   ═══════════════════════════════════════════════ */

.booking-section {
    min-height: 80vh;
    /* Extra top padding clears the fixed .clinic-nav so the booking-icon is visible */
    padding: 7rem 0 4rem;
    background: linear-gradient(135deg, #f0f4f8 0%, #e8edf2 100%);
}

/* Header */
.booking-header {
    margin-bottom: 2rem;
}
.booking-icon {
    width: 70px; height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--clinic-primary, #2563eb), var(--clinic-secondary, #7c3aed));
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.75rem; color: #fff;
    margin-bottom: 1rem;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.25);
}
.booking-title {
    font-size: 1.75rem; font-weight: 700; color: #1e293b;
    margin-bottom: 0.5rem;
}
.booking-subtitle {
    color: #64748b; font-size: 1.05rem; max-width: 500px; margin: 0 auto;
}

/* Card */
.booking-card {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

/* Steps */
.form-step {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}
.form-step:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}
.step-header {
    display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem;
}
.step-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; min-width: 36px;
    border-radius: 50%;
    background: var(--clinic-primary, #2563eb);
    color: #fff; font-weight: 700; font-size: 0.95rem;
}
.step-title {
    font-size: 1.1rem; font-weight: 600; color: #1e293b; margin-bottom: 0.15rem;
}
.step-desc {
    font-size: 0.9rem; color: #64748b; margin-bottom: 0;
}

/* Dates Hint */
.dates-hint {
    background: #eff6ff;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: #1d4ed8;
    font-size: 0.9rem;
}

/* Submit */
.form-submit {
    text-align: center;
    padding-top: 1rem;
}
.btn-booking-submit {
    display: inline-flex; align-items: center;
    padding: 0.85rem 2.5rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, var(--clinic-primary, #2563eb), var(--clinic-secondary, #7c3aed));
    color: #fff; font-weight: 600; font-size: 1.05rem;
    border: none; cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}
.btn-booking-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}
.btn-booking-submit:active { transform: translateY(0); }
.form-disclaimer {
    margin-top: 1rem; font-size: 0.8rem; color: #94a3b8;
}

/* Track Link */
.track-link {
    color: #64748b; text-decoration: none; font-weight: 500;
    transition: color 0.2s;
}
.track-link:hover { color: var(--clinic-primary, #2563eb); }

/* ═══ Confirmation Page ═══ */
.confirmation-card {
    background: #fff;
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.confirmation-icon {
    font-size: 4rem;
    color: #22c55e;
    margin-bottom: 1rem;
}
.confirmation-title {
    font-size: 1.6rem; font-weight: 700; color: #1e293b;
    margin-bottom: 0.5rem;
}
.confirmation-subtitle {
    color: #64748b; font-size: 1.05rem; margin-bottom: 2rem;
}

/* Reference Box */
.reference-box {
    display: inline-flex; align-items: center; gap: 0.75rem;
    background: #f0f9ff;
    border: 2px dashed #60a5fa;
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
}
.reference-label {
    font-size: 0.8rem; color: #64748b;
}
.reference-code {
    font-size: 1.3rem; font-weight: 800; color: #1e40af;
    font-family: 'Courier New', monospace; letter-spacing: 1px;
}
.btn-copy {
    background: none; border: none; color: #60a5fa; cursor: pointer; font-size: 1.1rem;
    transition: color 0.2s;
}
.btn-copy:hover { color: #2563eb; }

/* Summary */
.summary-card {
    background: #f8fafc;
    border-radius: 0.75rem;
    padding: 1.25rem;
    text-align: left;
}
.summary-title {
    font-size: 1rem; font-weight: 600; margin-bottom: 0.75rem; color: #334155;
}
.summary-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}
.summary-row:last-child { border-bottom: none; }
.summary-row.highlight {
    background: #ecfdf5; border-radius: 0.5rem; padding: 0.5rem 0.75rem;
    border-bottom: none; margin-top: 0.25rem;
}
.summary-label { color: #64748b; font-size: 0.9rem; }
.summary-value { font-weight: 600; color: #1e293b; }

/* Next Steps */
.next-steps {
    text-align: left; margin: 2rem 0;
}
.next-steps h5 { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; color: #334155; }
.step-item {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.5rem 0;
}
.step-num {
    width: 28px; height: 28px; min-width: 28px;
    border-radius: 50%;
    background: var(--clinic-primary, #2563eb);
    color: #fff; font-weight: 700; font-size: 0.8rem;
    display: flex; align-items: center; justify-content: center;
}

/* Confirmation Actions */
.confirmation-actions {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem;
    margin-top: 1.5rem;
}
.btn-whatsapp {
    display: inline-flex; align-items: center;
    padding: 0.6rem 1.5rem; border-radius: 0.5rem;
    background: #25d366; color: #fff !important;
    text-decoration: none; font-weight: 600; transition: all 0.2s;
}
.btn-whatsapp:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-track {
    display: inline-flex; align-items: center;
    padding: 0.6rem 1.5rem; border-radius: 0.5rem;
    background: var(--clinic-primary, #2563eb); color: #fff !important;
    text-decoration: none; font-weight: 600; transition: all 0.2s;
}
.btn-track:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-back-home {
    display: inline-flex; align-items: center;
    padding: 0.6rem 1.5rem; border-radius: 0.5rem;
    background: transparent; color: #64748b !important;
    border: 2px solid #e2e8f0;
    text-decoration: none; font-weight: 600; transition: all 0.2s;
}
.btn-back-home:hover { border-color: var(--clinic-primary, #2563eb); color: var(--clinic-primary, #2563eb) !important; }

/* ═══ Tracking Page ═══ */
.tracking-status-bar {
    display: flex; justify-content: space-between; align-items: center;
}
.tracking-ref {
    font-family: 'Courier New', monospace; font-weight: 700; font-size: 1.1rem; color: #334155;
}
.status-pill {
    padding: 0.35rem 1rem; border-radius: 2rem; font-weight: 600; font-size: 0.85rem;
}
.status-pending { background: #fef3c7; color: #92400e; }
.status-reviewed { background: #dbeafe; color: #1e40af; }
.status-confirmed { background: #dcfce7; color: #166534; }
.status-rejected { background: #fee2e2; color: #991b1b; }
.status-cancelled { background: #f1f5f9; color: #475569; }

.status-message {
    background: #f8fafc; border-radius: 0.5rem; padding: 0.75rem 1rem;
    color: #475569; font-size: 0.95rem;
}
.status-message.status-success { background: #ecfdf5; color: #166534; }
.status-message.status-danger { background: #fef2f2; color: #991b1b; }

.alert-card {
    padding: 1rem 1.25rem; border-radius: 0.75rem; font-weight: 500;
}
.alert-card.alert-warning { background: #fef3c7; color: #92400e; }

/* ═══ Staff Request List Extras ═══ */
.dates-stack {
    display: flex; gap: 0.25rem; flex-wrap: wrap;
}
.date-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 0.25rem;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ═══ Responsive ═══ */
@media (max-width: 768px) {
    .booking-section { padding: 6rem 0 3rem; }
    .booking-card { padding: 1.25rem; }
    .confirmation-card { padding: 1.5rem 1rem; }
    .info-grid { grid-template-columns: 1fr; }
    .booking-title { font-size: 1.4rem; }
    .reference-box { flex-direction: column; gap: 0.5rem; padding: 0.75rem; }
    .confirmation-actions { flex-direction: column; align-items: stretch; }
    /* Keep login button visible & tappable on small screens */
    .clinic-nav .nav-brand { font-size: 1rem; gap: 0.4rem; max-width: 55%; }
    .clinic-nav .nav-brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .clinic-nav .nav-logo-img { height: 32px; }
    .nav-actions { flex-shrink: 0; }
    .btn-nav-login { padding: 0.4rem 0.75rem; font-size: 0.8rem; }
}

/* ═══ Date & time input sizing (easier to read/tap) ═══ */
.booking-card .form-control[type="date"],
.booking-card .form-control[type="time"] {
    font-size: 1.05rem;
    padding: 0.65rem 0.85rem;
    min-height: 48px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}
.booking-card .form-control[type="time"]::-webkit-calendar-picker-indicator,
.booking-card .form-control[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    padding: 0.35rem;
    opacity: 0.7;
    transform: scale(1.15);
}
.booking-card .form-control[type="time"]::-webkit-calendar-picker-indicator:hover,
.booking-card .form-control[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}
/* On narrow screens give time inputs more room than the 2-col default */
@media (max-width: 991.98px) {
    .booking-card .col-md-2,
    .booking-card .col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}
@media (max-width: 575.98px) {
    .booking-card .col-md-2,
    .booking-card .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

