/* Стили для форм */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: rgb(198, 164, 126);
    box-shadow: 0 0 0 3px rgba(198, 164, 126, 0.1);
}

.form-control.error {
    border-color: #f44336;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.form-error-message {
    display: block;
    color: #f44336;
    font-size: 12px;
    margin-top: 5px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.form-success-message {
    text-align: center;
    padding: 40px;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.3s ease;
}

.form-success-message .success-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    background: rgb(198, 164, 126);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    animation: successPop 0.5s ease;
}

@keyframes successPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.form-error-alert {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #fff3e0;
    border: 1px solid #ff9800;
    border-radius: 8px;
    margin-bottom: 20px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Кнопка отправки */
.btn-submit {
    background: rgb(198, 164, 126);
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-submit:hover:not(:disabled) {
    background: rgb(178, 144, 106);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(198, 164, 126, 0.3);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-submit.loading .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Чекбокс политики конфиденциальности */
.privacy-checkbox {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.privacy-checkbox input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 2px;
    cursor: pointer;
}

.privacy-checkbox label {
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
}

.privacy-checkbox a {
    color: rgb(198, 164, 126);
    text-decoration: underline;
}

/* Модальное окно результата квиза */
.quiz-result-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quiz-result-modal.show {
    opacity: 1;
}

.quiz-result-content {
    background: white;
    padding: 40px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.quiz-result-modal.show .quiz-result-content {
    transform: scale(1);
}

.price-block {
    text-align: center;
    margin: 30px 0;
}

.price-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.price-value {
    font-size: 48px;
    font-weight: bold;
    color: rgb(198, 164, 126);
    animation: countUp 1s ease;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.result-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.result-actions .btn {
    flex: 1;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: rgb(198, 164, 126);
    color: white;
    border: none;
}

.btn-secondary {
    background: white;
    color: #666;
    border: 1px solid #e0e0e0;
}

/* Адаптивность */
@media (max-width: 768px) {
    .form-control {
        font-size: 16px; /* Предотвращаем zoom на iOS */
    }

    .result-actions {
        flex-direction: column;
    }

    .price-value {
        font-size: 36px;
    }
}



/* Honeypot поля - несколько способов скрытия */

/* Способ 1: Абсолютное позиционирование за пределами экрана */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    height: 1px !important;
    width: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Способ 2: Альтернативное скрытие */
.hp-field-alt {
    opacity: 0 !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    height: 0 !important;
    width: 0 !important;
    z-index: -1 !important;
    background: transparent !important;
    border: none !important;
}

/* Скрытие label для honeypot */
.hp-label {
    display: none !important;
    visibility: hidden !important;
}

/* Для screen readers - говорим, что поле не для заполнения */
.hp-field:focus,
.hp-field-alt:focus {
    outline: none !important;
}