/* ========================================
   Form Styles
   ======================================== */

.form {
    display: -webkit-box;
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.form__input {
    padding: 20px 24px 12px;
    border-radius: 60px;
    font-weight: 400;
    line-height: 26px;
    border: 1px solid rgb(255, 255, 255, 0.45);
    background: rgb(255, 255, 255, 0.05);
    font-size: 15px;
    width: 100%;
    color: white;
    outline: solid 1px transparent;
}

.form__input:focus {
    outline: 1px solid #fff;
    border: 1px solid #fff;
    background: rgb(255, 255, 255, 0.1);
}

.form__input-body {
    width: 100%;
    max-width: 238px;
    position: relative;
}

.form__input-body label {
    position: absolute;
    top: 50%;
    left: 24px;
    transform: translateY(-50%);
    pointer-events: none;
    color: rgb(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    font-size: 15px;
    line-height: 1;
}

.form__input.error {
    border: 1px solid #ef2b23;
    outline: 1px solid #ef2b23;
}

.form__select-body {
    padding: 6px;
    border-radius: 999px;
    display: -webkit-box;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: rgb(255, 255, 255, 0.2);
}

.form__select-body-numb {
    background: #407af4;
    gap: unset;
    -ms-flex-pack: justify;
    justify-content: space-between;
    border-radius: 60px;
}

.form__select-title {
    font-weight: 400;
    font-size: 16px;
    line-height: 26px;
    margin-bottom: 12px;
    color: #fff;
}

.form__select label {
    padding: 10px 34px;
    min-width: 157px;
    display: block;
    color: rgb(255, 255, 255, 0.75);
    font-weight: 600;
    font-size: 16px;
    line-height: 26px;
    transition: all 0.3s ease;
    border-radius: 999px;
    cursor: pointer;
    text-align: center;
    background: transparent;
}

.form__select-item.form_type + label {
    min-width: calc(50% - 6px);
}

.form__select-item:checked + label {
    background: #fff;
    color: #2554f4;
    box-shadow: 0 12px 30px rgb(16, 38, 116, 0.25);
}

.form__select-item {
    position: absolute;
    visibility: hidden;
}

.form__btn {
    background: #ef2b23;
    color: #fff;
    border: 1px solid #ef2b23;
    padding: 18px 46px;
    -ms-flex-item-align: start;
    align-self: flex-start;
    border-radius: 16px;
    font-weight: 700;
    font-size: 18px;
    line-height: 26px;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.25s ease;
}

.form__btn:hover {
    background: #fff;
    border: 1px solid #ef2b23;
    color: #ef2b23;
    transition: 0.3s linear;
    box-sizing: border-box;
}

.form-inputs {
    width: 100%;
    display: -webkit-box;
    display: flex;
    flex-wrap: wrap;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -ms-flex-align: center;
    align-items: center;
    gap: 20px;
}

.form-inputs .form__input-body:first-child {
    max-width: none;
}

.form__input:focus + label,
label.has-value {
    top: 14px;
    transform: translateY(0);
    font-size: 12px;
    color: rgb(255, 255, 255, 0.7);
}

/* ========================================
   Contact Section Styles
   ======================================== */

.contact {
    margin-bottom: var(--section-spacing-2xl);
    position: relative;
    padding: var(--section-spacing-lg) 0;
}

.contact .btn {
    max-width: fit-content;
}

.contact .section-title {
    color: #fff;
    font-style: normal;
    text-transform: unset;
    font-weight: 700;
    font-size: 50px;
    line-height: 63px;
    letter-spacing: -0.02em;
}

.contact .section-descr {
    color: #fff;
    font-weight: 500;
    font-size: 18px;
    line-height: 30px;
    max-width: 360px;
    margin-top: 0;
}

.contact__privacy {
    color: #152039;
    margin-top: 18px;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 26px;
}

.contact__privacy a {
    text-decoration: underline;
    color: inherit;
    font-size: inherit;
}

.contact__left {
    flex: 1 1 42%;
    border-radius: 0 120px 0 0;
    padding: 0;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    box-shadow: 0 40px 80px rgb(21, 40, 100, 0.08);
    position: relative;
    overflow: visible;
    z-index: 0;
}

.contact__left::before {
    content: "";
    position: absolute;
    inset: 0;
    margin-left: calc(-50vw + 50%);
    background: url("../BGs/2149081077.jpg") right center / cover no-repeat;
    border-radius: 0 120px 0 0;
    z-index: -1;
}

.contact__left-inner {
    width: 80%;
    margin-left: auto;
    padding: 48px clamp(24px, 4vw, var(--section-spacing-lg));
    background: rgb(0, 0, 0, 0.1);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border-radius: 50px 0 0 50px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact__left-inner .section-title,
.contact__left-inner .section-descr {
    color: #fff;
    margin: 0;
}

.contact .container {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: stretch;
    position: relative;
    gap: 60px;
}

.contact .container-header {
    flex-direction: column;
    -ms-flex-align: start;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact__right {
    flex: 1 1 40%;
    background: linear-gradient(145deg, #2f6aff 0%, #1b52f4 100%);
    border-radius: 56px;
    padding: var(--section-spacing-md) var(--section-spacing-md);
    box-shadow: 0 40px 90px rgb(20, 46, 140, 0.25);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: visible;
    z-index: 0;
    --contact-decor-gap: clamp(28px, 5vw, 60px);
    --contact-decor-radius: 100px;
}

.contact__right::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(220px 220px at calc(100% - 40px) -70px, rgb(255, 255, 255, 0.18) 0%, rgb(255, 255, 255, 0.18) 60%, transparent 61%),
        radial-gradient(170px 170px at -30px calc(100% + 50px), rgb(255, 255, 255, 0.12) 0%, rgb(255, 255, 255, 0.12) 65%, transparent 66%);
    z-index: 0;
}

.contact__right::after {
    content: "";
    position: absolute;
    inset: 0 -100vw 0 calc(100% + var(--contact-decor-gap));
    background: #2b6bf3;
    border-radius: 0 var(--contact-decor-radius) var(--contact-decor-radius) var(--contact-decor-radius);
    pointer-events: none;
    z-index: -1;
}

.contact__right img {
    position: absolute;
    left: 476px;
    top: 0;
}

/* ========================================
   Form Responsive Styles
   ======================================== */

@media (width <= 1200px) {
    .contact__right::after {
        content: none;
    }

    .contact {
        margin-bottom: 180px;
        padding: 70px 0;
    }

    .contact .section-title {
        max-width: none;
        width: 100%;
        font-size: 42px;
        line-height: 52px;
    }

    .contact .section-descr {
        max-width: 320px;
        font-size: 17px;
        line-height: 28px;
    }

    .contact__left {
        padding: 70px 60px;
        border-radius: 0 100px 0 0;
        min-height: 0;
    }

    .contact .container {
        gap: 40px;
    }

    .contact .bg-top {
        width: 100%;
        top: -38%;
    }

    .contact .bg-bottom {
        top: 93%;
    }
}

@media (width <= 768px) {
    .contact__left {
        min-height: 420px !important;
        justify-content: center !important;
        padding: 0 !important;
        border-radius: 0 60px 0 0 !important;
    }
    
    .contact__left-inner {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 32px 24px !important;
        gap: 8px;
        border-radius: 0 !important;
    }
    
    .contact__left-inner .section-title {
        font-size: 24px !important;
        line-height: 30px !important;
    }
    
    .contact__left-inner .section-descr {
        font-size: 14px !important;
        line-height: 20px !important;
        max-width: 100% !important;
    }

    .contact {
        margin-bottom: 180px;
        padding: 60px 0;
    }

    .contact .section-title {
        text-align: center;
        margin-bottom: 18px;
        font-size: 36px;
        line-height: 46px;
    }

    .contact .section-descr {
        max-width: 420px;
        margin: 0 auto 8px;
        font-weight: 400;
        font-size: 16px;
        line-height: 26px;
        text-align: center;
    }

    .contact__left {
        max-width: none;
        margin-bottom: var(--component-spacing-lg);
        padding: 54px 36px;
        border-radius: 0 80px 0 0;
        text-align: center;
        align-items: center;
    }

    .contact .container {
        flex-direction: column;
        max-width: 520px;
        gap: 32px;
    }

    .contact__right {
        padding: 54px 36px;
        border-radius: 40px;
    }

    .form__btn {
        margin: 0 auto;
    }

    .form__input-body {
        max-width: 220px;
    }

    .form__select label {
        min-width: 140px;
    }
}

@media (width <= 480px) {
    .form__select {
        flex-direction: column;
        gap: 8px;
    }
    
    .form__select label {
        width: 100%;
        text-align: center;
    }
    
    .form__input {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .contact__left-inner .section-title {
        font-size: 22px;
    }
    
    .contact__right {
        padding: var(--spacing-md);
    }
    
    .form__group {
        margin-bottom: 12px;
    }
    
    .form__label {
        font-size: 14px;
        margin-bottom: 4px;
    }
}
