.hidden {
    display: none !important;
}

input:focus,
textarea:focus {
	outline: none;
}

input:not([type="checkbox"]),
textarea {
	-webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

button {
    outline: none;
    border: 0;
    cursor: pointer;
}

button:active {
    outline: none;
}

button:focus {
    outline: none;
}

#change-number {
    cursor: pointer;
    text-align: center;
    justify-content: center;
}

#name-error,
#phone-error,
#email-error,
#phoneConfirm-error,
#footerName-error,
#footerEmail-error,
#footerPhone-error,
#codeError {
    display: inherit;
    background: transparent !important;
    font-size: 11px;
    width: auto;
    height: auto;
    color: red;
    margin: -20px 0 0 16px;
    position: absolute;
    font-family: Verdana, Arial;
}

#name-error {
    
}

#email-error {
    
}

#phone-error {
    margin-top: 24px;
}

#phoneConfirm-error {
    margin-top: 24px;
}

#codeError {
    
}

.iti.iti--allow-dropdown {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.iti.iti--allow-dropdown {
    flex-direction: column;
    align-items: flex-start;
}

.iti__country-name {
    color: #202020;
}

.iti-mobile .iti--container {
    z-index: 999999999;
}

#phone {
    padding-left: 80px !important;
}

#change-number {
    display: block;
    margin: 0 auto;
    font-weight: 400;
    font-size: 16px;
    line-height: 120%;
    color: #686868;
    margin-top: 15px;
    text-align: center;
}

#codeError {
    display: none;
}

.popup * {
    font-family: Verdana, Arial;
}

.popup {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999999999;
}

.popup_content {
    width: 514px;
    background: #FFFFFF;
    border-radius: 10px;
    padding: 34px 43px 50px 43px;
    position: relative;
}

.close_popup {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
}

.popup h3 {
    font-weight: 700;
    font-size: 28px;
    line-height: 34px;
    color: #191938;
    margin-bottom: 25px;
}

.popup p {
    color: #191938;
    margin-bottom: 10px;
}

.popup label {
    margin-bottom: 20px;
    display: block;
    position: relative;
}

.popup input {
    border: 1px solid #C0C0C0;
    border-radius: 5px;
    width: 100%;
}

.popup button {
    width: 100%;
}

.popup .politic {
    font-weight: 400;
    font-size: 14px;
    line-height: 17px;
    color: #747474;
    max-width: 358px;
    display: block;
}

.popup .form_button {
    margin-bottom: 20px;
}

.popup_sms_change h3 {
    margin-bottom: 10px;
}

.popup_sms_change h3 ~ p {
    font-weight: 400;
    font-size: 18px;
    line-height: 120%;
    color: #686868;
    margin-bottom: 14px;
}

.popup .btn_gradient {
    width: 100%;
}

@media (max-width: 575px) {
    .popup_content {
        width: 100%;
        height: 100%;
        border-radius: 0;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        align-content: center;
    }
    .popup_content form {
        width: 100%;
    }
}

#tildaformcaptchabox {
    display: none !important;
}

/* =============================================
   ФОРМА РЕГИСТРАЦИИ (тёмная тема, секция #FORM)
   ============================================= */
.reg-form {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 28px 24px 24px;
    width: 100%;
    box-sizing: border-box;
}

.reg-form__title {
    color: #ffffff;
    font-family: "Montserrat", sans-serif;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 20px 0;
}

.reg-form__field {
    position: relative;
    margin-bottom: 24px;
}

.reg-form__input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    height: 48px;
    padding: 0 16px !important;
    transition: border-color 0.2s;
}

.reg-form__input::placeholder {
    color: rgba(255, 255, 255, 0.45) !important;
}

.reg-form .iti input::placeholder,
.reg-form .iti input[type=tel]::placeholder {
    color: rgba(255, 255, 255, 0.45) !important;
}

.reg-form__input:focus {
    border-color: #00e676 !important;
    outline: none;
    background: rgba(255, 255, 255, 0.12) !important;
}

