﻿@font-face {
    font-family: 'SimplerPro';
    src: url('./assets/font/SimplerPro_HLAR-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SimplerPro';
    src: url('./assets/font/SimplerPro_HLAR-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SimplerPro';
    src: url('./assets/font/SimplerPro_HLAR-Semibold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SimplerPro';
    src: url('./assets/font/SimplerPro_HLAR-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SimplerPro';
    src: url('./assets/font/SimplerPro_HLAR-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* COLBO — Bold (700) */
@font-face {
    font-family: 'COLBO';
    src: url('./assets/font/COLBO-BoldExtended.woff2') format('woff2');
    font-weight: 700;
    font-stretch: expanded;
    font-style: normal;
    font-display: swap;
}

/* COLBO — UltraBlack (950) */
@font-face {
    font-family: 'COLBO';
    src: url('./assets/font/COLBO-UltraBlackExtended.woff2') format('woff2');
    font-weight: 950;
    font-stretch: expanded;
    font-style: normal;
    font-display: swap;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

:root {
    --main-color: #003366;
    --secondary-color: #6bc4a6;
}

.blue {
    color: var(--main-color);
}

.green {
    color: var(--secondary-color);
}

body {
    font-family: 'SimplerPro', sans-serif;
    font-weight: 400;
    color: white;
    line-height: 1;
}

h1,
.thanks-text {
    font-family: 'COLBO';
    font-size: clamp(2rem, 10vw, 5.5rem);
    font-weight: 950;
    filter: drop-shadow(0px 14px 6.5px rgba(35, 31, 32, 0.35));
    text-align: right;
    line-height: 0.8;
}

h2 {
    font-family: 'COLBO';
    font-size: clamp(1.6rem, 7vw, 2.4rem);
    font-weight: 700;
    text-align: right;
}

h3 {
    font-family: 'COLBO', sans-serif;
    font-size: clamp(1.3rem, 4vw, 3rem);
    font-weight: 700;
    text-align: right;
}

p {
    font-size: 1rem;
    font-weight: 400;
}

.thanks-text {
    font-size: clamp(1.8rem, 7vw, 5rem);
}

main,
.main-thanks {
    width: 100%;
    background-color: var(--secondary-color);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(1rem, 2vw, 2rem);
    gap: 2rem;
}

.main-thanks {
    height: 100svh;
    justify-content: space-between;
    overflow: auto;
}

.inner-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.hero,
.hero-thanks {
    background-image: url('./assets/images/hero.jpg');
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    padding-bottom: 6rem;
    border-bottom-left-radius: 6rem;
    z-index: 3;
}

.hero-thanks {
    background-image: url('./assets/images/hero-thanks-mob.jpg');
    padding-bottom: 22rem;
}

.form-container {
    background-color: var(--main-color);
    display: flex;
    flex-direction: column;
    padding: 1rem;
    padding-top: 9rem;
    margin-top: -8rem;
    z-index: 2;
    border-bottom-left-radius: 6rem;
    gap: 1rem;
}

.form-text {
    display: flex;
    flex-direction: column;
    text-align: center;
}

form {
    display: flex;
    flex-direction: column;
    gap: clamp(0.5rem, 2vw, 1rem);
    width: 100%;
}

.form-column {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.form-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

label {
    font-size: clamp(1rem, 4vw, 1.5rem);
    font-weight: 400;
}

form input {
    padding: 0.5rem;
    background-color: transparent;
    border: 1px solid white;
    border-radius: 8px;
    color: white;
    font-family: 'SimplerPro';
}

/* CHECKBOX STYLES */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid white;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    vertical-align: middle;
}

input[type="checkbox"]:checked {
    background-color: #007bff;
    border-color: #007bff;
}

input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

input[type="checkbox"]:focus-visible {
    outline: 2px solid black;
    outline-offset: 2px;
}

/* END CHECKBOX STYLES */

button {
    padding: 0.3em;
    line-height: 1;
    background-color: white;
    border: none;
    border-radius: 8px;
    color: var(--main-color);
    font-size: clamp(1.4rem, 6vw, 1.8rem);
    font-family: 'COLBO';
    font-weight: 600;
    width: fit-content;
    cursor: pointer;
}

.content {
    background-color: white;
    display: flex;
    flex-direction: column;
    padding: 1.2rem;
    padding-top: 9rem;
    margin-top: -8rem;
    border-bottom-left-radius: 6rem;
    gap: 2rem;
}

/*remove default bullet points*/
ul {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: clamp(0.5rem, 2vw, 1rem);
}

/*custom bullet points*/
li::before {
    content: "•";
    color: var(--main-color);
    font-weight: 900;
    flex-shrink: 0;
    width: 0.8em;
}

li {
    color: var(--main-color);
    font-size: clamp(1rem, 3vw, 2rem);
    font-weight: 400;
    display: flex;
    align-items: baseline;
}

.text-asterisk {
    color: var(--main-color);
    font-size: clamp(1rem, 3vw, 2rem);
    font-weight: 400;
    margin-top: auto;
}

.footer-hero {
    width: clamp(18rem, 29vw, 37rem);
}

.logo {
    width: clamp(5rem, 13vw, 11rem);
    /* margin-top: -3rem; */
    align-self: flex-end;
}

.mdp-readabler-trigger-button-box.bottom-changing {
    bottom: unset !important;
}

.mobile {
    display: flex;
}

.desktop {
    display: none;
}

@media (min-width: 768px) {
    h1 {
        font-size: clamp(1rem, 4vw, 5rem);
    }

    h2 {
        font-size: clamp(1.6rem, 2vw, 2.4rem);
    }

    h3 {
        font-size: clamp(1.8rem, 2.3vw, 2.7rem);
        text-align: right;
    }

    label {
        font-size: clamp(0.8rem, 1vw, 1.5rem);
    }

    li {
        font-size: clamp(1rem, 1.3vw, 1.9rem);
    }

    .text-asterisk {
        font-size: clamp(1rem, 1.3vw, 1.9rem);
    }

    button {
        font-size: clamp(1rem, 1.3vw, 1.5rem);
    }

    main {
        height: 100svh;
        overflow: auto;
    }

    .inner-container {
        flex-direction: row;
        justify-content: center;
        flex: 1;
    }

    .hero,
    .form-container,
    .content {
        margin: unset;
        padding: 2rem;
        border-bottom-left-radius: 8rem;
    }

    .hero,
    .content {
        flex: 2;
    }

    .form-container {
        flex: 1;
    }

    .form-container,
    .content {
        margin-right: -8rem;
        padding-right: 10rem;
    }

    .hero {
        padding: 1rem;
        padding-top: 2rem;
        padding-left: 7rem;
        padding-right: 3rem;
        background-position: 40%;
        animation: heroSlideIn 0.6s ease-out 0.8s both;
    }

    .hero-thanks {
        width: 100%;
        background-image: url('./assets/images/hero-thanks.jpg');
        background-position: top;
        padding-bottom: 11rem;
    }

    .content {
        gap: clamp(1rem, 2vw, 2rem);
    }

    .logo{
        margin-top: -3rem;
    }

    .mobile {
        display: none;
    }

    .desktop {
        display: flex;
    }

    @keyframes heroSlideIn {
        from {
            margin-left: -26vw;
        }

        to {
            margin-left: 0;
        }
    }
}

/* Error styles */
.form-field.error {
    color: #ff6b6b;
}

input.error {
    border-color: #ff6b6b !important;
    background-color: rgba(255, 107, 107, 0.1) !important;
}

input.error::placeholder {
    color: #ff6b6b;
    opacity: 0.8;
}

.error-message {
    color: #ff6b6b;
    font-size: 0.9rem;
    font-weight: 900;
    margin-top: 0.5rem;
    text-align: right;
    width: 100%;
}

.license-error-message {
    color: #ff6b6b;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-weight: 900;
}

/* Animation styles */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-line {
    opacity: 0;
    display: inline-block;
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Autocomplete styles */
.form-column {
    position: relative;
}

.autocomplete-items {
    position: absolute;
    border: 1px solid #d4d4d4;
    border-bottom: none;
    border-top: none;
    z-index: 99;
    top: 100%;
    left: 0;
    right: 0;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    max-height: 200px;
    overflow-y: auto;
}

.autocomplete-items div {
    padding: 10px;
    cursor: pointer;
    background-color: #fff;
    border-bottom: 1px solid #d4d4d4;
    color: var(--main-color);
    text-align: right;
}

.autocomplete-items div:hover {
    background-color: #e9e9e9;
}

.autocomplete-active {
    background-color: DodgerBlue !important;
    color: #ffffff;
}