/* =========================================================
   STARLINK TRANSFERS LTD
   BOOKING PAGE CSS
   MK-Tech Solutions
========================================================= */

:root {
    --booking-navy: #10263f;
    --booking-dark: #091a2d;
    --booking-light: #1b3856;
    --booking-gold: #d9a84e;
    --booking-gold-light: #f1d49b;
    --booking-white: #ffffff;
    --booking-bg: #f7f8fa;
    --booking-text: #26384b;
    --booking-muted: #788594;
    --booking-border: #e6ebf0;
    --booking-success: #16845d;
    --booking-danger: #d84b4b;
    --booking-shadow: 0 12px 35px rgba(16, 38, 63, .07);
}

.booking-page,
.booking-page * {
    box-sizing: border-box;
}

.booking-page {
    width: 100%;
    background: var(--booking-bg);
    color: var(--booking-text);
    font-family: 'Inter', sans-serif;
}

.booking-container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================================================
   HERO
========================================================= */

.booking-hero {
    position: relative;
    padding: 75px 0 85px;
    overflow: hidden;
    background:
        linear-gradient(
            110deg,
            rgba(9, 26, 45, .97),
            rgba(16, 38, 63, .88)
        ),
        url('../Images/hero-taxi.jpg') center/cover no-repeat;
}

.booking-hero::after {
    content: "";
    position: absolute;
    right: -100px;
    bottom: -220px;
    width: 450px;
    height: 450px;
    border: 1px solid rgba(217, 168, 78, .22);
    border-radius: 50%;
}

.booking-hero .booking-container {
    position: relative;
    z-index: 2;
}

.booking-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--booking-gold-light);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.booking-eyebrow i {
    color: var(--booking-gold);
    font-size: 17px;
}

.booking-hero h1 {
    margin: 18px 0 12px;
    color: var(--booking-white);
    font-size: clamp(35px, 5vw, 52px);
    font-weight: 800;
    letter-spacing: -1.5px;
}

.booking-hero p {
    max-width: 600px;
    margin: 0;
    color: rgba(255, 255, 255, .76);
    font-size: 14px;
    line-height: 1.8;
}


/* =========================================================
   CONTENT
========================================================= */

.booking-content {
    padding: 55px 0 90px;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.booking-card {
    padding: 30px;
    background: var(--booking-white);
    border: 1px solid var(--booking-border);
    border-radius: 9px;
    box-shadow: var(--booking-shadow);
}

.booking-card-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 23px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--booking-border);
}

.booking-step {
    width: 43px;
    height: 43px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fbf4e7;
    color: #b98937;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 800;
}

.booking-card-heading h2 {
    margin: 0 0 5px;
    color: var(--booking-navy);
    font-size: 19px;
    font-weight: 800;
}

.booking-card-heading p {
    margin: 0;
    color: var(--booking-muted);
    font-size: 12px;
    line-height: 1.6;
}


/* =========================================================
   JOURNEY TYPE
========================================================= */

.journey-type-options {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
}

.journey-option {
    min-width: 145px;
    min-height: 48px;
    padding: 0 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--booking-bg);
    border: 1px solid var(--booking-border);
    border-radius: 6px;
    color: var(--booking-text);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    transition: .25s ease;
}

.journey-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.journey-option i {
    color: var(--booking-muted);
}

.journey-option.active,
.journey-option:has(input:checked) {
    background: #fcf6e9;
    border-color: var(--booking-gold);
    color: var(--booking-navy);
}

.journey-option.active i,
.journey-option:has(input:checked) i {
    color: #b98937;
}


/* =========================================================
   FORM GRID
========================================================= */

.booking-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 21px;
}

