/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* =========================================================
   VARIABLES
========================================================= */

:root {

    --blue: #082b4b;

    --blue-hover: #123f61;

    --gold: #d9a62e;

    --gold-light: #f5e4bd;

    --gold-background: #f2dcad;

    --background: #faf8f2;

    --white: #ffffff;

    --border: #ded8cc;

    --text: #60758a;

    --shadow:
        0 12px 30px rgba(8, 43, 75, 0.10);
}


/* =========================================================
   BODY
========================================================= */

body {

    min-height: 100vh;

    background: var(--background);

    color: var(--blue);

    font-family: "DM Sans", sans-serif;
}


/* =========================================================
   HEADER - DESKTOP ALIGNMENT
========================================================= */

.header {
    width: 100%;
    padding: 14px 20px;

    display: flex;
    justify-content: center;
}


/* نفس عرض الكونتينر */

.brand {
    width: 100%;
    max-width: 650px;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    gap: 14px;
}


/* LOGO */

.logo {
    width: 76px;
    height: 76px;

    object-fit: contain;
    display: block;
}


/* BRAND TEXT */

.brand-text {
    text-align: left;
}

.brand-text h2 {
    font-family: "Manrope", sans-serif;

    font-size: 22px;
    font-weight: 800;

    line-height: 1.1;

    color: var(--blue);
}

.brand-text p {
    margin-top: 5px;

    color: var(--text);

    font-size: 13px;
    font-weight: 500;
}


/* =========================================================
   BOOKING AREA
========================================================= */

.booking-area {

    width: 100%;

    display: flex;

    justify-content: center;

    padding: 20px 20px 50px;
}


/* =========================================================
   BOOKING CARD
========================================================= */

.booking-card {

    width: 100%;

    max-width: 650px;

    background: var(--white);

    border-radius: 24px;

    padding: 36px 40px;

    box-shadow: var(--shadow);
}


/* =========================================================
   TITLE
========================================================= */

.title-section h1 {

    font-family: "Manrope", sans-serif;

    color: var(--blue);

    font-size: 28px;

    font-weight: 800;

    line-height: 1.2;
}


.title-section p {

    margin-top: 7px;

    color: var(--text);

    font-size: 12px;

    line-height: 1.5;
}


/* =========================================================
   SEPARATOR
========================================================= */

.separator {

    width: 100%;

    height: 1px;

    background: var(--border);

    margin: 25px 0 26px;
}


/* =========================================================
   FORM SECTION
========================================================= */

.form-section {

    width: 100%;

    margin-bottom: 21px;
}


.field-label {

    display: block;

    margin-bottom: 9px;

    color: var(--blue);

    font-size: 18px;

    font-weight: 700;
}


/* =========================================================
   TRIP BUTTONS
========================================================= */

.trip-buttons {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 12px;
}


.trip-button {

    min-height: 68px;

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 10px 14px;

    background: #fffdf9;

    border: 1px solid var(--border);

    border-radius: 13px;

    color: var(--blue);

    cursor: pointer;

    text-align: left;

    transition: all 0.2s ease;
}


.trip-button:hover {

    border-color: var(--gold);
}


.trip-button.active {

    background: #fffaf0;

    border-color: var(--gold);

    box-shadow:
        inset 0 0 0 1px var(--gold);
}


/* TRIP ICON */

.trip-icon {

    width: 37px;

    height: 37px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: var(--gold-light);

    color: var(--blue);

    font-size: 18px;

    font-weight: 700;
}


/* TRIP TEXT */

.trip-content strong {

    display: block;

    color: var(--blue);

    font-size: 13px;

    font-weight: 700;
}


.trip-content small {

    display: block;

    margin-top: 3px;

    color: var(--text);

    font-size: 9px;
}


/* =========================================================
   LOCATIONS
========================================================= */

.locations {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 13px;
}


/* =========================================================
   SELECT BOX
========================================================= */

.select-box {

    width: 100%;

    height: 46px;

    position: relative;

    display: flex;

    align-items: center;
}


