/* ==========================================
   RESET
========================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    background: transparent;

    color: #1f2937;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;
}

button,
input,
select {
    font: inherit;
}


/* ==========================================
   WRAPPER
========================================== */

.booking-wrapper {
    width: 100%;
}


/* ==========================================
   MAIN CARD
========================================== */

.booking-container {
    width: min(100%, 410px);

    margin: 0 auto;

    padding: 20px;

    background: #ffffff;

    border: 1px solid #e8e2d6;

    border-radius: 16px;

    box-shadow:
        0 8px 25px rgba(70, 58, 25, 0.06);
}


/* ==========================================
   HEADER
========================================== */

.booking-header {
    margin-bottom: 16px;

    text-align: left;
}

.booking-badge {
    display: none;
}

.booking-header h1 {
    margin: 0 0 3px;

    font-size: 18px;

    line-height: 1.25;
}

.booking-header p {
    margin: 0;

    color: #7b7569;

    font-size: 11px;

    line-height: 1.35;
}


/* ==========================================
   FORM SECTIONS
========================================== */

.form-section {
    margin-bottom: 14px;
}

.form-section h2 {
    margin: 0 0 7px;

    font-size: 13px;
}

.field-group {
    margin-bottom: 9px;
}

.field-label {
    display: block;

    margin-bottom: 5px;

    font-size: 12px;

    font-weight: 650;
}


/* ==========================================
   INPUTS
========================================== */

.form-control {
    width: 100%;

    min-height: 38px;

    padding: 8px 11px;

    border: 1px solid #ddd6c8;

    border-radius: 9px;

    background: #ffffff;

    color: #182033;

    font-size: 12px;

    outline: none;

    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.form-control:focus {
    border-color: #f97316;

    box-shadow:
        0 0 0 2px rgba(249, 115, 22, 0.16);
}


/* ==========================================
   OPTION GRIDS
========================================== */

.trip-options,
.vehicle-options,
.journey-options {
    display: grid;

    gap: 7px;
}

.trip-options {
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
}

.vehicle-options {
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
}

.journey-options {
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
}


/* ==========================================
   RADIO CARDS
========================================== */

.option-card,
.vehicle-card {
    position: relative;

    min-height: 44px;

    padding: 7px 6px;

    border: 1px solid #e3dccf;

    border-radius: 9px;

    background: #ffffff;

    cursor: pointer;

    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.option-card:hover,
.vehicle-card:hover {
    border-color: #fdba74;
}

.option-card input,
.vehicle-card input {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}

.option-card:has(input:checked),
.vehicle-card:has(input:checked) {

    border-color: #f97316;

    background: #fff7ed;

    box-shadow:
        0 0 0 1px rgba(249,115,22,0.12);
}


/* ==========================================
   OPTION TEXT
========================================== */

.option-title {
    display: flex;

    min-height: 28px;

    align-items: center;

    justify-content: center;

    text-align: center;

    font-size: 12px;

    font-weight: 700;
}

.vehicle-content {
    display: flex;

    min-height: 32px;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 1px;
}

.vehicle-title {
    font-size: 12px;

    font-weight: 750;
}

.vehicle-subtitle {
    color: #797267;

    font-size: 9px;
}


/* ==========================================
   PRICE BOX
========================================== */

.price-box {
    margin-bottom: 10px;

    padding: 14px;

    border: 1px solid #fdba74;

    border-radius: 12px;

    background: #fff7ed;

    color: #332a18;
}

.price-label {
    display: block;

    margin-bottom: 3px;

    color: #c2410c;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 0.04em;
}

#booking-price {
    display: block;

    color: #9a3412;

    font-size: 25px;

    line-height: 1.15;
}

.booking-summary {
    margin-top: 4px;

    color: #68582d;

    font-size: 9px;

    font-weight: 500;

    line-height: 1.4;
}

.price-note {
    display: block;

    margin-top: 4px;

    color: #92701c;

    font-size: 9px;
}


/* ==========================================
   CONTINUE BUTTON
========================================== */

.continue-section {
    margin-bottom: 12px;
}

.continue-button {
    width: 100%;

    min-height: 40px;

    padding: 8px 12px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    border: none;

    border-radius: 9px;

    background: #f97316;

    color: #ffffff;

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.18s ease,
        opacity 0.18s ease,
        transform 0.18s ease;
}

.continue-button:not(:disabled):hover {
    background: #ea580c;
}

.continue-button:disabled {
    background: #e5e0d5;

    color: #938d82;

    cursor: not-allowed;

    opacity: 0.8;
}

.continue-help {
    margin: 4px 0 0;

    text-align: center;

    color: #857f73;

    font-size: 9px;
}


/* ==========================================
   CUSTOMER DETAILS STEP
========================================== */

.customer-details-section {
    margin-top: 10px;

    animation: customerDetailsIn 0.22s ease;
}

@keyframes customerDetailsIn {

    from {
        opacity: 0;

        transform: translateY(6px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }

}


/* ==========================================
   STEP 2 HEADER
========================================== */

.step-two-header {
    margin-bottom: 12px;
}

.step-two-header h2 {
    margin: 8px 0 3px;

    font-size: 15px;
}

.step-two-header p {
    margin: 0;

    color: #746d61;

    font-size: 10px;

    line-height: 1.4;
}


/* ==========================================
   BACK BUTTON
========================================== */

.back-button {
    padding: 0;

    border: none;

    background: transparent;

    color: #ea580c;

    cursor: pointer;

    font-size: 10px;

    font-weight: 700;
}

.back-button:hover {
    text-decoration: underline;
}


/* ==========================================
   STEP 2 SUMMARY
========================================== */

.step-summary {
    margin-bottom: 10px;

    padding: 9px 10px;

    border: 1px solid #fed7aa;

    border-radius: 8px;

    background: #fff7ed;

    font-size: 10px;
}

.step-summary-label {
    display: none;
}

#step-two-summary {
    display: block;

    line-height: 1.4;
}


/* ==========================================
   DATE + TIME
========================================== */

.date-time-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 7px;
}


