/* ==========================================
   1. СТИЛИ КАРТОЧКИ НА СТРАНИЦЕ (ВАШИ ИСХОДНЫЕ)
   ========================================== */
.callback-card {
    max-width: 750px;
    width: 100%;
    max-height: 450px;
    background: #ffffff;
    border: 1px solid #dce3e9;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    border-radius: 10px;
    flex: 3;
    border: 3px solid rgba(30, 47, 62, 0.3);
}

.form-container {
    padding: 28px 30px 32px;
}

/* строгий заголовок */
.form-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a2c3e;
    line-height: 1.35;
    margin-bottom: 10px;
    letter-spacing: -0.2px;
}

.form-title span {
    background: none;
    font-weight: 700;
    color: #c23d2c;
}

.form-subtext {
    font-size: 0.9rem;
    color: #4a627a;
    margin-bottom: 24px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e6edf2;
}

/* строгие поля */
.input-group {
    margin-bottom: 22px;
}

.input-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #2c4b6e;
    margin-bottom: 8px;
}

.phone-field {
    display: flex;
    align-items: center;
    border: 1px solid #cbdbe0;
    background: #ffffff;
    transition: 0.15s ease;
}

.phone-field:focus-within {
    border-color: #1e2f3e;
    outline: none;
}

.country-code {
    font-size: 0.9rem;
    font-weight: 500;
    color: #1f3a4b;
    background: #f5f7fa;
    padding: 11px 0 11px 14px;
    border-right: 1px solid #e2e8f0;
}

.phone-field input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 11px 14px;
    font-size: 0.9rem;
    font-family: monospace;
    font-weight: 500;
    color: #11181c;
    outline: none;
}

.phone-field input::placeholder {
    color: #9aaebf;
    font-family: monospace;
    font-weight: 400;
}

/* строгая кнопка — без градиентов */
.btn-submit {
    width: 100%;
    background: #054674;
    color: white;
    border: none;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: 0.1s linear;
    margin-top: 8px;
    border-radius: 25px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif
}

.btn-submit:hover {
    background: #0056b3;
    transform: scale(0.97);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-submit:active {
    transform: translateY(1px);
}

.btn-submit:disabled {
    background: #8b9aab;
    cursor: not-allowed;
    opacity: 0.7;
}

/* гарантия — строгая, серая */
.guarantee {
    margin-top: 20px;
    font-size: 0.7rem;
    color: #6c7e91;
    text-align: center;
    border-top: 1px solid #eef2f6;
    padding-top: 18px;
    font-weight: 450;
}

/* сообщения */
.form-message {
    margin-top: 18px;
    padding: 10px 12px;
    font-size: 0.8rem;
    font-weight: 500;
    display: none;
    border-left: 3px solid;
}

.success-message {
    background: #eef6f0;
    color: #1f6e43;
    border-left-color: #2a7f4b;
}

.error-message {
    background: #fef3f2;
    color: #bc3f33;
    border-left-color: #bc3f33;
}

/* Стили для индикатора загрузки капчи */
.captcha-loading {
    font-size: 0.7rem;
    color: #6c7e91;
    text-align: center;
    margin-top: 8px;
    display: none;
}

.about {
    display: flex;  
    gap: 25px;
    margin: 25px 0 55px 0;
    padding: 0 15px 0 15px;  
}

@media (max-width: 768px) {
    .about {
        flex-direction: column; 
    }
    .form-container {
        padding: 20px;
    }
    .form-title {
        font-size: 1.3rem;
    }
}

/* ==========================================
   2. СТИЛИ МОДАЛЬНОГО ОКНА (С ГАЛОЧКАМИ 152-ФЗ)
   ========================================== */

/* Оверлей (фон) */
.cb-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 15px;
    box-sizing: border-box;
}

.cb-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Само окно */
.cb-modal-content {
    background: #fff;
    border-radius: 10px;
    padding: 30px 35px;
    width: 100%;
    max-width: 460px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid #d1d5db;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    max-height: 90vh; /* Чтобы не вылезало за пределы экрана телефона */
    overflow-y: auto; /* Включает прокрутку внутри окна */
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-sizing: border-box;
}

.cb-modal-overlay.active .cb-modal-content {
    transform: translateY(0);
}

/* Кнопка закрытия */
.cb-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #a0aab2;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.cb-modal-close:hover {
    color: #333;
}

/* Заголовки */
.cb-modal-title {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 700;
    color: #1a2b3c;
}

.cb-modal-subtitle {
    margin: 0 0 20px;
    font-size: 14px;
    color: #666;
}

/* Поля ввода */
.cb-form-group {
    margin-bottom: 20px;
}

.cb-form-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.cb-phone-field {
    display: flex;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.cb-country-code {
    padding: 12px 15px;
    background: #f8fafc;
    color: #374151;
    font-size: 15px;
    border-right: 1px solid #cbd5e1;
}

.cb-phone-input {
    flex-grow: 1;
    padding: 12px 15px;
    border: none;
    outline: none;
    font-size: 15px;
    color: #333;
    font-family: inherit;
}

.cb-phone-input::placeholder {
    color: #9ca3af;
}

.cb-phone-field:focus-within {
    border-color: #04395e;
    box-shadow: 0 0 0 2px rgba(4, 57, 94, 0.1);
}

/* Блок с галочками (152-ФЗ) */
.cb-consent-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
}

.cb-consent-wrapper input[type="checkbox"] {
    margin-top: 3px;
    width: 14px;
    height: 14px;
    cursor: pointer;
    accent-color: #04395e; /* Красит галочку в синий цвет */
}

.cb-consent-label {
    font-size: 12px;
    color: #555;
    line-height: 1.4;
    cursor: pointer;
}

.cb-consent-label a {
    color: #1f6390;
    text-decoration: underline;
}

.cb-consent-label a:hover {
    text-decoration: none;
}

/* Кнопка отправки в модалке */
.cb-submit-btn {
    background: #04395e;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cb-submit-btn:hover {
    background: #032a47;
}

.cb-submit-btn:disabled {
    background: #7a8f9e;
    cursor: not-allowed;
}

/* Лоадер и сообщения в модалке */
.cb-captcha-loading {
    display: none;
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
    text-align: center;
}

.cb-form-message {
    margin-top: 15px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

/* Мобильная адаптация модального окна */
@media (max-width: 480px) {
    .cb-modal-content {
        padding: 25px 20px;
    }
    .cb-modal-title {
        font-size: 20px;
    }
}