/* ============================================ */
/* АБСОЛЮТНЫЙ ФИКС ПОЛЕЙ И ОКНА УСПЕХА (TILDA)  */
/* ============================================ */

/* 1. ФОН САМОГО ПОПАПА */
.t-popup__container {
    background-color: #0A0A0F !important; 
    border: 1px solid rgba(232, 200, 118, 0.3) !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8) !important;
}

/* 2. ЗАГОЛОВКИ И ТЕКСТЫ */
.t-popup .t-form__title, 
.t-form__title {
    color: #FFFFFF !important;
    font-family: 'Playfair Display', serif !important;
}
.t-popup .t-form__descr, 
.t-form__descr {
    color: #A1A1A6 !important;
    font-size: 15px !important;
}

/* 3. ПОЛЯ ВВОДА (Увеличиваем шрифт, делаем фон темным) */
.t-popup .t-input, 
.t-popup .t-select, 
.t-popup .t-textarea,
.t-popup .t-input:focus, 
.t-popup .t-select:focus, 
.t-popup .t-textarea:focus,
.t-popup .t-input:active, 
.t-popup .t-input:hover {
    background-color: #111116 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #FFFFFF !important;
    border-radius: 8px !important;
    font-size: 16px !important; /* Крупный шрифт */
    font-family: 'Inter', sans-serif !important;
    padding: 14px 16px !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Золотая рамка при клике */
.t-popup .t-input:focus {
    border-color: #E8C876 !important;
    box-shadow: 0 0 10px rgba(232, 200, 118, 0.2) !important;
}

/* 4. УБИРАЕМ БЕЛО-ГОЛУБОЙ ФОН ОТ АВТОЗАПОЛНЕНИЯ CHROME */
.t-popup input:-webkit-autofill,
.t-popup input:-webkit-autofill:hover, 
.t-popup input:-webkit-autofill:focus, 
.t-popup input:-webkit-autofill:active{
    -webkit-box-shadow: 0 0 0 30px #111116 inset !important;
    -webkit-text-fill-color: #FFFFFF !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* 5. КНОПКА ОТПРАВКИ */
.t-popup .t-form__submit .t-btn {
    background: linear-gradient(90deg, #8A6810, #E8C876, #8A6810) !important;
    background-size: 200% auto !important;
    color: #0A0A0F !important;
    font-weight: 800 !important;
    border-radius: 8px !important;
    text-transform: uppercase !important;
    box-shadow: 0 10px 25px rgba(232, 200, 118, 0.2) !important;
    transition: all 0.4s ease !important;
    font-size: 15px !important;
    padding: 18px 30px !important;
}
.t-popup .t-form__submit .t-btn:hover {
    background-position: right center !important;
    transform: translateY(-2px) !important;
}

/* 6. ОКНО УСПЕХА (Убираем белый фон, делаем темным) */
.t-popup .t-form__success,
.t-popup__content,
.t-form__success {
    background-color: #0A0A0F !important;
}

/* Текст в окне успеха */
.t-popup .t-form__success .t-form__title,
.t-popup .t-form__success .t-form__descr,
.t-form__success .t-form__title,
.t-form__success .t-form__descr {
    color: #FFFFFF !important;
}

/* Кнопка "Хорошо" в окне успеха */
.t-popup .t-form__success .t-btn,
.t-form__success .t-btn {
    background: #E8C876 !important;
    color: #0A0A0F !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    padding: 12px 40px !important;
    text-transform: uppercase !important;
}

/* Крестик закрытия (делаем белым, чтобы был виден) */
.t-popup__close, 
.t-popup .t-popup__close {
    color: #FFFFFF !important;
}
</style>

/* ============================================ */
/* ФИНАЛЬНЫЙ ШТУРМ ОКНА УСПЕХА TILDA            */
/* ============================================ */

/* 1. Принудительно делаем фон окна успеха темным */
.t-form-success-popup,
.t-form__successbox,
div[class*="t-form-success-popup"] {
    background-color: #0A0A0F !important; 
    border: 1px solid rgba(232, 200, 118, 0.3) !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8) !important;
}

/* 2. Красим весь текст внутри окна в белый/серый */
.t-form-success-popup .t-form__title,
.t-form-success-popup .t-form__descr,
.t-form-success-popup p,
.t-form-success-popup span,
.t-form-success-popup div {
    color: #FFFFFF !important;
}

/* 3. Стилизуем кнопку «Хорошо» */
.t-form-success-popup .t-btn,
.t-form-success-popup button {
    background: #E8C876 !important;
    color: #0A0A0F !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    padding: 12px 40px !important;
    text-transform: uppercase !important;
    border: none !important;
}

/* 4. Делаем крестик закрытия белым, чтобы его было видно на темном фоне */
.t-popup__close,
.t-popup .t-popup__close {
    color: #FFFFFF !important;
    opacity: 0.8 !important;
}
