/* =====================================================
   RESET
===================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: #f4f7fb;
    color: #172033;

    min-height: 100vh;

    overflow-x: hidden;
}


/* =====================================================
   NAVBAR
===================================================== */

.navbar {
    width: 100%;
    min-height: 78px;

    padding: 0 6%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: #10182b;
    color: #ffffff;

    box-shadow:
        0 4px 18px rgba(0, 0, 0, 0.15);

    position: relative;
    z-index: 100;
}


/* =====================================================
   LOGO
===================================================== */

.logo {
    color: #ffffff;

    font-size: 25px;
    font-weight: 800;

    white-space: nowrap;
}


/* =====================================================
   BACK BUTTON
===================================================== */

.back-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 11px 18px;

    border-radius: 10px;

    background:
        rgba(255, 255, 255, 0.10);

    color: #ffffff;

    text-decoration: none;

    font-size: 14px;
    font-weight: 700;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.back-btn:hover {
    background:
        rgba(255, 255, 255, 0.18);

    transform: translateY(-1px);
}


/* =====================================================
   PAGE
===================================================== */

.booking-page {
    width: 92%;

    max-width: 1050px;

    margin: 50px auto 80px;
}


/* =====================================================
   HEADER
===================================================== */

.booking-header {
    text-align: center;

    margin-bottom: 32px;
}


.booking-badge,
.section-badge {
    display: inline-block;

    padding: 7px 14px;

    border-radius: 20px;

    background: #dbeafe;

    color: #1d4ed8;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 0.5px;
}


.booking-header h1 {
    margin-top: 14px;

    color: #172033;

    font-size: 42px;

    font-weight: 850;

    line-height: 1.1;
}


.booking-header p {
    max-width: 650px;

    margin: 10px auto 0;

    color: #6b7280;

    font-size: 16px;

    line-height: 1.65;
}


/* =====================================================
   BOOKING CARD
===================================================== */

.booking-card {
    background: #ffffff;

    border:
        1px solid #e5e7eb;

    border-radius: 22px;

    padding: 34px;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.07);
}


/* =====================================================
   CARD TITLE
===================================================== */

.card-title {
    margin-bottom: 28px;
}


.card-title h2 {
    color: #172033;

    font-size: 25px;

    font-weight: 800;
}


.card-title p {
    margin-top: 7px;

    color: #6b7280;

    font-size: 14px;
}


/* =====================================================
   FORM
===================================================== */

#taxiBookingForm {
    display: flex;

    flex-direction: column;
}


/* =====================================================
   FORM GROUP
===================================================== */

.form-group {
    margin-bottom: 20px;
}


.form-group label {
    display: block;

    margin-bottom: 8px;

    color: #26364e;

    font-size: 14px;

    font-weight: 750;
}


.form-group input,
.form-group select {
    width: 100%;

    height: 50px;

    padding:
        0 15px;

    border:
        1px solid #d1d5db;

    border-radius: 10px;

    background: #ffffff;

    color: #172033;

    outline: none;

    font-size: 15px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.form-group input:focus,
.form-group select:focus {
    border-color: #2563eb;

    box-shadow:
        0 0 0 4px
        rgba(37, 99, 235, 0.10);
}


.form-group input::placeholder {
    color: #9ca3af;
}


/* =====================================================
   DATE + TIME
===================================================== */

.form-row {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 18px;
}


/* =====================================================
   TRIP TYPE
===================================================== */

.trip-type-group {
    margin-bottom: 24px;
}


.trip-type-group > label {
    display: block;

    margin-bottom: 11px;

    color: #26364e;

    font-size: 14px;

    font-weight: 750;
}


.trip-type-options {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 12px;
}


.trip-option {
    min-height: 54px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    padding: 10px 14px;

    border:
        1px solid #d9e0ea;

    border-radius: 10px;

    background: #ffffff;

    color: #334155;

    cursor: pointer;

    font-size: 14px;

    font-weight: 700;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}


.trip-option:hover {
    border-color: #93b4f8;

    background: #f8fbff;

    transform: translateY(-1px);
}


.trip-option input {
    width: 17px;
    height: 17px;

    margin: 0;

    accent-color: #2563eb;

    cursor: pointer;
}


.trip-option:has(input:checked) {
    border-color: #2563eb;

    background: #eff6ff;

    color: #1d4ed8;
}


/* =====================================================
   SELECTED TAXI
===================================================== */

.selected-taxi-info {
    width: 100%;

    min-height: 82px;

    display: flex;

    align-items: center;

    gap: 16px;

    margin:
        2px 0 22px;

    padding: 15px 17px;

    border:
        1px solid #bfdbfe;

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            #eff6ff,
            #f8fbff
        );
}


.selected-taxi-icon {
    width: 52px;
    height: 52px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: #ffffff;

    box-shadow:
        0 4px 12px
        rgba(37, 99, 235, 0.10);

    font-size: 27px;
}


