.mainText {
    font-size: 22px;
    margin: 40px 0 5px 0;
    color: #030303;
}

.secondText {
    font-size: 14px;
    margin: 0;
    color: #030303;
    margin-bottom: 25px;
}

.form-block {
    font-family: 'Muller', Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* width: 60%; */
    margin: auto;
}

.form-block .marafon {
    /*margin: auto;*/
}

.form-block .content {
    /*margin-right: 34vh;*/
    width: 300px;
}

@media (max-width: 1200px) {
    .form-block {
        display: block;
        width: 100%;
        text-align: center;
    }
    .form-block .content {
        margin: 0 auto;
    }
}

footer {
    padding: 60px 10px 20px;
    text-align: center;
    font-family: Verdana, Arial;
    font-size: 12px;
    line-height: 1.8;
}

footer a {
    color: #030303;
}

@media (max-width: 575px) {
    footer a {
        display: block;
    }
    footer span {
        display: none;
    }
}

.t585__opened .t585__lines {
    right: 3px;
    top: 6px;
}

/* ============================================================
   SMS verification: popups, preloader, intlTelInput overrides
   Тема — светлая, акцент #385ec6 (см. form.css)
   ============================================================ */

/* class="form" на <form> не должен наследовать flex-вёрстку обёрточных .form-блоков */
form.form,
form.bc-form {
    display: block;
    width: auto;
}

/* Прелоадер: оверлей. Анимация колечек уже в preloader.css */
#preloader {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}
#preloader[style*="block"] {
    display: flex !important;
}

/* Попапы — модалки в стиле сайта */
.popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.popup_content {
    position: relative;
    background: #ffffff;
    color: #2d2f32;
    border-radius: 10px;
    padding: 36px 32px;
    max-width: 420px;
    width: 90%;
    font-family: 'Manrope', Arial, sans-serif;
    box-sizing: border-box;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}
.popup_content h3 {
    margin: 0 0 12px;
    color: #2d2f32;
    font-family: 'Manrope', Arial, sans-serif;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
}
.popup_content p {
    margin: 0 0 20px;
    color: #393939;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}
.popup_content #currPhone {
    color: #385ec6;
    font-weight: 600;
}
.close_popup {
    position: absolute;
    top: 14px;
    right: 14px;
    cursor: pointer;
    line-height: 0;
}
.close_popup:hover svg rect {
    fill: #385ec6;
}

.popup_content .jhuy {
    display: block;
    margin-bottom: 22px;
}
.popup_content .flex_uh {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.popup_content .t-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #c0c0c0;
    border-radius: 8px;
    background: #ffffff;
    color: #2d2f32;
    font: 14px 'Manrope', Arial, sans-serif;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}
.popup_content .t-input:focus {
    border-color: #385ec6;
}
.popup_content .t-submit {
    width: 100%;
    height: 48px;
    margin-top: 12px;
    background: #385ec6;
    color: #ffffff;
    border: 0;
    border-radius: 8px;
    font: 600 14px 'Manrope', Arial, sans-serif;
    cursor: pointer;
    transition: box-shadow 0.2s;
}
.popup_content .t-submit:hover {
    box-shadow: 0 0 25px 5px rgba(5, 140, 221, 1);
}
.popup_content .change_phone {
    display: block;
    text-align: center;
    margin-top: 14px;
    color: #385ec6;
    cursor: pointer;
    font-size: 13px;
    text-decoration: underline;
}

/* intlTelInput: shorthand padding в form.css ломает место под флаг */
.iti .t-input,
.iti #phone,
.iti #phoneConfirm,
.iti #phone2 {
    padding-left: 64px !important;
}

/* Контейнер intlTelInput должен растягиваться на всю ширину input-wrap */
.input-wrap .iti {
    width: 100%;
}

/* Плейсхолдер должен быть читаем на розовом фоне ошибки jQuery Validate */
input.error::placeholder {
    color: #d85030;
    opacity: 0.6;
}

/* === ОШИБКИ ВАЛИДАЦИИ — единое поведение в обеих формах ===
   В addelements1.css ошибки сделаны position:absolute с margin:-20px (всплывают ВЫШЕ инпута).
   Переопределяем: текстовые ошибки кладём ПОД инпут в потоке, телефонные — абсолютно под .iti */

.input-wrap {
    position: relative;
}

/* Текстовые ошибки (имя, email) обеих форм — в потоке, под инпутом */
#name-error,
#email-error,
#name2-error,
#email2-error {
    position: static !important;
    display: block !important;
    width: 100% !important;
    margin: 4px 0 0 0 !important;
    padding: 0 16px !important;
    font: 11px Verdana, Arial !important;
    color: #d85030 !important;
    background: transparent !important;
    border: 0 !important;
    text-align: left !important;
    box-sizing: border-box;
}

/* phone-wrap — flex-контейнер, ошибка должна переноситься на следующую строку */
.input-wrap.phone-wrap {
    flex-wrap: wrap !important;
}

/* Телефонные ошибки (#phone-error, #phone2-error): занимают всю строку под инпутом */
#phone-error,
#phone2-error {
    flex: 0 0 100% !important;
    position: static !important;
    display: block !important;
    width: 100% !important;
    margin: 4px 0 0 0 !important;
    padding: 0 16px !important;
    font: 11px Verdana, Arial !important;
    color: #d85030 !important;
    background: transparent !important;
    border: 0 !important;
    text-align: left !important;
    box-sizing: border-box;
}

/* Ошибка в попапе смены номера: всё ещё внутри .iti — под инпутом абсолютно */
.popup_sms_change .iti #phoneConfirm-error {
    position: absolute !important;
    left: 0;
    top: 100%;
    width: 100%;
    margin: 4px 0 0 0 !important;
    padding: 0 16px !important;
    font: 11px Verdana, Arial !important;
    color: #d85030 !important;
    background: transparent !important;
    border: 0 !important;
    text-align: left !important;
    box-sizing: border-box;
    z-index: 2;
}

/* Ошибки внутри попапов — только позиционирование/цвет.
   Видимость #codeError управляется JS через inline style (.css("display", "block")),
   видимость #phoneConfirm-error — самим jQuery Validate. Не форсим display. */
.popup_sms #codeError,
.popup_sms_change #phoneConfirm-error {
    position: relative !important;
    margin: 6px 0 0 0 !important;
    padding: 0 !important;
    font-size: 0.8rem;
    color: #d85030;
    background: transparent !important;
    border: 0 !important;
}
#codeError {
    display: none;
}

/* Внутри .iti попапа смены номера ошибка #phoneConfirm-error должна быть под input */
.popup_sms_change .iti #phoneConfirm-error {
    position: absolute !important;
    left: 0;
    top: 100%;
    margin: 2px 0 0 0 !important;
}

/* Адаптив попапов под мобильные */
@media (max-width: 480px) {
    .popup_content {
        padding: 28px 20px;
        max-width: 92%;
    }
    .popup_content h3 {
        font-size: 20px;
    }
}