.booking-field {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.booking-field-full {
    grid-column: 1 / -1;
}

.booking-field label,
.vehicle-selection-label {
    color: var(--booking-navy);
    font-size: 12px;
    font-weight: 800;
}

.booking-field input,
.booking-field select,
.booking-field textarea {
    width: 100%;
    min-height: 47px;
    padding: 12px 14px;
    outline: none;
    background: #fff;
    color: var(--booking-text);
    border: 1px solid #dfe5eb;
    border-radius: 5px;
    font-family: inherit;
    font-size: 13px;
    transition: .25s ease;
}

.booking-field textarea {
    min-height: 110px;
    resize: vertical;
    line-height: 1.7;
}

.booking-field input::placeholder,
.booking-field textarea::placeholder {
    color: #a2acb7;
}

.booking-field input:focus,
.booking-field select:focus,
.booking-field textarea:focus {
    border-color: var(--booking-gold);
    box-shadow: 0 0 0 3px rgba(217, 168, 78, .12);
}

.booking-field input:disabled,
.booking-field select:disabled {
    background: #f0f2f4;
    cursor: not-allowed;
}

.booking-field [hidden] {
    display: none !important;
}

.booking-date-grid {
    margin-top: 25px;
}


/* =========================================================
   VEHICLE SELECTION
========================================================= */

.vehicle-selection {
    margin-top: 28px;
}

.vehicle-selection-label {
    display: block;
    margin-bottom: 15px;
}

.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.vehicle-option {
    position: relative;
    display: block;
    cursor: pointer;
}

.vehicle-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.vehicle-option-content {
    height: 100%;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--booking-border);
    border-radius: 7px;
    transition: .25s ease;
}

.vehicle-option:hover .vehicle-option-content {
    border-color: var(--booking-gold);
    transform: translateY(-3px);
}

.vehicle-option.selected .vehicle-option-content,
.vehicle-option:has(input:checked) .vehicle-option-content {
    background: #fffaf0;
    border: 2px solid var(--booking-gold);
    box-shadow: 0 6px 18px rgba(217, 168, 78, .12);
}

.vehicle-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f0df;
    color: #b98937;
    border-radius: 7px;
    font-size: 20px;
}

.vehicle-option h3 {
    margin: 15px 0 12px;
    color: var(--booking-navy);
    font-size: 15px;
    font-weight: 800;
}

.vehicle-capacity {
    display: flex;
    gap: 17px;
    margin-bottom: 13px;
}

.vehicle-capacity span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--booking-muted);
    font-size: 11px;
    font-weight: 700;
}

.vehicle-capacity i {
    color: #bd8b34;
}

.vehicle-option-content p {
    padding-top: 12px;
    margin: 0;
    color: var(--booking-muted);
    border-top: 1px solid var(--booking-border);
    font-size: 11px;
    font-weight: 600;
}


/* =========================================================
   FARE SUMMARY
========================================================= */

.fare-card {
    background: #fff;
}

.fare-summary {
    padding: 20px;
    background: var(--booking-bg);
    border: 1px solid var(--booking-border);
    border-radius: 7px;
}

.fare-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 13px 0;
    border-bottom: 1px solid var(--booking-border);
}

.fare-row:first-child {
    padding-top: 0;
}

.fare-row span {
    color: var(--booking-muted);
    font-size: 13px;
    font-weight: 600;
}

.fare-row strong {
    color: var(--booking-navy);
    font-size: 14px;
    font-weight: 800;
}

.fare-total {
    padding-top: 19px;
    padding-bottom: 0;
    border-bottom: 0;
}

.fare-total span {
    color: var(--booking-navy);
    font-size: 14px;
    font-weight: 800;
}

.fare-total strong {
    color: #b98937;
    font-size: 25px;
}

.fare-message {
    margin-top: 17px;
    padding: 13px 15px;
    background: #f2f5f8;
    border-radius: 5px;
    color: var(--booking-muted);
    font-size: 12px;
    line-height: 1.6;
}

.fare-message.success {
    background: #eaf7f0;
    color: var(--booking-success);
}

.fare-message.error {
    background: #fff0f0;
    color: var(--booking-danger);
}

.calculate-fare-btn {
    min-height: 48px;
    margin-top: 17px;
    padding: 0 23px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--booking-navy);
    color: #fff;
    border: 0;
    border-radius: 5px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: .25s ease;
}

.calculate-fare-btn:hover {
    background: var(--booking-light);
    transform: translateY(-2px);
}

.calculate-fare-btn:disabled {
    opacity: .6;
    cursor: wait;
    transform: none;
}


/* =========================================================
   SUBMIT
========================================================= */

.booking-submit-area {
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: var(--booking-white);
    border: 1px solid var(--booking-border);
    border-radius: 8px;
    box-shadow: var(--booking-shadow);
}

