/* ============================================================
   DRIVER BOOKING PAGE — styles/book-driver.css
   ------------------------------------------------------------
   Moved out of book-driver.html's inline <style> block, verbatim
   (separation standard: docs/frontend-separation.md). Linked after
   styles/styles.css so page rules still win.
   ============================================================ */

.booking-hero {
    background: linear-gradient(135deg, var(--accent-deep), var(--accent));
    border-radius: 1.5rem; padding: 2rem; color: #fff; margin-bottom: 2rem; text-align: center;
}
.booking-hero h1 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.2rem); }
.booking-hero p { margin: 0.5rem auto 0; max-width: 640px; opacity: 0.95; }

.booking-layout { display: grid; grid-template-columns: 1fr 340px; gap: 1.5rem; align-items: start; }
.booking-main { min-width: 0; }
.booking-side { position: sticky; top: 1rem; }

/* Driver summary card */
.driver-summary {
    background: var(--surface-strong); border: 1px solid var(--line); border-radius: 1.5rem;
    padding: 1.5rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 0.85rem;
}
.driver-summary-top { display: flex; align-items: center; gap: 1rem; }
.driver-avatar {
    width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: var(--ink);
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700;
    flex: 0 0 64px; overflow: hidden;
}
.driver-avatar img { width: 100%; height: 100%; object-fit: cover; }
.driver-summary h2 { margin: 0; font-size: 1.2rem; color: var(--ink); display: flex; align-items: center; flex-wrap: wrap; gap: 0.3rem; }
.verified-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 1.1em; height: 1.1em; border-radius: 50%; background: #1d9bf0;
    color: #fff; font-size: 0.65em; font-weight: 800; line-height: 1;
    vertical-align: middle; cursor: help;
}
.trust-pill {
    display: inline-flex; align-items: center; gap: 0.4rem;
    border-radius: 999px; padding: 0.3rem 0.8rem; font-size: 0.85rem; font-weight: 700;
    cursor: help; border: 1px solid transparent;
}
.trust-pill.green { background: rgba(46, 204, 113, 0.15); color: #2ecc71; border-color: rgba(46, 204, 113, 0.4); }
.trust-pill.blue { background: rgba(29, 155, 240, 0.15); color: #1d9bf0; border-color: rgba(29, 155, 240, 0.4); }
.trust-pill.orange { background: rgba(230, 126, 34, 0.15); color: #e67e22; border-color: rgba(230, 126, 34, 0.4); }
.driver-meta { color: var(--muted); font-size: 0.85rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.driver-meta span { display: inline-flex; align-items: center; gap: 0.3rem; }
.driver-bio { color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.vehicle-item {
    display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--ink);
    background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 0.4rem 0.7rem;
}
.vehicle-item svg { width: 1rem; height: 1rem; color: var(--accent); flex: 0 0 auto; }

/* Booking form */
.booking-card {
    background: var(--surface-strong); border: 1px solid var(--line); border-radius: 1.5rem;
    padding: 1.5rem; box-shadow: var(--shadow);
}
.booking-card h2 { margin: 0 0 1rem; font-size: 1.25rem; color: var(--ink); }
.form-field { margin-bottom: 1rem; }
.form-field label { display: block; margin-bottom: 0.35rem; color: var(--muted); font-size: 0.9rem; }
.form-field input, .form-field select, .form-field textarea {
    width: 100%; padding: 0.7rem 1rem; border-radius: 12px; border: 1px solid var(--line);
    background: var(--surface); color: var(--ink); font: inherit;
}
.form-field textarea { resize: vertical; min-height: 70px; }
.form-field input[type="date"], .form-field input[type="time"] { color-scheme: dark; }

/* Availability calendar */
.calendar { margin-bottom: 1rem; }
.calendar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.calendar-head button {
    background: var(--surface); border: 1px solid var(--line); color: var(--ink);
    border-radius: 8px; padding: 0.3rem 0.7rem; cursor: pointer; font: inherit;
}
.calendar-head .cal-title { font-weight: 700; color: var(--ink); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.3rem; }
.cal-dow { text-align: center; color: var(--muted); font-size: 0.7rem; padding: 0.2rem 0; }
.cal-day {
    aspect-ratio: 1; border-radius: 8px; display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; cursor: default; border: 1px solid transparent;
}
.cal-day.available { background: rgba(46, 204, 113, 0.15); color: #2ecc71; cursor: pointer; }
.cal-day.available:hover { border-color: #2ecc71; }
.cal-day.unavailable { background: var(--bg); color: var(--muted); }
.cal-day.booked { background: rgba(231, 76, 60, 0.15); color: #e74c3c; }
.cal-day.selected { border-color: var(--accent); background: var(--accent); color: var(--ink); font-weight: 700; }
.cal-day.blank { visibility: hidden; }
.cal-legend { display: flex; gap: 1rem; margin-top: 0.6rem; font-size: 0.75rem; color: var(--muted); flex-wrap: wrap; }
.cal-legend span { display: inline-flex; align-items: center; gap: 0.3rem; }
.cal-legend .dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.dot.green { background: #2ecc71; }
.dot.gray { background: var(--muted); }
.dot.red { background: #e74c3c; }
.cal-msg { font-size: 0.85rem; margin-top: 0.4rem; }
.cal-msg.ok { color: #2ecc71; }
.cal-msg.bad { color: #e74c3c; }

/* Time slots */
.slot-list { display: flex; flex-direction: column; gap: 0.5rem; }
.slot-option {
    display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
    padding: 0.6rem 0.9rem; border: 1px solid var(--line); border-radius: 10px;
    background: var(--surface); cursor: pointer; color: var(--ink); font-size: 0.9rem;
}
.slot-option:hover { border-color: var(--accent); }
.slot-option.selected { border-color: var(--accent); background: rgba(232, 93, 4, 0.12); }
.slot-option .slot-time { font-weight: 600; }
.slot-option .slot-vehicle { color: var(--muted); font-size: 0.8rem; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.7rem 1.4rem; border: none; border-radius: 12px; background: var(--accent);
    color: var(--ink); font-weight: 600; cursor: pointer; text-decoration: none; transition: background 0.2s, transform 0.2s;
}
.btn:hover { background: var(--accent-deep); color: #fff; transform: translateY(-2px); }
.btn.block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn.outline { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn.outline:hover { border-color: var(--accent); background: transparent; color: var(--accent); }

.signin-prompt { text-align: center; padding: 2rem 1rem; }
.signin-prompt h2 { font-size: 1.4rem; color: var(--ink); }
.signin-prompt p { color: var(--muted); margin-bottom: 1.5rem; }
.hidden { display: none !important; }
.loading { text-align: center; padding: 4rem 1rem; color: var(--muted); }
.not-found { text-align: center; padding: 4rem 1rem; color: var(--muted); }

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