/* Booking page specific styles - mobile first */

.booking-page {
    padding-top: 6.5rem; /* account for navbar */
    padding-bottom: 3rem;
    /* Use the same premium gradient from the login page for brand consistency */
    background: linear-gradient(135deg, #1E3A8A 0%, #4169E1 50%, #93B5F0 100%);
    position: relative;
    overflow: hidden;
}

.booking-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.booking-form-section {
    /* Glass-like container matching the login page */
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 1.25rem;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    animation: slideUp 0.6s ease;
}

.booking-form-section h1 {
    font-family: var(--font-head);
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: var(--dark);
}

.muted {
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.booking-form fieldset {
    border: 1px solid var(--gray-100);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    background: #fff;
}

.booking-form legend {
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0 0.25rem;
}

.booking-form label {
    display: block;
    font-weight: 600;
    margin-top: 0.75rem;
    margin-bottom: 0.35rem;
    color: var(--gray-700);
}

.booking-form input[type="text"],
.booking-form input[type="tel"],
.booking-form input[type="email"],
.booking-form input[type="date"],
.booking-form input[type="time"],
.booking-form select {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border-radius: 0.75rem;
    border: 2px solid var(--gray-100);
    background: var(--white);
    font-size: 1rem;
}

.row {
    display: flex;
    gap: 0.75rem;
}

.col { flex: 1; }

.segmented {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* nicer focus state and subtle input shadow */
.booking-form input:focus,
.booking-form select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 6px 18px rgba(0,102,204,0.06);
}

/* validation state */
.booking-form input.invalid,
.booking-form select.invalid {
    border-color: #e11d48; /* red-600 */
    box-shadow: 0 6px 18px rgba(225,29,72,0.1);
    background-color: rgba(225, 29, 72, 0.03);
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}

/* Hidden class for form/confirmation toggle */
.booking-form.hidden,
.confirmation.hidden {
    display: none !important;
}

.option-btn {
    padding: 0.55rem 0.9rem;
    border-radius: 0.6rem;
    border: 1px solid var(--gray-200);
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    color: var(--gray-700);
}

.option-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.form-actions { margin-top: 1rem; }

.btn-large { padding: 0.9rem 1.25rem; font-size: 1rem; border-radius:0.6rem; }

.booking-summary .summary-card {
    border-radius: 0.75rem;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.9), #fbfcff);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(2,6,23,0.04);
    position: sticky;
    top: 88px;
}

.summary-fare {
    display:flex; align-items:center; justify-content:space-between; gap:0.5rem; padding:0.75rem 0; background:linear-gradient(90deg, rgba(0,102,204,0.05), rgba(0,0,0,0)); border-radius:0.5rem; margin-top:0.75rem; font-weight:700; color:var(--dark);
}

.summary-fare .fare-value { color: var(--primary); }

.summary-card .muted { font-size:0.95rem; color:var(--gray-500); }

.booking-form .note { font-size:0.95rem; color:var(--gray-500); margin-top:0.5rem }

/* Confirmation visuals */
.confirmation-box { display:flex; flex-direction:column; align-items:center; gap:1rem; padding:1.25rem; border-radius:0.75rem; background:linear-gradient(180deg, rgba(0,102,204,0.03), rgba(255,255,255,0.6)); border:1px solid rgba(0,102,204,0.08); }
.checkmark { width:64px; height:64px; display:flex; align-items:center; justify-content:center; border-radius:50%; background:linear-gradient(180deg,var(--primary),var(--gold-dark)); box-shadow: 0 8px 20px rgba(0,102,204,0.2); }
.checkmark svg { width:34px; height:34px; color:white; }

.booking-ref { font-weight:700; color:var(--gray-800); }

.booking-summary .btn { width: 100%; }

/* Make secondary buttons visible on the booking page: blue background, black hover */
.booking-page .btn-secondary {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.booking-page .btn-secondary:hover {
    background-color: #000;
    border-color: #000;
    color: var(--white);
}

.summary-card h3 { margin-bottom: 0.75rem; }

.summary-row { display: flex; justify-content: space-between; padding: 0.5rem 0; color: var(--gray-700); border-bottom: 1px solid var(--gray-100); }
.summary-row:last-child { border-bottom: none; }

.summary-row strong { color: var(--gray-800); }

.confirmation { text-align: center; margin-top: 1rem; }
.confirmation.hidden { display: none; }
.confirmation h2 { color: var(--primary); }

/* Desktop layout */
@media (min-width: 900px) {
    .booking-grid { grid-template-columns: 2fr 1fr; align-items: start; }

    .booking-form-section h1 { font-size: 2rem; }
}

/* decorative animated radial texture like the login page */
.booking-page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
    pointer-events: none;
}

@keyframes moveBackground {
    0% { transform: translate(0,0); }
    100% { transform: translate(50px,50px); }
}

/* Minor responsive tweaks */
@media (max-width: 420px) {
    .row { flex-direction: column; }
    .segmented { gap: 0.35rem; }
}