.select-box select {

    width: 100%;

    height: 100%;

    appearance: none;

    border: 1px solid var(--border);

    border-radius: 11px;

    outline: none;

    background: var(--white);

    color: var(--text);

    padding: 0 40px 0 39px;

    font-family: inherit;

    font-size: 12px;

    cursor: pointer;

    transition: all 0.2s ease;
}


.select-box select:focus {

    border-color: var(--blue);

    box-shadow:
        0 0 0 3px rgba(8, 43, 75, 0.07);
}


/* LOCATION ICON */

.location-icon {

    position: absolute;

    left: 14px;

    color: var(--blue);

    font-size: 10px;

    z-index: 2;

    pointer-events: none;
}


/* ARROW */

.arrow {

    position: absolute;

    right: 14px;

    color: var(--blue);

    font-size: 14px;

    pointer-events: none;
}


/* =========================================================
   HOTEL NAME
   ADDED FOR HOTEL OPTION
========================================================= */

.hotel-field {

    width: 100%;

    margin-top: 0;

    margin-bottom: 21px;
}


/* Hotel Name Input */

.hotel-field input {

    width: 100%;

    height: 46px;

    border: 1px solid var(--border);

    border-radius: 11px;

    outline: none;

    background: var(--white);

    color: var(--text);

    padding: 0 14px;

    font-family: inherit;

    font-size: 12px;

    transition: all 0.2s ease;
}


.hotel-field input::placeholder {

    color: var(--text);

    opacity: 0.85;
}


.hotel-field input:focus {

    border-color: var(--blue);

    box-shadow:
        0 0 0 3px rgba(8, 43, 75, 0.07);
}


/* =========================================================
   TRAVEL DATE
   UPDATED ONLY THIS SECTION
========================================================= */

.date-box {

    width: 100%;

    height: 46px;

    position: relative;

    display: flex;

    align-items: center;

    border: 1px solid var(--border);

    border-radius: 11px;

    background: var(--white);

    cursor: pointer;

    transition: all 0.2s ease;

    overflow: hidden;
}


/* HOVER */

.date-box:hover {

    border-color: var(--gold);
}


/* FOCUS */

.date-box:focus-within {

    border-color: var(--blue);

    box-shadow:
        0 0 0 3px rgba(8, 43, 75, 0.07);
}


/* CALENDAR ICON */

.calendar-icon {

    width: 46px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: var(--blue);

    font-size: 18px;

    flex-shrink: 0;

    pointer-events: none;

    z-index: 2;
}


/* DATE DISPLAY */

.date-display {

    color: var(--text);

    font-size: 12px;

    font-weight: 500;

    pointer-events: none;

    z-index: 2;
}


/* SELECTED DATE */

.date-display.selected {

    color: var(--blue);

    font-weight: 700;
}


/* REAL DATE INPUT */

.date-box input {

    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    opacity: 0;

    cursor: pointer;

    border: none;

    outline: none;

    z-index: 3;
}


/* =========================================================
   BOTTOM ROW
========================================================= */

.bottom-row {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 16px;
}


/* =========================================================
   PASSENGERS
========================================================= */

.passenger-box {

    width: 100%;

    height: 75px;

    padding: 10px 10px 10px 14px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    border: 1px solid var(--border);

    border-radius: 12px;

    background: var(--white);
}


.passenger-info {

    display: flex;

    align-items: center;

    gap: 9px;
}


.people-icon {

    color: var(--blue);

    font-size: 20px;
}


#passengerLabel {

    color: var(--text);

    font-size: 11px;

    font-weight: 500;
}


/* =========================================================
   COUNTER
========================================================= */

.counter {

    display: flex;

    align-items: center;

    gap: 7px;
}


.counter button {

    width: 32px;

    height: 32px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 1px solid var(--border);

    border-radius: 9px;

    background: #fffdf8;

    color: var(--blue);

    font-size: 19px;

    cursor: pointer;

    transition: all 0.2s ease;
}


.counter button:hover {

    background: var(--gold-light);

    border-color: var(--gold);
}


.counter span {

    width: 15px;

    text-align: center;

    color: var(--blue);

    font-size: 12px;

    font-weight: 700;
}


/* =========================================================
   CAR
========================================================= */

