.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: 64px;
}

#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;
}

/* =========================================================================
   SMS-FORM INTEGRATION (registration via popup)
   ========================================================================= */

/* CTA button replacing Tilda forms — fills the original form slot */
.open-form-popup {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 16px;
    background: radial-gradient(circle at center, rgba(255, 220, 154, 1) 0%, rgba(255, 203, 104, 1) 100%);
    color: #000f41;
    font-family: "Gilroy", Arial, sans-serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.04em;
    cursor: pointer;
    text-transform: uppercase;
    transition: filter .2s, transform .15s;
    padding: 16px 12px;
}
.open-form-popup:hover { filter: brightness(1.07); }
.open-form-popup:active { transform: translateY(1px); }

/* Registration form inside .popup_form */
.popup_form .form.sms-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    font-family: "Gilroy", Arial, sans-serif;
    position: relative;
}
.popup_form .form.sms-form .jhuy {
    margin-bottom: 16px;
}
.popup_form .form.sms-form input[type="text"],
.popup_form .form.sms-form input[type="email"],
.popup_form .form.sms-form input[type="tel"] {
    width: 100%;
    height: 54px;
    background: #f3f3f3;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 0 18px;
    font-family: "Gilroy", Arial, sans-serif;
    font-size: 14px;
    color: #12131a;
    box-sizing: border-box;
    transition: border-color .2s;
}
.popup_form .form.sms-form input:focus {
    border-color: rgba(255, 203, 104, 1);
    outline: none;
}
.popup_form .form.sms-form .form-button {
    margin-top: 10px;
    width: 100%;
    height: 60px;
    border: none;
    border-radius: 16px;
    background: radial-gradient(circle at center, rgba(255, 220, 154, 1) 0%, rgba(255, 203, 104, 1) 100%);
    color: #000f41;
    font-family: "Gilroy", Arial, sans-serif;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    text-transform: uppercase;
    transition: filter .2s, transform .15s;
}
.popup_form .form.sms-form .form-button:hover { filter: brightness(1.07); }
.popup_form .form.sms-form .form-button:active { transform: translateY(1px); }
.popup_form .form.sms-form .iti { width: 100%; }
.popup_form .form.sms-form .iti input[type="tel"] { padding-left: 64px !important; }

/* Validation error placeholder (instruction rule 6) */
input.error::placeholder { color: #d85030; opacity: 0.6; }
.popup_form .form.sms-form input.error,
.popup_sms_change input.error {
    background: #fff0ed;
    border-color: #d85030;
}

/* Error positioning fix (instruction §8.5, §8.7) */
.popup_form #name-error,
.popup_form #email-error,
.popup_form #phone-error,
.iti #phone-error,
.iti #phoneConfirm-error,
.popup-ver #codeError,
.popup_sms_change #phoneConfirm-error {
    position: absolute !important;
    left: 0;
    top: 100%;
    margin: 2px 0 0 0 !important;
    font-size: 11px;
    color: #d85030;
    background: transparent !important;
    z-index: 1;
    white-space: nowrap;
}

/* Preloader override (instruction §8.2) */
#preloader[style*="block"] { display: flex !important; }

