/* =====================================================
   RESET
===================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: #f5f7fb;
    color: #172033;

    overflow-x: hidden;
}

button,
input,
select {
    font-family: inherit;
}


/* =====================================================
   NAVBAR
===================================================== */

.navbar {
    width: 100%;

    min-height: 78px;

    padding: 0 7%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: #10182b;

    color: #ffffff;

    position: relative;
    z-index: 1000;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.15);
}


/* =====================================================
   LOGO
===================================================== */

.logo {
    color: #ffffff;

    font-size: 23px;
    font-weight: 800;

    white-space: nowrap;
}


/* =====================================================
   NAV ACTIONS
===================================================== */

.nav-actions {
    display: flex;

    align-items: center;

    gap: 20px;
}


/* =====================================================
   BOOK TAXI NAV
===================================================== */

.book-taxi-nav {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 11px 20px;

    border-radius: 10px;

    background: #2563eb;

    color: #ffffff;

    text-decoration: none;

    font-size: 14px;
    font-weight: 700;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.book-taxi-nav:hover {
    background: #1d4ed8;

    transform: translateY(-2px);
}


/* =====================================================
   DASHBOARD LINK
===================================================== */

.dashboard-link {
    color: #ffffff;

    text-decoration: none;

    font-size: 15px;
    font-weight: 600;

    transition:
        color 0.2s ease;
}

.dashboard-link:hover {
    color: #93c5fd;
}


/* =====================================================
   TAXI HERO
===================================================== */

.taxi-hero {
    min-height: 480px;

    position: relative;

    display: flex;

    align-items: center;
    justify-content: center;

    text-align: center;

    color: #ffffff;

    background:
        url("images/taxi.jpg")
        center center / cover no-repeat;
}


.taxi-hero-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            rgba(4, 15, 32, 0.40),
            rgba(4, 15, 32, 0.72)
        );
}


.taxi-hero-content {
    position: relative;

    z-index: 2;

    width: 100%;

    max-width: 850px;

    padding: 60px 25px;
}


.taxi-hero-tag {
    display: inline-block;

    padding: 9px 18px;

    margin-bottom: 22px;

    border-radius: 50px;

    background:
        rgba(255, 255, 255, 0.14);

    border:
        1px solid rgba(255, 255, 255, 0.25);

    backdrop-filter: blur(8px);

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 2px;
}


.taxi-hero-content h1 {
    margin-bottom: 18px;

    font-size: clamp(48px, 6vw, 72px);

    font-weight: 900;

    line-height: 1.05;

    text-shadow:
        0 5px 18px rgba(0, 0, 0, 0.35);
}


.taxi-hero-content p {
    max-width: 650px;

    margin: auto;

    color: #ffffff;

    font-size: 20px;

    line-height: 1.7;

    text-shadow:
        0 3px 10px rgba(0, 0, 0, 0.35);
}


/* =====================================================
   MAIN PAGE
===================================================== */

.taxi-page {
    width: 92%;

    max-width: 1250px;

    margin: 0 auto;
}


/* =====================================================
   BOOKING SECTION
===================================================== */

.booking-section {
    margin-top: -65px;

    position: relative;

    z-index: 10;

    padding: 45px;

    background: #ffffff;

    border-radius: 24px;

    box-shadow:
        0 20px 55px rgba(15, 23, 42, 0.15);
}


/* =====================================================
   SECTION HEADING
===================================================== */

.section-heading {
    text-align: center;

    margin-bottom: 35px;
}


.section-heading span {
    display: inline-block;

    margin-bottom: 12px;

    color: #2563eb;

    font-size: 13px;

    font-weight: 800;

    letter-spacing: 2.5px;
}


.section-heading h2 {
    margin-bottom: 12px;

    color: #172033;

    font-size: 38px;

    font-weight: 850;
}


.section-heading p {
    color: #6b7280;

    font-size: 16px;

    line-height: 1.6;
}


/* =====================================================
   BOOKING FORM
===================================================== */

.booking-form {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 22px;
}


/* =====================================================
   FORM GROUP
===================================================== */

.form-group {
    display: flex;

    flex-direction: column;

    gap: 9px;
}


.form-group label,
.trip-type-group > label {
    color: #26364e;

    font-size: 14px;

    font-weight: 750;
}


.form-group input,
.form-group select {
    width: 100%;

    height: 52px;

    padding: 0 16px;

    border:
        1px solid #d9e0ea;

    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);
}


/* =====================================================
   TRIP TYPE
===================================================== */

.trip-type-group {
    grid-column: 1 / -1;

    display: flex;

    flex-direction: column;

    gap: 12px;
}


.trip-type-options {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 12px;
}


.trip-option {
    min-height: 55px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    padding: 10px 15px;

    border:
        1px solid #d9e0ea;

    border-radius: 10px;

    background: #ffffff;

    color: #26364e;

    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: #f7faff;

    transform: translateY(-1px);
}


.trip-option input {
    accent-color: #2563eb;
}


/* =====================================================
   SEARCH ACTION
===================================================== */

.search-action {
    grid-column: 1 / -1;

    display: flex;

    justify-content: center;

    margin-top: 5px;
}


.search-action button {
    min-width: 230px;

    height: 54px;

    padding: 0 28px;

    border: none;

    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #1d4ed8
        );

    color: #ffffff;

    font-size: 16px;

    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 8px 22px rgba(37, 99, 235, 0.25);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.search-action button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 28px rgba(37, 99, 235, 0.30);
}


/* =====================================================
   AVAILABLE TAXIS
===================================================== */

.available-section {
    padding: 90px 0 75px;
}


