/* ============================================
   THE CLIMATE LEDGER — BOOKING PAGE V2
   Trainline Group Executive Theme: White Cards,
   Mint (#00a88f) Accents, Forest Navy (#002326) Headers
   ============================================ */

.booking-page {
    padding-top: 140px;
    padding-bottom: 80px;
    background-color: #ffffff;
    min-height: 100vh;
}

.booking-page h1 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    color: #002326 !important;
    margin-bottom: 0.75rem;
}

.booking-page p.text-secondary {
    color: #4b5563 !important;
    font-size: 1.1rem;
    line-height: 1.7;
}

.booking-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--space-3xl);
    padding: var(--space-md) 0 var(--space-4xl);
}

/* Booking form */
.booking-form-section {
    padding: var(--space-3xl) var(--space-2xl);
    background: #ffffff !important;
    border: 1.5px solid #e5e7eb !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 35, 38, 0.06) !important;
}

.booking-form-section h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #002326 !important;
    margin-bottom: var(--space-sm);
}

.booking-form-section .section-desc {
    color: #4b5563 !important;
    font-size: 0.95rem;
    margin-bottom: var(--space-2xl);
    font-weight: 400;
}

.form-group label.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #002326;
    margin-bottom: 0.5rem;
}

.form-input,
.form-select,
textarea.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #f4f6f5;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #111827;
    font-family: inherit;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
textarea.form-input:focus {
    outline: none;
    background: #ffffff;
    border-color: #00a88f;
    box-shadow: 0 0 0 3px rgba(0, 168, 143, 0.18);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.booking-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid #e5e7eb;
}

/* ===== SERVICES CHECKLIST ===== */
.services-checklist {
    border-radius: var(--radius-md);
    margin-bottom: var(--space-xl);
}

.checklist-group-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 800;
    color: #007a68 !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-sm);
    display: block;
}

.checklist-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}

.service-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    background: #f4f6f5;
    border: 1.5px solid #e5e7eb;
    transition: all 0.2s ease;
    font-size: 0.92rem;
    font-weight: 600;
    color: #1f2937 !important;
    user-select: none;
}

.service-checkbox:hover {
    background: #e6faf6;
    border-color: #00a88f;
    transform: translateY(-1px);
}

.service-checkbox input[type="checkbox"] {
    display: none;
}

.checkbox-mark {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    background: #ffffff;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-mark::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 7px;
    width: 5px;
    height: 10px;
    border: solid transparent;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
    transition: border-color 0.2s ease;
}

.service-checkbox input:checked ~ .checkbox-mark {
    background: #00a88f !important;
    border-color: #00a88f !important;
    box-shadow: 0 0 10px rgba(0, 168, 143, 0.4);
}

.service-checkbox input:checked ~ .checkbox-mark::after {
    border-color: #ffffff;
}

.service-checkbox input:checked ~ .checkbox-label {
    color: #002326 !important;
    font-weight: 700;
}

.service-checkbox.checked {
    background: #e6faf6;
    border-color: #00a88f;
}

/* ===== BOOKING SIDEBAR ===== */
.booking-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.booking-summary {
    padding: var(--space-2xl);
    background: #ffffff !important;
    border: 1.5px solid #e5e7eb !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 35, 38, 0.06) !important;
}

.booking-summary h3 {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid #e5e7eb;
    font-size: 1.2rem;
    font-weight: 700;
    color: #002326 !important;
}

/* Process Timeline in sidebar */
.process-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
    position: relative;
    font-size: 0.9rem;
    color: #4b5563;
}

.process-step:not(:last-child) {
    padding-bottom: var(--space-lg);
}

/* Connecting line between dots */
.process-step:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 22px;
    width: 2px;
    height: calc(100% - 10px);
    background: #e5e7eb;
}

.process-dot {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    background: #ffffff;
    margin-top: 2px;
    transition: all 0.2s ease;
}

.process-dot.active-dot {
    background: #00a88f !important;
    border-color: #00a88f !important;
    box-shadow: 0 0 10px rgba(0, 168, 143, 0.5);
}

.process-step strong {
    color: #002326 !important;
    font-weight: 700;
    font-size: 0.92rem;
}

/* ===== SUCCESS STATE ===== */
.booking-success {
    text-align: center;
    padding: var(--space-3xl) var(--space-2xl);
    background: #ffffff;
    border-radius: 16px;
    border: 1.5px solid #e5e7eb;
    box-shadow: 0 4px 20px rgba(0, 35, 38, 0.06);
}

.booking-success h2 {
    color: #002326 !important;
    font-weight: 800;
    margin-bottom: var(--space-sm);
}

.booking-success p {
    color: #4b5563 !important;
    margin: 0 auto var(--space-xl);
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-xl);
    border-radius: 50%;
    background: #e6faf6;
    border: 2px solid #00a88f;
    box-shadow: 0 0 25px rgba(0, 168, 143, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00a88f;
    font-size: 2.5rem;
    animation: successPop 0.5s var(--ease-out);
}

@keyframes successPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Next Steps Grid */
.next-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-xl);
    text-align: center;
}

.next-step-card {
    padding: var(--space-lg) var(--space-md);
    background: #f4f6f5 !important;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 35, 38, 0.04);
    transition: all 0.2s ease;
}

.next-step-card.active-step {
    border-color: #00a88f;
    background: #e6faf6 !important;
    box-shadow: 0 4px 16px rgba(0, 168, 143, 0.15);
}

.next-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #00a88f;
    border: 1.5px solid #00a88f;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.9rem;
    margin: 0 auto var(--space-sm);
}

.next-step-card.active-step .next-step-num {
    background: #00a88f;
    color: white;
}

.next-step-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #002326 !important;
    margin-bottom: var(--space-xs);
}

.next-step-card p {
    font-size: 0.82rem;
    color: #4b5563 !important;
    line-height: 1.5;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .booking-layout {
        grid-template-columns: 1fr;
    }
    .booking-sidebar { position: static; }
    .form-row { grid-template-columns: 1fr; }
    .checklist-grid { grid-template-columns: 1fr; }
    .next-steps-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .next-steps-grid { grid-template-columns: 1fr; }
}