.car-buttons {

    width: 100%;

    height: 75px;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10px;
}


.car-button {

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 5px;

    border: 1px solid var(--border);

    border-radius: 12px;

    background: var(--white);

    color: var(--blue);

    cursor: pointer;

    transition: all 0.2s ease;
}


.car-button:hover {

    border-color: var(--gold);
}


.car-button.active {

    background: #fffaf0;

    border-color: var(--gold);

    box-shadow:
        inset 0 0 0 1px var(--gold);
}


.car-icon {

    font-size: 19px;

    line-height: 1;
}


.car-button strong {

    font-size: 12px;

    font-weight: 700;
}


/* =========================================================
   SUMMARY
========================================================= */

.summary {

    margin-top: 4px;

    padding: 15px;

    border-radius: 15px;

    background: var(--gold-background);
}


/* SUMMARY TITLE */

.summary-heading {

    display: flex;

    align-items: center;

    gap: 7px;

    margin-bottom: 11px;

    color: var(--blue);

    font-size: 12px;
}


.summary-heading span {

    font-size: 13px;

    font-weight: 800;
}


.summary-heading strong {

    font-weight: 700;
}


/* =========================================================
   SUMMARY GRID
========================================================= */

.summary-grid {

    display: grid;

    grid-template-columns:
        1fr 1fr 1fr;

    gap: 7px;
}


.summary-item {

    min-height: 47px;

    padding: 8px 9px;

    border-radius: 10px;

    background: rgba(255, 255, 255, 0.57);
}


.summary-item span {

    display: block;

    color: #65798b;

    font-size: 8px;
}


.summary-item strong {

    display: block;

    margin-top: 4px;

    color: var(--blue);

    font-size: 10px;

    font-weight: 700;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


/* =========================================================
   SUBMIT BUTTON
========================================================= */

.submit-button {

    width: 100%;

    height: 50px;

    margin-top: 20px;

    border: none;

    border-radius: 25px;

    background: var(--blue);

    color: var(--white);

    font-family: inherit;

    font-size: 18px;

    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 8px 17px rgba(8, 43, 75, 0.18);

    transition: all 0.2s ease;
}


.submit-button:hover {

    background: var(--blue-hover);

    transform: translateY(-1px);
}


.submit-button:active {

    transform: translateY(0);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 700px) {

    .header {

        padding: 14px 20px;
    }


    .logo {

        width: 68px;

        height: 68px;
    }


    .brand-text h2 {

        font-size: 18px;
    }


    .booking-area {

        padding:
            15px 12px 40px;
    }


    .booking-card {

        padding: 28px 20px;

        border-radius: 20px;
    }


    .title-section h1 {

        font-size: 24px;
    }


    /* MOBILE FIELD LABELS */

    .field-label {

        font-size: 15px;

        font-weight: 700;

        margin-bottom: 10px;
    }


    .locations,
    .bottom-row {

        grid-template-columns: 1fr;
    }

}


@media (max-width: 450px) {

    .trip-buttons {

        grid-template-columns: 1fr;
    }


    .summary-grid {

        grid-template-columns: 1fr 1fr;
    }


    .summary-item:last-child {

        grid-column: span 2;
    }


    .title-section h1 {

        font-size: 22px;
    }


    .field-label {

        font-size: 15px;
    }

}


@media (max-width: 700px) {

    /* ================================
       HEADER - MOBILE
    ================================= */

    .header {
        padding: 16px 20px;
    }

    .brand {
        gap: 16px;
    }

    .logo {
        width: 75px;
        height: 75px;
    }

    .brand-text h2 {
        font-size: 22px;
        font-weight: 800;
    }

    .brand-text p {
        margin-top: 6px;
        font-size: 15px;
        font-weight: 600;
    }


    /* ================================
       FIELD LABELS - MOBILE
    ================================= */

    .field-label {
        font-size: 17px;
        font-weight: 700;
        margin-bottom: 10px;
    }


    /* ================================
       RESPONSIVE LAYOUT
    ================================= */

    .locations,
    .bottom-row {
        grid-template-columns: 1fr;
    }

}
