:root {
    --primary-blue: #0B457F;
    --primary-blue-light: #CDE6FF;
    --bg-grey: #F8F8F8;
    --text-color: #222222;
}

body {
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    color: black;
}

.btn-dark-blue {
    background: #0B457F;
    border-radius: 50px;
    color: white;
    font-size: 1.125rem;
    padding: 14px 24px;

    &:hover {
        background: #002D5B;
    }
}

.btn-white-outline {
    background: transparent;
    border-radius: 50px;
    color: white;
    font-size: 1.125rem;
    padding: 12px 28px;
    border: 2px solid white;

    &:hover {
        background: #fff;
        color: #000;
    }
}

.section-padder {
    padding: 5rem 0;
}

.zoom-on-hover {
    overflow: hidden;
}

.zoom-on-hover img {
    transition: transform 0.5s ease;
}

.zoom-on-hover:hover img {
    transform: scale(1.1);
}

.header-blue {
    color: var(--primary-blue);
    line-height: 130%;
    font-weight: bold;
    font-size: 2.25rem;
    max-width: 450px;
}

.hero-section {
    display: grid;
    place-items: center;
    color: white;
    overflow: hidden;
}

.hero-section picture,
.hero-section img {
    width: 100%;
    height: 100%;
}

.hero-section picture {
    display: grid;
}

.hero-section picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Optional heading styling */
.hero-section h1 {
    line-height: 130%;
}


.buyback-choose {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    /*height: 815px;*/
}

.buyback-choose-content {
    display: flex;
    padding: 48px;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(6px);

    ul {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }
}

.buyback-choose-content h2 {
    color: #FFF;
    font-size: 48px;
    font-style: normal;
    font-weight: 500;
    line-height: 120%;
    font-variant: all-small-caps;
    margin-bottom: 40px;
}

.buyback-choose-content-list {
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    padding-bottom: 22px;

    span {
        font-size: 48px;
    }

    h5 {
        color: rgba(255, 255, 255, 0.80);
        font-size: 20px;
        font-weight: 500;
        line-height: 120%;
        letter-spacing: 0.4px;
        text-transform: capitalize;
        margin-bottom: 12px;
    }

    p {
        color: rgba(255, 255, 255, 0.75);
        font-size: 14px;
        font-weight: 300;
        letter-spacing: 0.28px;
        text-transform: capitalize;
    }

    &:last-child {
        border-bottom: none;
    }
}

.drive-more {
    background: #000;
    padding: 5rem 0 8rem 0;

    h2 {
        font-size: 3rem;
        color: white;
        text-align: center;
        margin-bottom: 4rem;
        line-height: 130%;
        font-weight: bold;
        text-transform: uppercase;
    }
}

.drive-more-grid {
    display: grid;
    height: 60vh;

    /* Desktop / large screens */
    grid-template-columns: 1fr 0.7fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    gap: 0;
}

.drive-more-grid > div {
    background: #bfbfbf;
    border: 10px solid black;
}

.drive-more-grid .top-left {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
    background: #191919;

    .grid-content {
        padding: 2rem;
        color: white;

        h5 {
            text-transform: uppercase;
            font-size: 24px;
            font-weight: 600;
        }

        img {
            width: 64px;
        }
    }
}

.drive-more-grid .right {
    grid-column: 3 / 4;
    grid-row: 1 / 4;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;

    .grid-content {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
        color: white;
        padding: 2rem;

        h4 {
            text-transform: uppercase;
            font-size: 32px;
            font-weight: 600;
        }
    }
}

.drive-more-grid .bottom-left {
    grid-column: 1 / 2;
    grid-row: 2 / 4;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;

    .grid-content {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        height: 100%;
        padding: 2rem;

        h4 {
            text-transform: uppercase;
            font-size: 32px;
            font-weight: 600;
        }
    }
}

.drive-more-grid .center-top {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    background: white;
    width: 346px;

    .grid-content {
        padding: 1rem 2rem;

        h5 {
            text-transform: uppercase;
            font-size: 24px;
            font-weight: 600;
        }
    }
}

.drive-more-grid .center-bottom {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
    background: #191919;
    width: 346px;

    .grid-content {
        padding: 1rem 2rem;

        img {
            width: 32px;
            margin-bottom: 32px;
        }

        p {
            color: white;
        }
    }
}

.futurecar {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    padding-bottom: 200px;
}

.futurecar-content {
    max-width: 550px;
    margin: 0 auto;

    h2 {
        color: #0B457F;
        font-size: 3rem;
        font-style: normal;
        font-weight: 500;
        line-height: 120%;
        font-variant: all-small-caps;
        margin-bottom: 44px;
    }

    ul {
        display: flex;
        flex-direction: column;
        gap: 32px;
        padding-left: 0;
    }
}

