/* Кастомные стили для формы и лоадера */

/* Лоадер */
.form-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.form-loader.active {
    display: flex;
}

.loader-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #037E4A;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-text {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 500;
}

.loader-subtext {
    font-size: 14px;
    color: #666;
}

/* Модальное окно успеха */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.success-modal.active {
    display: flex;
}

.success-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.success-icon {
    width: 60px;
    height: 60px;
    background: #037E4A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.success-icon svg {
    width: 30px;
    height: 30px;
    fill: white;
}

.success-title {
    font-size: 24px;
    font-weight: 600;
    color: #037E4A;
    margin-bottom: 10px;
}

.success-message {
    font-size: 16px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 25px;
}

.success-btn {
    background: #037E4A;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.success-btn:hover {
    background: #026a3f;
}

/* Скрытие стандартного сообщения об успехе */
.start__form .success-message {
    display: none !important;
}

/* Стили для кнопки во время загрузки */
.submit-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Адаптивность */
@media (max-width: 768px) {
    .loader-content,
    .success-content {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .success-title {
        font-size: 20px;
    }
    
    .success-message {
        font-size: 14px;
    }
}