.selected-taxi-info span {
    display: block;

    margin-bottom: 4px;

    color: #2563eb;

    font-size: 10px;

    font-weight: 850;

    letter-spacing: 1.5px;
}


.selected-taxi-info h3 {
    color: #172033;

    font-size: 18px;

    font-weight: 800;
}


.selected-taxi-info p {
    margin-top: 4px;

    color: #64748b;

    font-size: 13px;
}


/* =====================================================
   MESSAGE
===================================================== */

.booking-message {
    min-height: 22px;

    margin-bottom: 14px;

    font-size: 14px;

    font-weight: 700;

    line-height: 1.5;
}


.booking-message.error {
    padding: 10px 12px;

    border-radius: 8px;

    background: #fef2f2;

    color: #dc2626;
}


.booking-message.success {
    padding: 10px 12px;

    border-radius: 8px;

    background: #f0fdf4;

    color: #15803d;
}


/* =====================================================
   BOOK BUTTON
===================================================== */

.book-btn {
    width: 100%;

    height: 54px;

    border: none;

    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #1d4ed8
        );

    color: #ffffff;

    font-size: 16px;

    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 7px 20px
        rgba(37, 99, 235, 0.20);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.book-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 11px 25px
        rgba(37, 99, 235, 0.27);
}


.book-btn:disabled {
    opacity: 0.65;

    cursor: not-allowed;

    transform: none;

    box-shadow: none;
}


/* =====================================================
   MY BOOKINGS SECTION
===================================================== */

.my-bookings-section {
    margin-top: 55px;
}


/* =====================================================
   SECTION HEADER
===================================================== */

.section-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 24px;

    background: #ffffff;

    border:
        1px solid #e5e7eb;

    border-radius: 18px;
}


.section-header h2 {
    margin-top: 9px;

    color: #172033;

    font-size: 26px;

    font-weight: 800;
}


.section-header p {
    margin-top: 6px;

    color: #6b7280;

    font-size: 14px;

    line-height: 1.5;
}


/* =====================================================
   REFRESH
===================================================== */