.futurecar-content-list {
    display: flex;
    align-items: start;
    gap: 24px;

    img {
        width: 48px;
    }

    h4 {
        color: #1E1E1E;
        leading-trim: both;
        text-edge: cap;
        font-size: 20px;
        font-style: normal;
        font-weight: 500;
    }

    p {
        color: rgba(34, 34, 34, 0.75);
        leading-trim: both;
        text-edge: cap;
        font-size: 16px;
        font-style: normal;
        font-weight: 300;
    }
}

.futurecar-leftimg {
    position: absolute;
    left: -22%;
    bottom: 0;
    transform: translateY(-50%);
}

.futurecar-rightimg {
    position: absolute;
    right: -18%;
    bottom: -30%;
    transform: translateY(-50%);
}

.buyback-faq {
    padding-bottom: 5rem;

    h2 {
        color: #0B457F;
        font-size: 48px;
        font-style: normal;
        font-weight: 500;
        line-height: 120%;
        font-variant: all-small-caps;
        margin-bottom: 40px;
    }
}

.accordion-header,
.accordion-button {
    color: #222;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 30px;
    border-radius: 5px 5px 0 0;
}

/* Default accordion item */
.accordion-item {
    transition: none;
    border: 0;
    border-radius: 2px;
    margin-block: 16px 0 !important;
    box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.05);
}

.accordion-body {
    padding-top: 8px;
    border-radius: 0 0 5px 5px !important;

}


/* Active (open) accordion item */
.accordion-item:has(.accordion-collapse.show) {
    background-color: #0B457F;
}

.accordion-item:has(.accordion-collapse.show) .accordion-button {
    color: white !important;
}

/* Optional: make text readable on blue */
.accordion-item:has(.accordion-collapse.show) .accordion-button,
.accordion-item:has(.accordion-collapse.show) .accordion-body {
    color: rgba(255, 255, 255, 0.75);
}

.accordion-item:has(.accordion-collapse.show) .accordion-button {
    padding-top: 24px;
}

/* Optional: remove default accordion button background */
.accordion-button:not(.collapsed) {
    background-color: transparent;
    box-shadow: none;
}

.accordion-button::after {
    filter: none;
}

.accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

/* Remove default arrow */
.accordion-button::after {
    background-image: none;
    content: '';
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #898B8E;
    border-radius: 4px;
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

/* Rotate caret when accordion is open */
.accordion-button:not(.collapsed)::after {
    transform: rotate(180deg);
}

.accordion-button:focus {
    box-shadow: none;
}

.reserve {
    h2 {
        font-size: 34px;
        font-style: normal;
        font-weight: 700;
        line-height: normal;
        margin-bottom: 32px;
    }

    label {
        font-weight: bold;
        font-size: 18px;
        color: #000;
        margin-bottom: 8px;
    }

    input {
        height: 46px;
        padding: 12px;
        background: #EDF2F6;
        border-radius: 0;
        border-color: transparent;
    }

    .form-control:focus {
        box-shadow: none;
        border-color: #DAE4EB;
        background: #DAE4EB;
    }

    .form-control {
        margin-bottom: 20px;
    }

    .btn-dark-blue {
        margin-top: 10px;
    }

    ::placeholder {
        color: #999;
        opacity: 1; /* ensures consistent color */
        font-weight: 300;
    }

    /* Browser-specific fallbacks */

    ::-webkit-input-placeholder {
        color: #999;
    }

    :-ms-input-placeholder {
        color: #999;
    }

    ::-ms-input-placeholder {
        color: #999;
    }

    input,
    select.form-select {
        height: 46px;
        padding: 12px;
        background: #EDF2F6;
        border-radius: 0;
        border: 1px solid transparent;
        margin-bottom: 20px;
        color: #333;

        /* remove native styling */
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
    }

    /* Focus state */

    input:focus,
    select.form-select:focus {
        box-shadow: none;
        border-color: #DAE4EB;
        background: #DAE4EB;
        outline: none;
    }

    /* Placeholder style (inputs only, select doesn’t support placeholder) */

    ::placeholder {
        color: #999;
        opacity: 1;
        font-weight: 300;
    }

    /* Optional: custom dropdown arrow */

    select.form-select {
        background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23999' stroke-width='2'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 12px center;
        background-size: 12px;
        padding-right: 36px; /* space for arrow */
    }

}

.reserve-image {
    position: absolute;
    right: 0;
    margin-top: 60px;
}

.testdrive-quote {
    background: #000;
    padding: 2.5rem 0;

    h4 {
        font-size: 20px;
        color: white;
    }

    li {
        color: rgba(255, 255, 255, 0.85);
        border-left: 1px solid rgba(255, 255, 255, 0.20);
    }

    .btn-dark-blue {
        img {
            filter: invert(1);

        }
    }

    .btn-dark-blue {
        background: #265EF6;
        padding: 12px 28px;

        &:hover {
            background: #2359EA;
            color: white;
        }
    }
}

.testdrive-quote-dots {
    height: 8px;
    width: 8px;
    background: #1C3F9E;
    border-radius: 50%;
    display: inline-block;
    margin: 0 12px;
}

@media (max-width: 1536px) {
    .futurecar-leftimg {
        left: -26%;
    }

    .futurecar-rightimg {
        right: -24%;
    }

}

@media (max-width: 1280px) {
    .drive-more-grid {
        height: 70vh;
    }

    .futurecar-leftimg {
        left: -40%;
    }

    .futurecar-rightimg {
        right: -35%;
    }
}

@media (max-width: 1024px) {
    .drive-more-grid {
        height: auto; /* allow height to grow */

        /* stack everything in one column */
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5, auto);
        gap: 10px; /* add some spacing vertically */
    }

    /* All items take full width, stacked vertically */
    .drive-more-grid .top-left,
    .drive-more-grid .right,
    .drive-more-grid .bottom-left,
    .drive-more-grid .center-top,
    .drive-more-grid .center-bottom {
        grid-column: 1 / 2 !important;
        grid-row: auto !important;
    }

    .drive-more-grid > div {
        border-width: 5px; /* thinner borders on small screens */
    }

    .drive-more-grid .right .grid-content {
        padding: 6rem 2rem;
    }

    .drive-more-grid .bottom-left .grid-content {
        padding: 6rem 2rem;
    }

    .drive-more-grid .center-top,
    .drive-more-grid .center-bottom {
        width: 100%;
    }
}

