.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: #ffffff;
}

.iti-mobile .iti--container {
    z-index: 999999999;
}

#phone {
    padding-left: 64px;
}

#change-number {
    display: block;
    margin: 0 auto;
    font-weight: 400;
    font-size: 14px;
    line-height: 120%;
    color: #5a5a5a;
    margin-top: 15px;
    text-align: center;
    border-bottom: 1px solid #5a5a5a;
    text-decoration: none;
}

#codeError {
    display: none;
}

.popup * {
    font-family: 'Montserrat', Arial, sans-serif;
}

.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.6);
    z-index: 999999999;
}

.popup_content {
    width: 514px;
    background: #ffffff;
    border-radius: 20px;
    padding: 34px 43px 50px 43px;
    position: relative;
    box-shadow: 0 8px 40px rgba(0,0,0,.15);
}

.close_popup {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
}

.close_popup svg rect {
    fill: #686868;
}

.popup h3 {
    font-weight: 700;
    font-size: 28px;
    line-height: 34px;
    color: #272727;
    margin-bottom: 25px;
}

.popup p {
    color: #5a5a5a;
    margin-bottom: 10px;
}

.popup label {
    margin-bottom: 20px;
    display: block;
    position: relative;
}

.popup input {
    border: 1px solid #b2b2b2;
    border-radius: 10px;
    width: 100%;
    height: 56px;
    padding: 0 18px;
    background-color: #fff;
    color: #272727;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    box-sizing: border-box;
}

.popup input::placeholder {
    color: #999;
    opacity: 1;
}

.popup input:focus {
    border-color: #b4e913;
    outline: none;
}

.popup button {
    width: 100%;
    background: #b4e913;
    color: #272727;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    height: 60px;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: background .3s;
}

.popup .politic {
    font-weight: 400;
    font-size: 11px;
    line-height: 17px;
    color: #5a5a5a;
    max-width: 358px;
    display: block;
}

.popup button:hover {
    background: #9fce10;
}

.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: #5a5a5a;
    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;
}

/* === Preloader: show as flex when jQuery .show() sets display:block === */
#preloader[style*="block"] {
    display: flex !important;
    justify-content: center;
    align-items: center;
}

/* === Form button hover === */
.form-button:hover {
    background: #9fce10 !important;
}

/* === Error placeholder readable on error bg === */
input.error::placeholder {
    color: #d85030;
    opacity: .6;
}

/* === intlTelInput: phone input padding for flag === */
.iti #phone,
.iti .t-input,
.iti .phoneConfirm {
    padding-left: 64px !important;
}

/* === intlTelInput: country list light theme for popups === */
.popup .iti__country-list {
    background: #fff;
    border: 1px solid #b2b2b2;
}

.popup .iti__country-list .iti__country:hover,
.popup .iti__country-list .iti__country--highlight {
    background: #f0f0f0;
}

.popup .iti__country-list .iti__dial-code {
    color: #666;
}

.popup .iti__country-name {
    color: #272727;
}

/* === intlTelInput: selected flag area in popup === */
.popup .iti__selected-flag {
    background: transparent;
}

.popup .iti__selected-flag:hover {
    background: rgba(0,0,0,.05);
}

/* === intlTelInput: main form light theme overrides === */
.tn-atom__custom-form .iti__country-list {
    background: #fff;
    border: 1px solid #b2b2b2;
}

.tn-atom__custom-form .iti__country-name {
    color: #272727;
}

.tn-atom__custom-form .iti__country-list .iti__country:hover,
.tn-atom__custom-form .iti__country-list .iti__country--highlight {
    background: #f0f0f0;
}

.tn-atom__custom-form .iti__dial-code {
    color: #666;
}

/* === Popup form elements === */
.popup .t-input {
    border: 1px solid #b2b2b2;
    border-radius: 10px;
    width: 100%;
    height: 56px;
    padding: 0 18px;
    background-color: #fff;
    color: #272727;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    box-sizing: border-box;
}

.popup .t-input::placeholder {
    color: #999;
    opacity: 1;
}

.popup .t-input:focus {
    border-color: #b4e913;
    outline: none;
}

.popup .t-submit {
    width: 100%;
    height: 60px;
    background: #b4e913;
    color: #272727;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: background .3s;
}

.popup .t-submit:hover {
    background: #9fce10;
}

.popup .jhuy {
    display: block;
    margin-bottom: 20px;
    position: relative;
}

.popup .flex_uh {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* === Popup input error state === */
.popup input.error {
    border-color: #ef4444 !important;
    background: #fff5f5 !important;
}

/* === Validation errors in popups: position relative === */
.popup #codeError,
.popup #phoneConfirm-error {
    position: relative !important;
    margin: 6px 0 0 0 !important;
    font-size: 0.8rem;
    color: #ef4444;
    background: transparent !important;
}

#codeError {
    display: none;
}

/* === Validation errors inside .iti: absolute to avoid flag shift === */
.iti #phone-error,
.iti #phoneConfirm-error {
    position: absolute !important;
    left: 0;
    top: 100%;
    margin: 2px 0 0 0 !important;
}

/* === Main form validation errors === */
.tn-atom__custom-form #name-error,
.tn-atom__custom-form #email-error {
    position: relative !important;
    display: block !important;
    margin: 4px 0 0 4px !important;
    font-size: 11px;
    color: #ef4444;
    background: transparent !important;
    font-family: 'Montserrat', Arial, sans-serif;
}

/* Phone error inside .iti must stay absolute so the flag doesn't shift */
.tn-atom__custom-form .iti #phone-error {
    position: absolute !important;
    left: 0;
    top: 100%;
    display: block !important;
    margin: 2px 0 0 4px !important;
    font-size: 11px;
    color: #ef4444;
    background: transparent !important;
    font-family: 'Montserrat', Arial, sans-serif;
}

/* Extra bottom space for phone field only when validation error is shown */
.tn-atom__custom-form div:has(.iti #phone.error) {
    margin-bottom: 30px !important;
}

/* === Main form input error state === */
.tn-atom__custom-form input.error {
    border-color: #ef4444 !important;
    background: #fff5f5 !important;
}
