/* 
   MediLink — booking.css
   Page-specific styles for: Booking Form (booking.html)
 */

/* Page Background */
.booking-section {
    background: var(--dark-card);
    border-top: 1px solid var(--border);
    min-height: calc(100vh - 68px);
}

/* ── Two-Column Layout ─────────────────────────────────── */
.booking-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* ── Form Groups ───────────────────────────────────────── */
.form-group { margin-bottom: 20px; }

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    background: var(--mid);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
    appearance: none;
}

.form-input:focus { border-color: var(--red); }
.form-input::placeholder { color: var(--text-muted); }

select.form-input {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

textarea.form-input {
    resize: vertical;
    min-height: 90px;
}

/* ── Two-column form row ───────────────────────────────── */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ── Submit Button (full width) ────────────────────────── */
.btn-submit {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
}

/* ── Booking Summary Card ──────────────────────────────── */
.booking-summary {
    background: var(--mid);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    position: sticky;
    top: 88px;
}

.summary-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.summary-provider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 14px;
    background: rgba(232, 39, 42, 0.06);
    border: 1px solid rgba(232, 39, 42, 0.15);
    border-radius: 10px;
}

.summary-provider-icon {
    width: 44px; height: 44px;
    background: rgba(232, 39, 42, 0.15);
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 20px;
    flex-shrink: 0;
}

.summary-provider-name { font-size: 14px; font-weight: 700; }
.summary-provider-type { font-size: 12px; color: var(--text-muted); }

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.summary-item:last-of-type { border-bottom: none; }
.summary-key { color: var(--text-muted); }
.summary-val { font-weight: 600; }

.summary-eta { color: var(--green); }

/* ── Total Row ─────────────────────────────────────────── */
.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0 0;
    margin-top: 8px;
    border-top: 1px solid var(--border);
}

.total-label { font-size: 15px; font-weight: 700; }
.total-val   { font-size: 24px; font-weight: 800; color: var(--red); }

/* ── Payment Note ──────────────────────────────────────── */
.payment-note {
    margin-top: 20px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 14px;
    padding: 18px 20px;
}

.payment-note-title {
    font-size: 13px;
    color: var(--green);
    font-weight: 700;
    margin-bottom: 6px;
}

.payment-note p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ── Emergency Note ────────────────────────────────────── */
.emergency-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(232, 39, 42, 0.06);
    border: 1px solid rgba(232, 39, 42, 0.2);
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 28px;
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
}

.emergency-note strong { color: var(--red); }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 900px) {
    .booking-layout { grid-template-columns: 1fr; }
    .form-row       { grid-template-columns: 1fr; }

    .booking-summary {
        position: static;
        order: -1;
    }
}