﻿/* ========== GENERAL ========== */

*, *::before, *::after {
    box-sizing: border-box;
}

.invalid-feedback {
    display: block;
    color: #ff7176;
    margin-top: 4px;
    font-size: 0.875rem;
    font-weight: 800;
    padding-left: 15px;
}


.contact-cta__main-container {
    grid-template-columns: 1fr;
}

.contact-cta_section {
    margin-block: 30px;
}

.contact-cta__main-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding-inline: 16px;
}

.contact-cta_container {
    display: flex;
    flex-direction: column;
    padding-right: 15px;
}

.contact-cta__title-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contact_cta__icon {
    width: 34px;
    height: 34px;
    margin-top: 6px;
    flex-shrink: 0;
}

.contact-cta__title {
    margin: 0;
    font-weight: 600;
    color: #212529;
    font-size: 28px;
    line-height: 34px;
    max-width: 100%;
}

.contact-cta__subtitle {
    margin-top: 40px;
    font-size: 19px;
    line-height: 38.25px;
    color: #212529;
    font-weight: 400;
    max-width: 345px;
    margin-left: 24px;
    font-weight: 400;
}

/* ========== FORM OUTSIDE ========== */
.contact-form__box {
    background-color: #003974;
    color: white;
    padding: 17.25px;
    border-radius: 30px;
    width: 100%;
    max-width: 425px;
    height: auto;
    margin: auto;
    position: relative;
}

.contact-form__logo-container {
    position: absolute;
    top: 0;
    right: 0;
    border-radius: 0 10px 0 10px;
    margin-top: -0.9px;
    margin-right: -0.9px;
}

.contact-form__logo {
    width: 150px;
}

.contact-form__title {
    margin-top: 0px;
    font-weight: 700;
    font-size: 32px;
    margin-bottom: 20px;
}

/* ========== FORM INSIDE ========== */
.contact-form__label {
    font-size: 14px;
    font-weight: 600;
    margin-top: 18px;
    padding-left: 0;
    color: white;
    display: block;
}

.contact-form__input,
.contact-form__select {
    width: 100%;
    border: none;
    background-color: #F4F4F4;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 16px;
    margin-top: 6px;
    color: #212529;
    font-weight: 400;
    box-shadow: inset 0 0 0 1px #d3d3d3;
    transition: box-shadow 0.2s ease-in-out;
}

    .contact-form__input:focus,
    .contact-form__select:focus {
        outline: none;
        box-shadow: 0 0 0 2px #BE1D37;
    }

.contact-form__select {
    appearance: none;
    background-image: url("/assets/media/icons/dropdown-arrow.png");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 25px;
}

.contact-form__submit-btn {
    margin-top: 24px !important;
    background-color: #BE1D37 !important;
    color: white;
    font-size: 28px;
    font-weight: 700;
    padding: 14px;
    border-radius: 12px;
    border: none;
    width: 100%;
    transition: background-color 0.3s ease;
}

    .contact-form__submit-btn:hover {
        background-color: #a7192e !important;
    }

.contact-form__terms {
    font-size: 12px;
    color: lightgray;
    padding-left: 10px;
    padding-top: 10px;
}

    .contact-form__terms a {
        color: lightgray;
        text-decoration: underline;
    }

/* ========== CHECKBOX CUSTOM DESIGN ========== */
input[type="checkbox"] {
    appearance: none;
    width: 10px;
    height: 10px;
    background-color: transparent;
    border: 1.2px solid white;
    cursor: pointer;
    display: inline-block;
    position: relative;
}

    input[type="checkbox"]:checked::before {
        content: "";
        position: absolute;
        width: 10px;
        height: 10px;
        background-color: white;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        border-radius: 2px;
    }

/* ========== INTL TEL INPUT ========== */
.iti {
    display: block !important;
}

.iti--separate-dial-code .iti__selected-dial-code {
    display: none;
}

.iti--separate-dial-code .iti__selected-flag {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.iti__flag {
    border-radius: 2px;
}

.iti__country-name,
.iti__dial-code {
    color: #6C757D !important;
}

/* ========== RESPONSIVE ========== */

/* Tablet */
@media screen and (min-width: 768px) {
    .contact-cta__main-container {
        align-items: baseline;
        padding-inline: 40px;
    }

    .contact-cta__title {
        font-size: 48px;
        line-height: 58px;
    }

    .contact_cta__icon {
        width: 48px;
        height: 48px;
        margin-top: 8px;
    }

    .contact-cta__subtitle {
        font-size: 20px;
        line-height: 32px;
    }
}

/* Desktop */
@media screen and (min-width: 1200px) {



    .contact-cta__main-container {
        grid-template-columns: max-content 1fr 1fr;
        padding-inline: 102px;
        gap: 118px;
    }

    .contact-cta__title {
        font-size: 58px;
        line-height: 68px;
        max-width: 457px;
    }

    .contact_cta__icon {
        width: 56px;
        height: 56px;
        margin-top: 12px;
    }

    .contact-cta__subtitle {
        font-size: 28px;
        line-height: 38.25px;
        max-width: 457px;
        margin-left: 70px;
    }

    .contact-form__box {
        width: 540px;
        max-width: 540px;
        height: auto;
    }

    .contact-form__logo-container {
        margin-top: -1.2px;
        margin-right: -1px;
    }

    .contact-form__logo {
        width: 220px;
    }

    .contact-form__title {
        font-size: 38px;
        font-weight: 700;
        margin-top: 10px;
        margin-bottom: 30px;
    }

    .contact-form__label {
        padding-left: 12px;
        font-size: 18px;
    }

    .contact-form__terms {
        padding-top: 20px;
    }
}