.taxis-container {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 24px;
}


/* =====================================================
   TAXI CARD
===================================================== */

.taxi-card {
    background: #ffffff;

    border:
        1px solid #e5e7eb;

    border-radius: 20px;

    overflow: hidden;

    box-shadow:
        0 8px 28px rgba(15, 23, 42, 0.08);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.taxi-card:hover {
    transform: translateY(-7px);

    box-shadow:
        0 18px 40px rgba(15, 23, 42, 0.14);
}


/* =====================================================
   TAXI IMAGE
===================================================== */

.taxi-image {
    width: 100%;

    height: 220px;

    object-fit: cover;

    display: block;
}


.no-image {
    width: 100%;

    height: 220px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #e8edf5;

    color: #6b7280;

    font-size: 58px;
}


/* =====================================================
   TAXI CONTENT
===================================================== */

.taxi-content {
    padding: 22px;
}


.taxi-name {
    margin-bottom: 8px;

    color: #172033;

    font-size: 22px;

    font-weight: 800;
}


.destination {
    margin-bottom: 12px;

    color: #4b5563;

    font-size: 15px;

    line-height: 1.5;
}


.price {
    margin-bottom: 13px;

    color: #2563eb;

    font-size: 22px;

    font-weight: 850;
}


.description {
    margin-bottom: 16px;

    color: #6b7280;

    font-size: 14px;

    line-height: 1.6;
}


/* =====================================================
   FEATURES
===================================================== */

.features {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;
}


.feature {
    padding: 6px 10px;

    border-radius: 7px;

    background: #f1f5f9;

    color: #475569;

    font-size: 12px;

    font-weight: 600;
}


/* =====================================================
   BOOK BUTTON
===================================================== */

.book-btn,
.view-btn {
    width: 100%;

    min-height: 46px;

    margin-top: 18px;

    padding: 11px 15px;

    border: none;

    border-radius: 9px;

    background: #2563eb;

    color: #ffffff;

    font-size: 14px;

    font-weight: 800;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.book-btn:hover,
.view-btn:hover {
    background: #1d4ed8;

    transform: translateY(-2px);
}


/* =====================================================
   LOADING / EMPTY / ERROR
===================================================== */

.loading,
.empty-state,
.error-state {
    grid-column: 1 / -1;

    min-height: 180px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 40px;

    border-radius: 18px;

    background: #ffffff;

    border:
        1px solid #e5e7eb;

    color: #6b7280;

    text-align: center;

    font-size: 16px;
}


/* =====================================================
   WHY TAXI
===================================================== */

.why-taxi {
    padding: 20px 0 90px;
}


.why-taxi-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 18px;
}


.why-taxi-card {
    min-height: 220px;

    padding: 28px 22px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    background: #ffffff;

    border:
        1px solid #e5e7eb;

    border-radius: 18px;

    box-shadow:
        0 7px 25px rgba(15, 23, 42, 0.06);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.why-taxi-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 15px 32px rgba(15, 23, 42, 0.10);
}


.why-icon {
    width: 62px;
    height: 62px;

    margin-bottom: 18px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #eff6ff;

    font-size: 30px;
}


.why-taxi-card h3 {
    margin-bottom: 9px;

    color: #172033;

    font-size: 18px;
}


.why-taxi-card p {
    color: #6b7280;

    font-size: 14px;

    line-height: 1.6;
}


/* =====================================================
   FOOTER
===================================================== */

.footer {
    width: 100%;

    padding: 28px 20px;

    background: #10182b;

    color: #cbd5e1;

    text-align: center;

    font-size: 14px;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1000px) {

    .taxis-container {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .why-taxi-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .navbar {
        padding: 0 4%;
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 700px) {

    .navbar {
        min-height: 70px;

        padding: 12px 5%;

        gap: 12px;
    }


    .logo {
        font-size: 18px;
    }


    .nav-actions {
        gap: 8px;
    }


    .book-taxi-nav {
        padding: 9px 11px;

        font-size: 11px;
    }


    .dashboard-link {
        font-size: 12px;
    }


    .taxi-hero {
        min-height: 390px;
    }


    .taxi-hero-content {
        padding: 45px 18px;
    }


    .taxi-hero-content h1 {
        font-size: 45px;
    }


    .taxi-hero-content p {
        font-size: 16px;
    }


    .booking-section {
        margin-top: -45px;

        padding: 28px 20px;

        border-radius: 18px;
    }


    .section-heading h2 {
        font-size: 30px;
    }


    .booking-form {
        grid-template-columns: 1fr;

        gap: 18px;
    }


    .trip-type-group,
    .search-action {
        grid-column: auto;
    }


    .trip-type-options {
        grid-template-columns: 1fr;
    }


    .trip-option {
        justify-content: flex-start;

        padding-left: 18px;
    }


    .search-action button {
        width: 100%;
    }


    .available-section {
        padding: 65px 0 55px;
    }


    .taxis-container {
        grid-template-columns: 1fr;
    }


    .why-taxi {
        padding-bottom: 60px;
    }


    .why-taxi-grid {
        grid-template-columns: 1fr;
    }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 430px) {

    .nav-actions {
        gap: 6px;
    }


    .book-taxi-nav {
        display: none;
    }


    .dashboard-link {
        font-size: 12px;
    }


    .taxi-hero-content h1 {
        font-size: 39px;
    }


    .taxi-hero-content p {
        font-size: 15px;
    }


    .booking-section {
        padding: 25px 16px;
    }


    .section-heading h2 {
        font-size: 27px;
    }


    .taxi-content {
        padding: 19px;
    }

}