/* ==========================================
   ERRORS
========================================== */

.form-errors {
    margin-bottom: 10px;

    padding: 10px;

    border: 1px solid #f4bcbc;

    border-radius: 8px;

    background: #fff2f2;

    color: #9c2929;

    font-size: 10px;
}

.form-errors strong {
    display: block;

    margin-bottom: 5px;
}

.form-errors ul {
    margin: 0;

    padding-left: 16px;
}

.form-errors li + li {
    margin-top: 3px;
}


/* ==========================================
   FINAL SUBMIT BUTTON
========================================== */

.submit-button {
    width: 100%;

    min-height: 40px;

    padding: 8px 12px;

    border: none;

    border-radius: 9px;

    background: #f97316;

    color: #ffffff;

    cursor: pointer;

    font-size: 12px;

    font-weight: 700;

    transition:
        opacity 0.18s ease,
        background 0.18s ease;
}

.submit-button:hover {
    background: #ea580c;

    opacity: 1;
}

.submit-button:disabled {
    cursor: not-allowed;

    opacity: 0.55;
}


/* ==========================================
   SUCCESS PANEL
========================================== */

.booking-success {
    text-align: center;
}

.success-icon {
    display: flex;

    width: 52px;

    height: 52px;

    margin: 0 auto 12px;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #e7f8ed;

    color: #168b46;

    font-size: 24px;

    font-weight: 800;
}

.booking-success h2 {
    margin: 0 0 7px;

    font-size: 20px;
}

.success-message {
    margin: 0 auto 14px;

    max-width: 330px;

    color: #746d61;

    font-size: 11px;

    line-height: 1.45;
}

.success-details {
    margin-bottom: 14px;

    padding: 12px;

    border-radius: 9px;

    background: #faf8f2;
}

.success-summary {
    font-size: 11px;

    font-weight: 700;

    line-height: 1.4;
}

.success-date-time {
    margin-top: 5px;

    color: #746d61;

    font-size: 10px;
}

.booking-success .submit-button {
    max-width: 220px;
}


/* ==========================================
   UTILITY
========================================== */

.hidden {
    display: none !important;
}


/* ==========================================
   TABLET / MOBILE
========================================== */

@media (max-width: 460px) {

    .booking-container {
        width: 100%;

        padding: 16px;

        border-radius: 13px;
    }

    .trip-options {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .vehicle-options {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .journey-options {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .option-card,
    .vehicle-card {
        padding: 6px 4px;
    }

    .option-title {
        font-size: 11px;
    }

    .vehicle-title {
        font-size: 11px;
    }

    .vehicle-subtitle {
        font-size: 8px;
    }

    #booking-price {
        font-size: 23px;
    }

}


/* ==========================================
   VERY SMALL MOBILE
========================================== */

@media (max-width: 340px) {

    .trip-options {
        grid-template-columns: 1fr;
    }

    .vehicle-options {
        grid-template-columns: 1fr;
    }

    .journey-options {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}