.refresh-btn {
    flex-shrink: 0;

    padding: 11px 17px;

    border: none;

    border-radius: 9px;

    background: #eef2ff;

    color: #3730a3;

    font-size: 14px;

    font-weight: 750;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.refresh-btn:hover {
    background: #e0e7ff;

    transform: translateY(-1px);
}


/* =====================================================
   BOOKINGS CONTAINER
===================================================== */

.my-bookings-container {
    margin-top: 18px;

    display: grid;

    gap: 18px;
}


/* =====================================================
   BOOKING ITEM
===================================================== */

.booking-item {
    padding: 23px;

    background: #ffffff;

    border:
        1px solid #e5e7eb;

    border-radius: 18px;

    box-shadow:
        0 7px 23px
        rgba(0, 0, 0, 0.05);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.booking-item:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 28px
        rgba(0, 0, 0, 0.08);
}


/* =====================================================
   BOOKING TOP
===================================================== */

.booking-item-top {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 15px;

    margin-bottom: 20px;
}


.booking-item-top h3 {
    color: #172033;

    font-size: 20px;

    font-weight: 800;
}


.booking-date {
    display: block;

    margin-top: 6px;

    color: #6b7280;

    font-size: 13px;
}


/* =====================================================
   STATUS
===================================================== */

.booking-status {
    padding: 7px 13px;

    border-radius: 30px;

    font-size: 12px;

    font-weight: 800;

    white-space: nowrap;
}


.status-pending {
    background: #fef3c7;

    color: #92400e;
}


.status-confirmed {
    background: #dcfce7;

    color: #166534;
}


.status-driver {
    background: #dbeafe;

    color: #1e40af;
}


.status-completed {
    background: #e0e7ff;

    color: #3730a3;
}


.status-cancelled {
    background: #fee2e2;

    color: #991b1b;
}


/* =====================================================
   BOOKING DETAILS
===================================================== */

.booking-details {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 12px;
}


.booking-details > div {
    padding: 14px;

    border-radius: 10px;

    background: #f8fafc;
}


.booking-details strong {
    display: block;

    margin-bottom: 6px;

    color: #64748b;

    font-size: 12px;
}


.booking-details span {
    display: block;

    color: #26364e;

    font-size: 14px;

    font-weight: 650;

    word-break: break-word;
}


/* =====================================================
   PAYMENT INFO
===================================================== */

.payment-info {
    margin-top: 16px;

    padding: 13px 15px;

    border-radius: 10px;

    background: #f8fafc;

    color: #475569;

    font-size: 14px;

    line-height: 1.5;
}


.pending-payment {
    background: #fffbeb;

    border:
        1px solid #fde68a;

    color: #92400e;
}


.confirmed-payment {
    background: #f0fdf4;

    border:
        1px solid #bbf7d0;

    color: #166534;
}


/* =====================================================
   DRIVER BOX
===================================================== */

.driver-box {
    margin-top: 17px;

    padding: 16px;

    border:
        1px solid #bbf7d0;

    border-radius: 12px;

    background: #f0fdf4;
}


.driver-box h4 {
    margin-bottom: 9px;

    color: #166534;

    font-size: 15px;
}


.driver-box p {
    margin-top: 5px;

    color: #334155;

    font-size: 14px;
}


/* =====================================================
   CANCELLED BOX
===================================================== */

.cancelled-box {
    margin-top: 16px;

    padding: 12px 14px;

    border-left:
        4px solid #ef4444;

    border-radius: 8px;

    background: #fef2f2;

    color: #991b1b;

    font-size: 14px;

    line-height: 1.5;
}


/* =====================================================
   BOOKING ACTIONS
===================================================== */

.booking-actions {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-top: 18px;
}


.booking-actions button {
    min-height: 42px;

    padding: 10px 16px;

    border: none;

    border-radius: 9px;

    font-size: 13px;

    font-weight: 750;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}


.booking-actions button:hover {
    transform: translateY(-1px);

    opacity: 0.9;
}


/* =====================================================
   VIEW BOOKING
===================================================== */

.view-booking-btn {
    background: #eef2ff;

    color: #3730a3;
}


/* =====================================================
   PAY NOW
===================================================== */

.pay-booking-btn {
    background:
        #2563eb;

    color: #ffffff;

    box-shadow:
        0 5px 14px
        rgba(37, 99, 235, 0.18);
}


.pay-booking-btn:hover {
    background: #1d4ed8;
}


/* =====================================================
   CANCEL
===================================================== */

.cancel-booking-btn {
    background: #fee2e2;

    color: #991b1b;
}


/* =====================================================
   LOADING
===================================================== */

.loading-state {
    min-height: 150px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 40px;

    border:
        1px solid #e5e7eb;

    border-radius: 16px;

    background: #ffffff;

    color: #6b7280;

    text-align: center;
}


/* =====================================================
   EMPTY
===================================================== */

.empty-state {
    padding: 45px;

    border:
        1px solid #e5e7eb;

    border-radius: 16px;

    background: #ffffff;

    color: #6b7280;

    text-align: center;
}


.empty-icon {
    margin-bottom: 10px;

    font-size: 42px;
}


.empty-state h3 {
    margin-bottom: 7px;

    color: #172033;

    font-size: 19px;
}


.empty-state p {
    font-size: 14px;

    line-height: 1.5;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 800px) {

    .booking-page {
        width: 94%;

        margin-top: 35px;
    }


    .booking-card {
        padding: 26px;
    }


    .booking-header h1 {
        font-size: 35px;
    }


    .booking-details {
        grid-template-columns:
            1fr 1fr;
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {

    .navbar {
        min-height: 70px;

        padding:
            14px 5%;

        gap: 12px;
    }


    .logo {
        font-size: 19px;
    }


    .back-btn {
        padding:
            9px 11px;

        font-size: 12px;
    }


    .booking-page {
        width: 94%;

        margin:
            30px auto 55px;
    }


    .booking-header {
        margin-bottom: 24px;
    }


    .booking-header h1 {
        font-size: 31px;
    }


    .booking-header p {
        font-size: 14px;
    }


    .booking-card {
        padding: 21px 17px;

        border-radius: 17px;
    }


    .card-title h2 {
        font-size: 21px;
    }


    .form-row {
        grid-template-columns: 1fr;

        gap: 0;
    }


    .trip-type-options {
        grid-template-columns: 1fr;
    }


    .trip-option {
        justify-content: flex-start;

        padding-left: 17px;
    }


    .selected-taxi-info {
        align-items: flex-start;

        padding: 14px;
    }


    .selected-taxi-icon {
        width: 46px;
        height: 46px;

        font-size: 23px;
    }


    .section-header {
        align-items: flex-start;

        flex-direction: column;

        padding: 20px;
    }


    .section-header h2 {
        font-size: 22px;
    }


    .refresh-btn {
        width: 100%;
    }


    .booking-item {
        padding: 18px;
    }


    .booking-item-top {
        flex-direction: column;
    }


    .booking-details {
        grid-template-columns: 1fr;
    }


    .booking-actions {
        flex-direction: column;
    }


    .booking-actions button {
        width: 100%;
    }

}


/* =====================================================
   VERY SMALL MOBILE
===================================================== */

@media (max-width: 400px) {

    .logo {
        font-size: 17px;
    }


    .back-btn {
        font-size: 11px;

        padding:
            8px 9px;
    }


    .booking-header h1 {
        font-size: 28px;
    }


    .booking-card {
        padding:
            19px 14px;
    }

}