/* FB Agol Regular */
@font-face {
    font-family: 'regular';
    src: url('./assets/fonts/fbagol-regularwebfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* FB Agol Bold */
@font-face {
    font-family: 'bold';
    src: url('./assets/fonts/fbagol-boldwebfont.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* Montserrat */
@font-face {
    font-family: 'Montserrat';
    src: url('./assets/fonts/Montserrat-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

.light {
    font-weight: 300;
}

@font-face {
    font-family: 'Montserrat';
    src: url('./assets/fonts/Montserrat-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('./assets/fonts/Montserrat-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

.medium {
    font-weight: 500;
}

@font-face {
    font-family: 'Montserrat';
    src: url('./assets/fonts/Montserrat-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('./assets/fonts/Montserrat-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

.en {
    font-family: 'Montserrat', sans-serif;
}

.blue-color {
    color: var(--blue-color);
}

:root {
    --primary-color: #F5F5F5;
    --secondary-color: #222622;
    --blue-color: #65C9D2;
    --background-color: #212121;
    --form-font-color: #76787A;
    --font-stack: 'regular', sans-serif;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-stack);
    color: var(--primary-color);
}

h1 {

    font-size: clamp(1rem, 4vw, 4rem);
    text-align: center;
    font-weight: bold;
}

h2 {
    font-size: 2rem;
    font-weight: bold;
}

.container {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 320px;
    background-color: var(--background-color);
    gap: 1rem;
}

.top {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.swiper {
    width: 100%;
}

.hero-y,
.hero-v,
.hero-ht {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: calc(100vw / 1.38) !important;
    padding: clamp(0.8rem, 2vw, 3rem);
}

.hero-y {
    background-image: url('./assets/images/bg-y.webp');
}

.hero-v {
    background-image: url('./assets/images/bg-v.webp');
}

.hero-ht {
    background-image: url('./assets/images/bg-ht.webp?r=1');
}

.swiper-button-prev,
.swiper-button-next {
    --swiper-navigation-sides-offset: clamp(22px, 5vw, 87px);
    --swiper-navigation-color: white;
    --swiper-navigation-size: clamp(16px, 4vw, 50px);
}

.inner-hero {
    border: 1px solid var(--blue-color);
    padding: clamp(0.5rem, 2vw, 2rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    gap: clamp(141px, 20vw, 665px);
    height: 100%;
}

.inner-hero-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.aion-hero-logo {
    width: clamp(102px, 21vw, 395px);
}

.hero-text-top {
    font-size: clamp(0.688rem, 2vw, 2.2rem);
    font-weight: 300;
    position: relative;
}

.hero-text-top::before {
    content: "";
    position: absolute;
    top: -1px;
    right: 50%;
    transform: translateX(50%);
    width: 110%;
    height: 0.76px;
    background-color: var(--blue-color);
}

.hero-text-top::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 110%;
    height: 0.76px;
    background-color: var(--blue-color);
}

.hero-text-bottom {
    font-size: clamp(0.625rem, 3vw, 1.688rem);
    font-weight: 400;
}

.strip {
    width: 100%;
    padding: 0.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-color: white;
}

.level-strip {
    width: 100%
}

.form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    background-color: var(--background-color);
    padding: 1rem 0;
}

.aion-logo {
    width: clamp(212px, 18vw, 359px);
}

.form-text {
    font-size: clamp(1rem, 2vw, 1.4rem);
    text-align: center;
}

.form-text a {
    color: inherit;
}

.arrow-down {
    width: clamp(21px, 5vw, 33px);
}

/* TO CHANGE */

.form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2vw;
}

.form ul li {
    font-size: clamp(0.844rem, 1vw, 1rem);
}

.notification-container {
    margin: 0 !important;
}

div[data-form-id] .columnContainer {
    width: 100% !important;
    /* Allows the item to grow and shrink as needed */
    flex: 1 1 auto !important;
}

form p,
form span {
    color: white !important;
}

.ui-menu-item-wrapper {
    color: black;
}

.marketingForm .consent {
    display: flex !important;
    flex-direction: row-reverse !important;
    align-items: flex-start !important;
}

.marketingForm .consent>.columnContainer:not(.narrowContainer) {
    width: auto !important;
}

.marketingForm .consent>.columnContainer.narrowContainer {
    width: auto !important;
    flex: 0 0 auto !important;
}

div[data-editorblocktype="SubmitButton"] {
    padding: unset !important;
}

.submitButtonWrapper {
    margin: unset !important;
}

.onFormSubmittedFeedback {
    width: 100% !important;
    height: unset !important;
    background-color: var(--background-color) !important;
}

.onFormSubmittedFeedbackMessage,
.onFontSubmittedFeedbackButton {
    color: white !important;
    font-family: 'regular' !important;
    display: flex !important;
    flex-direction: column !important;
    padding: unset !important;
}

.onFormSubmittedFeedbackIcon {
    display: none !important;
}

.thanks-text-1 {
    font-size: 9vw;
    font-family: 'bold';
    line-height: 1;
    color: white;
}

.thanks-text-2 {
    font-size: 9vw;
    font-family: 'regular';
    line-height: 1;
    color: #2ECCD4;
}

/*----------------*/

.car-description {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.videos {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    padding: 1rem;
}

.videos video {
    width: 100%;
    aspect-ratio: 1.77;
}

.car-description-content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.car-description-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1rem, 4vw, 4rem);
    width: 100%;
    padding: 1rem;
}

.aion-description-logo {
    width: clamp(263px, 22vw, 625px);
}

.car-condition {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    align-self: center;
}

ul {
    list-style: none;
    padding-right: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(0.5rem, 2vw, 1rem);
}

ul li {
    position: relative;
    padding-right: 1.2rem;
    font-size: clamp(0.844rem, 2vw, 1.625rem);
    color: var(--primary-color);
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: clamp(0.3rem, 1vw, 1rem);
    line-height: 1.5;
}

ul li::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0.5em;

    width: clamp(6px, 1vw, 9px);
    height: clamp(6px, 1vw, 9px);

    background-color: var(--blue-color);
}

.insurance {
    background-color: var(--blue-color);
    padding: 0.3rem;
    font-family: 'bold';
    font-size: clamp(1.188rem, 2.5vw, 2.438rem);
}

.price {
    font-family: 'bold';
    font-size: clamp(1.625rem, 2vw, 2.25rem);
}

.number {
    font-family: 'bold';
    font-size: clamp(2.813rem, 3vw, 3.75rem);
}

.euroncap {
    width: clamp(70px, 8vw, 140px);
    align-self: center;
    margin-bottom: 0.2rem;
}

.description-image-wrapper {
    position: relative;
    line-height: 0;
}

.description-image-wrapper::before {
    content: "";
    position: absolute;
    inset: clamp(0.5rem, 2vw, 2rem);
    border: 1px solid var(--blue-color);
    pointer-events: none;
    z-index: 1;
}

.description-image {
    width: 100%;
    display: block;
}

.description-car-term {
    font-size: clamp(0.5rem, 2vw, 1rem);
    text-align: center;
}

.description-terms {
    font-size: clamp(0.5rem, 2vw, 1rem);
    padding: 0.4rem;
}

.mobile {
    display: flex;
}

.desktop {
    display: none;
}

@media (min-width: 768px) {
    .top {
        flex-direction: row;
        gap: 2rem;
        padding: 2rem;
    }

    .swiper-slide {
        height: 100% !important;
        aspect-ratio: 1.7;
    }

    .car-description .swiper-slide {
        aspect-ratio: unset;
    }

    .form-container {
        grid-area: form-container;
        justify-content: unset;
        overflow-x: hidden;
        width: 26%;
    }

    .thanks-text-1 {
        font-size: 2.4vw;
    }

    .thanks-text-2 {
        font-size: 2.4vw;
    }

    /*----------------*/

    .car-description {
        padding: 3rem;
    }

    .videos {
        flex-direction: row-reverse;
        padding: unset;
    }

    .videos video {
        flex: 1 1 0;
        min-width: 0;
        width: auto;
    }

    .car-description-content {
        flex-direction: row;
        align-items: center;
    }

    .car-description-top {
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
    }

    .aion-description-logo {
        align-self: center
    }

    .description-car-term {
        text-align: unset;
    }

    .strip {
        justify-content: unset;
    }

    .level-strip {
        width: 50%;
    }

    .mobile {
        display: none;
    }

    .desktop {
        display: flex;
    }
}

/* Popover */
.page-popover {
    position: fixed;
    inset: 0;
    border: none;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    z-index: 9999;
}

.page-popover:popover-open {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.65);
}

.page-popover::backdrop {
    background: transparent;
}

.popover-inner {
    position: relative;
    display: inline-flex;
}

.popover-close {
    position: absolute;
    top: -14px;
    right: -14px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 1;
}

.popover-close:hover {
    background: rgba(0, 0, 0, 0.85);
}

.popover-image {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    display: block;
    border-radius: 8px;
}