.booking-submit-area > p {
    margin: 0;
    color: var(--booking-muted);
    font-size: 12px;
    line-height: 1.7;
}

.booking-submit-area > p i {
    margin-right: 7px;
    color: var(--booking-success);
}

.booking-submit {
    min-height: 52px;
    padding: 0 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    background: var(--booking-gold);
    color: var(--booking-dark);
    border: 0;
    border-radius: 5px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: .25s ease;
}

.booking-submit:hover {
    background: var(--booking-gold-light);
    color: var(--booking-dark);
    transform: translateY(-2px);
}

.booking-submit:disabled {
    background: #d5d9de;
    color: #7b8590;
    cursor: not-allowed;
    transform: none;
}


/* =========================================================
   ALERTS
========================================================= */

.booking-alert {
    padding: 16px 19px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.6;
}

.booking-alert-error {
    background: #fff0f0;
    color: #b83232;
    border: 1px solid #f5d0d0;
}

.booking-alert i {
    font-size: 17px;
}


/* =========================================================
   SUCCESS CARD
========================================================= */

.booking-success-card {
    max-width: 720px;
    margin: 20px auto;
    padding: 45px 35px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--booking-border);
    border-radius: 10px;
    box-shadow: var(--booking-shadow);
}

.success-icon {
    width: 75px;
    height: 75px;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e7f7ef;
    color: var(--booking-success);
    border-radius: 50%;
    font-size: 30px;
}

.booking-success-card h2 {
    margin: 0 0 12px;
    color: var(--booking-navy);
    font-size: 25px;
    font-weight: 800;
}

.booking-success-card > p {
    color: var(--booking-muted);
    font-size: 13px;
    line-height: 1.8;
}

.success-details {
    margin: 28px 0;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    background: var(--booking-bg);
    border-radius: 7px;
}

.success-details div {
    min-width: 0;
}

.success-details span,
.success-details strong {
    display: block;
}

.success-details span {
    margin-bottom: 9px;
    color: var(--booking-muted);
    font-size: 10px;
    font-weight: 700;
}

.success-details strong {
    overflow-wrap: anywhere;
    color: var(--booking-navy);
    font-size: 13px;
    font-weight: 800;
}

.booking-success-card .success-note {
    margin-bottom: 25px;
}

.booking-success-card .booking-submit {
    text-decoration: none;
}


/* =========================================================
   RESPONSIVE TABLET
========================================================= */

@media (max-width: 900px) {

    .vehicle-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .booking-card {
        padding: 25px;
    }

}


/* =========================================================
   RESPONSIVE MOBILE
========================================================= */

@media (max-width: 600px) {

    .booking-container {
        width: calc(100% - 28px);
    }

    .booking-hero {
        padding: 55px 0 60px;
    }

    .booking-hero h1 {
        font-size: 35px;
    }

    .booking-content {
        padding: 30px 0 55px;
    }

    .booking-card {
        padding: 20px 16px;
        border-radius: 7px;
    }

    .booking-card-heading {
        gap: 12px;
        margin-bottom: 21px;
        padding-bottom: 18px;
    }

    .booking-card-heading h2 {
        font-size: 16px;
    }

    .booking-card-heading p {
        font-size: 11px;
    }

    .booking-step {
        width: 38px;
        height: 38px;
        font-size: 12px;
    }

    .journey-type-options {
        gap: 8px;
    }

    .journey-option {
        min-width: 0;
        flex: 1;
        padding: 0 8px;
        font-size: 11px;
    }

    .booking-grid {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .booking-field-full {
        grid-column: auto;
    }

    .vehicle-grid {
        grid-template-columns: 1fr;
    }

    .vehicle-option-content {
        padding: 17px;
    }

    .booking-submit-area {
        align-items: stretch;
        flex-direction: column;
        padding: 20px;
    }

    .booking-submit-area .booking-submit {
        width: 100%;
    }

    .success-details {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .booking-success-card {
        padding: 30px 18px;
    }

    .booking-success-card h2 {
        font-size: 21px;
    }

    .fare-total strong {
        font-size: 21px;
    }

}

@media (prefers-reduced-motion: reduce) {

    .booking-page *,
    .booking-page *::before,
    .booking-page *::after {
        transition: none !important;
        animation: none !important;
    }

}