.reg-form__input.error {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
}

.reg-form__input.error::placeholder {
    color: rgba(239, 68, 68, 0.6);
}

.reg-form__btn {
    display: block;
    width: 100%;
    height: 50px;
    background: #00e676;
    color: #131313;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 4px;
}

.reg-form__btn:hover {
    background: #00c763;
}

.reg-form__btn:active {
    transform: scale(0.98);
}

.reg-form__policy {
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
    text-align: center;
    margin: 12px 0 0 0;
    line-height: 1.4;
}

.reg-form__policy a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: underline;
}

/* Ошибки jQuery Validate в форме регистрации */
.reg-form #name-error,
.reg-form #email-error,
.reg-form #phone-error {
    position: absolute !important;
    left: 0;
    top: 100%;
    margin: 2px 0 0 0 !important;
    font-size: 0.75rem;
    color: #ef4444;
    background: transparent !important;
}

/* intlTelInput: тёмная тема для формы */
.reg-form .iti {
    display: block;
    width: 100%;
}

.reg-form .iti input,
.reg-form .iti input[type=tel],
.reg-form .iti input[type=text] {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

.reg-form .iti input:focus {
    border-color: #00e676;
}

.reg-form .iti__selected-flag {
    background: transparent;
}

.reg-form .iti__selected-flag:hover {
    background: rgba(255, 255, 255, 0.08);
}

.reg-form .iti__arrow {
    border-top-color: rgba(255, 255, 255, 0.5);
}

.reg-form .iti__country-list {
    background: #ffffff;
    border-color: #e0e0e0;
    color: #263238;
}

.reg-form .iti__country:hover,
.reg-form .iti__country.iti__highlight {
    background: #f5f7fa;
}

.reg-form .iti__dial-code {
    color: #607D8B;
}

.reg-form .iti__country-name {
    color: #263238;
}

.reg-form .iti .reg-form__input {
    padding-left: 52px;
}

/* =============================================
   ПОПАПЫ — кнопки и инпуты
   ============================================= */
.popup_content .t-input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #C0C0C0;
    border-radius: 6px;
    font-size: 15px;
    font-family: "Montserrat", sans-serif;
    color: #191938;
    background: #fff;
    transition: border-color 0.2s;
}

.popup_content .t-input:focus {
    border-color: #00e676;
    outline: none;
}

.popup_content .t-input.error {
    border-color: #ef4444;
    background: #fff5f5;
}

.popup_content .t-submit {
    display: block;
    width: 100%;
    height: 50px;
    background: #00e676;
    color: #1f1f1f;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.popup_content .t-submit:hover {
    background: #00c763;
}

.popup_content .flex_uh {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.popup_content .jhuy {
    display: block;
    position: relative;
    margin-bottom: 16px;
}

/* intlTelInput в попапе смены номера */
.popup_sms_change .iti .t-input,
.popup_sms .iti .t-input {
    padding-left: 64px !important;
}

/* Ошибки в попапах */
.popup_sms #codeError {
    position: relative !important;
    display: none;
    margin: 6px 0 0 0 !important;
    font-size: 0.8rem;
    color: #ef4444;
    background: transparent !important;
}

.popup_sms_change #phoneConfirm-error {
    position: absolute !important;
    left: 0;
    top: 100%;
    margin: 2px 0 0 0 !important;
    font-size: 0.8rem;
    color: #ef4444;
    background: transparent !important;
}

/* Флаг intlTelInput не смещается при ошибке */
.iti #phone-error,
.iti #phoneConfirm-error {
    position: absolute !important;
    left: 0;
    top: 100%;
    margin: 2px 0 0 0 !important;
}

/* Читаемый плейсхолдер при ошибке */
input.error::placeholder {
    color: #d85030;
    opacity: 0.6;
}

/* Список стран intlTelInput — поверх всего */
.iti-mobile .iti--container {
    z-index: 999999999;
}
