.form-section {
    --form-brand-blue: #0095FF;
    --form-brand-black: #001D32;
    --form-grey-300: #D3DCE6;
    --form-grey-500: #C0CCDA;
    --form-text: #1F2D3D;
    --form-white: #FFFFFF;

    --form-radius-lg: 20px;
    --form-radius-md: 12px;

    --form-wrap-max: 1600px;
    --form-section-max: 655px;

    background: url(/iv-pages/ru/videonablyudenie-dlya-prodazhi-sim-kart/form/img/background.png) center / 100% 100% no-repeat;
    aspect-ratio: 1920 / 1080;
    width: 100%;
}

.form-wrap {
    max-width: var(--form-wrap-max);
    width: min(92vw, var(--form-wrap-max));
    margin: clamp(40px, 7vw, 80px) auto;
    display: grid;
    grid-template-areas:
        "title"
        "img"
        "form";
    grid-template-columns: 1fr;
    row-gap: clamp(24px, 3vw, 32px);
    align-items: start;
    justify-items: center;
}

@media (min-width: 1200px) {
    .form-wrap {
        grid-template-areas:
            "title title"
            ".     form";
        grid-template-columns: 1fr minmax(0, var(--form-section-max));
        column-gap: clamp(24px, 4vw, 48px);
        justify-items: stretch;
    }
}

.form-title {
    grid-area: title;
    margin: 0;
    color: var(--form-brand-black);
    text-align: center;
    font-family: "Golos Text", Roboto, Arial, Helvetica, sans-serif;
    font-weight: 800;
    line-height: 1.06;
    font-size: clamp(26px, 4.5vw, 64px);
    justify-self: center;
}

.form-form {
    grid-area: form;
    width: 100%;
    margin-top: clamp(9%, 13%, 13%);
    max-width: var(--form-section-max);
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 2.2vw, 32px);
    padding: 0;
    justify-self: end;
}

@media (max-width: 480px) {
    .form-section {
        background: var(--form-white);
        border-radius: var(--form-radius-lg);
        padding: 24px 16px;
        gap: 24px;
        justify-self: center;
    }
}

.form-input {
    display: flex;
    flex-direction: column;
    gap: clamp(6px, 1vw, 8px);
}

.form-input__label {
    color: var(--form-text);
    font-family: "Golos Text", Roboto, Arial, Helvetica, sans-serif;
    font-weight: 400;
    line-height: 32px;
    font-size: clamp(16px, 1.3vw, 24px);
}

.form-input__field {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid var(--form-grey-300);
}

.form-input__control {
    flex: 1 1 auto;
    border: none;
    outline: none;
    background: transparent;
    height: 32px;
    font-family: "Golos Text", Roboto, Arial, Helvetica, sans-serif;
    font-size: clamp(14px, 1.1vw, 18px);
    line-height: 32px;
    color: var(--form-text);
}

.form-input__control::placeholder {
    color: var(--form-grey-500);
}

.form-flag {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
    display: inline-block;
}

.form-phone-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    cursor: pointer;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
}
.form-phone-item:hover {
    background: #f2f7ff;
}


.form-phone {
    position: relative;
    gap: 12px;
}

.form-phone-prefix {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 8px;
    height: 32px;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    font-family: 'Golos Text', system-ui, Arial, sans-serif;
    font-size: clamp(14px, 1.1vw, 18px);
    color: var(--form-brand-black);
    border-radius: 8px;
}

.form-phone-prefix:focus {
    border-color: var(--form-grey-300);
}

.form-phone[data-open="true"] .form-phone-prefix {
    border-color: var(--form-grey-300);
}

.form-phone-menu {
    position: absolute;
    inset: auto auto 0 0;
    transform: translateY(calc(100% + 8px));
    min-width: 160px;
    max-height: 220px;
    overflow: auto;
    background: var(--form-white);
    border: 1px solid var(--form-grey-300);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    padding: 6px;
    display: none;
    z-index: 10;
}

.form-phone[data-open="true"] .form-phone-menu {
    display: block;
}

.form-phone-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 10px;
    border-radius: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: "Golos Text", Roboto, Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: var(--form-brand-black);
}

.form-phone-item:hover {
    background: #F2F7FF;
}

.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.form-consent__checkbox {
    width: 16px;
    height: 16px;
    margin-top: 4px;
    accent-color: #008CEF;
}

.form-consent__text {
    flex: 1 1 auto;
    color: var(--form-text);
    font-family: "Golos Text", Roboto, Arial, Helvetica, sans-serif;
    font-weight: 400;
    font-size: clamp(12px, 1vw, 17px);
    line-height: clamp(18px, 2.8vw, 24px);
}

.form-link {
    color: var(--form-brand-blue);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.0);
}

.form-link:hover {
    text-decoration: underline;
}

.form-submit {
    box-sizing: border-box;
    width: fit-content;
    padding: 12px 30px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: radial-gradient(100% 97.7% at 0.22% 50%, #13CE66 0%, #008CEF 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: var(--form-white);
    text-transform: uppercase;
    font-family: "Golos Text", Roboto, Arial, Helvetica, sans-serif;
    font-weight: 700;
    font-size: 17px;
    line-height: 32px;
    cursor: pointer;
    transition: transform .06s ease, filter .15s ease;
}

.form-submit:hover {
    filter: brightness(1.05);
}

.form-submit:active {
    transform: translateY(1px);
}

.form-img {
    display: none;
    grid-area: img;
    max-width: 100%;
    height: auto;
    align-self: start;
    justify-self: center;
}

.form-success-send-message-container {
    display: none;
    grid-area: form;
    padding: 0;
    margin-top: 80px;
}

.form-success-send-message-body__icon,
.form-success-send-message-body__icon svg {
    position: relative;
    display: block;
    padding: 0;
    margin: 0 auto;
}

.form-success-send-message-body__title {
    font-size: 28px;
    line-height: 36px;
    position: relative;
    display: block;
    padding: 0;
    margin: 24px 0 0;
    font-weight: 700;
    font-family: Montserrat, DejaVu Sans, Verdana, sans-serif;
    color: #414854;
    text-align: center;
}

.form-success-send-message-body__subtitle {
    position: relative;
    display: block;
    padding: 0;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    text-align: center;
    margin: 24px 0 0;
    color: #414854;
}

.form-success-send-message-body__info {
    margin: 12px 0 0;
    color: #a2a8b2;
    position: relative;
    display: block;
    padding: 0;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    text-align: center;
}

@media (max-width: 900px) {
    .form-success-send-message-container {
        margin-top: 0;
    }

    .form-form {
        margin-top: 0;
    }

    .form-section {
        background: white;
    }

    .form-title {
        text-align: start;
    }

    .form-img {
        display: block;
    }

    .form-submit {
        width: 100%;
        height: 56px;
        font-size: 17px;
        margin-left: 0;
    }
}