/* ===== ОСНОВНЫЕ ПЕРЕМЕННЫЕ И СТИЛИ ===== */
:root {
    --white: #ffffff;
    --red-accent: #e53935;
    --gray-text: #666666;
    --dark-gray: #555555;
    --light-gray: #e0e0e0;
    --modal-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
    --success-color: #28a745;
    --error-color: #dc3545;
    --input-border: #555555;
    --input-focus: rgba(229, 57, 53, 0.5);
}

/* Индикатор загрузки */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-right-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Стили для подтверждения закрытия */
.confirmation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10002;
}

.confirmation-dialog {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.confirmation-dialog p {
    margin-bottom: 20px;
    font-size: 16px;
    color: var(--gray-text);
}

.confirmation-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.confirmation-button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
}

.confirm-yes {
    background: var(--red-accent);
    color: white;
}

.confirm-no {
    background: #e0e0e0;
    color: var(--gray-text);
}

.confirmation-button:hover {
    transform: translateY(-2px);
}

/* Стили для текста соглашения */
.privacy-agreement-text {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    color: var(--gray-text);
}

.privacy-agreement-text p {
    margin: 0;
    line-height: 1.5;
}

.privacy-link {
    color: var(--red-accent);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.privacy-link:hover {
    color: #c62828;
    text-decoration: underline;
}

.form-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--light-gray) 50%, transparent 100%);
    margin: 25px 0;
}

.contact-info {
    text-align: left;
    line-height: 1.8;
    font-size: 16px;
    color: var(--gray-text);
    margin: 20px 0;
}

.contact-info p {
    margin-bottom: 15px;
}

.contact-info strong {
    color: var(--black);
    display: block;
    margin-bottom: 5px;
}

/* Адаптивность для подтверждения */
@media (max-width: 768px) {
    .confirmation-dialog {
        padding: 20px;
    }
    
    .confirmation-buttons {
        flex-direction: column;
    }
    
    .privacy-agreement-text {
        padding: 12px;
        font-size: 13px;
    }
    
    .contact-info {
        font-size: 14px;
    }
    
    .contact-info p {
        margin-bottom: 12px;
    }
}