@media (max-width: 1024px) {
    .buyback-choose {
        background-position: right;
    }

    .buyback-choose-content h2 {
        font-size: 2.5rem;
    }

    .futurecar-leftimg {
        left: -45%;
        bottom: -25%;
    }

    .futurecar-rightimg {
        transform: scaleX(-1);
        right: -40%;
        bottom: 0%;
    }

    .reserve {
        overflow-x: hidden;
        position: relative;
    }

    .reserve-image {
        right: -20%;
    }

    .testdrive-quote > .container > .row > .col-xl-4 {
        justify-content: flex-start !important;
        margin-top: 1.5rem;
    }
}

@media (max-width: 991px) {
    .drive-more h2 {
        font-size: 2.5rem;
    }

    .futurecar-leftimg {
        display: none;
    }

    .futurecar-rightimg {
        bottom: -3%;
    }

    .futurecar-rightimg img {
        width: 80%;
    }

    .reserve-image {
        display: none;
    }
}

@media (max-width: 767px) {
    .testdrive-quote-content {
        flex-direction: column;
        /*ul{*/
        /*    flex-direction: column;*/
        /*}*/

        ul {
            padding-left: 0;
        }

        ul li {
            border-left: none;
            padding-left: 0 !important;
        }
    }

}

@media (max-width: 575px) {
    .reserve {
        padding-top: 0;
    }

    .buyback-choose-content {
        padding: 24px;
    }

    .buyback-choose-content-list {
        span {
            font-size: 36px;
        }
    }

    .drive-more h2 {
        font-size: 2rem;
    }

    .drive-more-grid .grid-content h4 {
        font-size: 24px !important;
    }

    .futurecar-content h2 {
        font-size: 2rem;
    }

    .futurecar {
        padding-left: 1em;
        padding-right: 1em;
    }

    .buyback-faq {
        padding-top: 2rem;
    }

    .buyback-faq h2 {
        font-size: 2.5rem;
    }

    .reserve h2 {
        font-size: 1.5rem;
    }

    .drive-more-grid .top-left .grid-content {
        padding: 0;
    }

    .futurecar-rightimg img {
        width: 100%;
    }

    .accordion-header, .accordion-button {
        font-size: 16px;
        line-height: 24px;
    }

    .reserve label {
        font-size: 15px;
    }

    .testdrive-quote-content {
        align-items: flex-start !important;
    }

    .testdrive-quote-list {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.5rem !important;
    }

    .testdrive-quote-cta {
        flex-direction: column;
        gap: 0.7rem !important;
        width: 100%;

        a {
            width: 100%;
        }

        .btn-dark-blue {
            justify-content: space-between;
        }
    }

    .futurecar-content-list h4 {
        font-size: 18px;
    }

    .drive-more-grid .top-left .grid-content h5 {
        font-size: 18px;
    }

    .drive-more-grid .top-left .grid-content img {
        width: 60px;
        padding-right: 16px;
    }

    .drive-more-grid .top-left .grid-content .d-flex > div {
        padding: 16px;
    }

    .drive-more {
        padding-bottom: 5em;
    }
}