/* Popup theming under landing palette */
.popup {
    font-family: "Gilroy", Arial, sans-serif;
}
.popup .popup_content {
    background: #ffffff;
    border-radius: 16px;
    padding: 36px 32px;
    max-width: 480px;
    width: 90%;
    box-sizing: border-box;
}
.popup h3 {
    font-family: "Gilroy", Arial, sans-serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    color: #000f41;
    margin: 0 0 16px 0;
    text-align: center;
}
.popup p {
    font-family: "Gilroy", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.4;
    color: #12131a;
    text-align: center;
    margin: 0 0 18px 0;
}
.popup #currPhone { font-weight: 700; }
.popup .jhuy {
    display: block;
    margin-bottom: 20px;
    position: relative;
}
.popup .t-input,
.popup input.f-input {
    width: 100%;
    height: 54px;
    background: #f3f3f3;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 0 18px;
    font-family: "Gilroy", Arial, sans-serif;
    font-size: 14px;
    color: #12131a;
    box-sizing: border-box;
}
.popup .t-input:focus { border-color: rgba(255, 203, 104, 1); outline: none; }
.popup_sms_change .iti .t-input { padding-left: 64px !important; }
.popup .flex_uh {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.popup .t-submit {
    width: 100%;
    height: 56px;
    border: none;
    border-radius: 14px;
    background: radial-gradient(circle at center, rgba(255, 220, 154, 1) 0%, rgba(255, 203, 104, 1) 100%);
    color: #000f41;
    font-family: "Gilroy", Arial, sans-serif;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    text-transform: uppercase;
}
.popup .t-submit:hover { filter: brightness(1.07); }
.popup .change_phone {
    display: block;
    text-align: center;
    font-size: 14px;
    color: #687199;
    cursor: pointer;
    text-decoration: underline;
}
.popup .change_phone:hover { color: #000f41; }
.popup #codeError { display: none; }
.popup .close_popup {
    position: absolute;
    top: 14px;
    right: 14px;
    cursor: pointer;
}

/* intlTelInput overrides */
.iti__country-list {
    font-family: "Gilroy", Arial, sans-serif;
    font-size: 13px;
    max-height: 220px;
}
.iti__country-name { color: #12131a; }
.iti__dial-code { color: #687199; }
.iti__country.iti__highlight { background: rgba(255, 203, 104, 0.18); }

@media (max-width: 575px) {
    .popup .popup_content {
        width: 100%;
        height: 100%;
        border-radius: 0;
        padding: 24px 20px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        max-width: none;
    }
}

/* ========== popup_form rich design (ИНВЕСТОР / БАЗОВЫЙ) ========== */
.popup_form .popup_content--rich {
    max-width: 500px;
    width: 90%;
    padding: 30px 30px 24px;
    text-align: center;
    box-sizing: border-box;
}
.popup_form .popup_content--rich h3.popup_form__title {
    font-family: "Gilroy", Arial, sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #181818;
    text-align: center;
    letter-spacing: 0.02em;
    margin: 0 0 24px 0;
}
.popup_form .form.sms-form {
    margin-bottom: 0;
}
.popup_form .form.sms-form .form-button {
    max-width: 280px;
    margin: 14px auto 0;
    display: block;
}

/* Pricing badge (purple) */
.popup_form__price-badge {
    background: #5301c1;
    color: #ffffff;
    border-radius: 16px;
    padding: 12px 28px;
    margin: 28px auto 12px;
    display: inline-flex;
    gap: 18px;
    align-items: center;
    justify-content: center;
    font-family: "Gilroy", Arial, sans-serif;
    font-size: 30px;
    font-weight: 300;
    line-height: 1.2;
}
.popup_form__old-price {
    text-decoration: line-through;
    opacity: 0.85;
}
.popup_form__new-price {
    font-weight: 600;
}

/* Privacy disclaimer */
.popup_form__policy {
    font-family: "Gilroy", Arial, sans-serif;
    font-size: 12px;
    color: #181818;
    margin: 0 0 18px 0;
    text-align: center;
    line-height: 1.4;
    font-weight: 100;
}
.popup_form__policy a {
    color: #6a01fe;
    text-decoration: underline;
}
.popup_form__policy a:hover {
    opacity: 0.85;
}

/* Gift card (purple) */
.popup_form__gift {
    background: #5301c1;
    border-radius: 16px;
    padding: 16px 18px;
    display: grid;
    grid-template-columns: auto 110px 1fr;
    gap: 14px;
    align-items: center;
    color: #ffffff;
    text-align: left;
    margin-top: 14px;
    font-family: "Gilroy", Arial, sans-serif;
}
.popup_form__gift-label {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.2;
}
.popup_form__gift-timer {
    font-size: 36px;
    font-weight: 300;
    line-height: 1;
    margin-top: 8px;
    letter-spacing: 0.02em;
}
.popup_form__gift-img {
    width: 110px;
    height: auto;
    object-fit: contain;
    display: block;
}
.popup_form__gift-caption {
    font-size: 14px;
    line-height: 1.3;
    font-weight: 300;
}

@media (max-width: 575px) {
    .popup_form .popup_content--rich {
        padding: 24px 16px 20px;
        justify-content: flex-start;
    }
    .popup_form .popup_content--rich h3.popup_form__title {
        font-size: 26px;
        margin-bottom: 18px;
    }
    .popup_form__price-badge {
        font-size: 22px;
        padding: 10px 20px;
        gap: 12px;
        margin: 22px auto 10px;
    }
    .popup_form__gift {
        grid-template-columns: auto 80px 1fr;
        gap: 10px;
        padding: 12px;
    }
    .popup_form__gift-img {
        width: 80px;
    }
    .popup_form__gift-timer {
        font-size: 28px;
    }
    .popup_form__gift-label,
    .popup_form__gift-caption {
        font-size: 12px;
    }
}
