/* css/index.css */

/*
 * STYLES FOR AJAX CONTACT FORM (MODAL & PAGES)
 */

/* Стили для модального окна успеха */
.modal-success {
    text-align: center;
    max-width: 500px;
}

.success-icon {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 1rem;
}

.modal-success h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

.modal-success .modal-subtitle {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

.modal-success p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.modal-success .btn {
    margin-top: 1rem;
}

/* Стили для сообщений об ошибках под полями */
.error-message {
    color: var(--color-red);
    font-size: 0.875rem;
    /* 14px */
    margin-top: 0.3rem;
    display: none;
    /* Скрыто по умолчанию */
    height: 1rem;
}

/* Модификатор для показа ошибки */
.error-message.show {
    display: block;
}

/* Отдельное сообщение об ошибке для чекбокса */
.error-message-standalone {
    color: var(--color-red);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: none;
    text-align: center;
}

.error-message-standalone.show {
    display: block;
}


/* Стили для математической капчи */
.math-captcha {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    /* Перенос на новую строку на малых экранах */
}

.math-captcha label {
    font-weight: 500;
    white-space: nowrap;
    /* Запрещаем перенос текста в label */
}

.math-captcha input {
    width: 60px;
    padding: 0.5rem;
    text-align: center;
}

.math-captcha #mathAnswer.is-invalid {
    border-color: var(--color-red);
}

.math-captcha #mathAnswer.is-valid {
    border-color: var(--color-green);
}

/* Стили для кнопки в состоянии загрузки */
.btn.loading {
    cursor: not-allowed;
    background: #ccc;
}

.btn .btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.btn.loading .btn-text {
    display: none;
}

.btn.loading .btn-loader {
    display: block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Стили для общего сообщения формы (успех/ошибка) */
.form-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    display: none;
    white-space: pre-wrap;
    /* Для переноса строк \n */
}

.form-message.show {
    display: block;
    animation: fadeIn 0.5s;
}

.form-message.success {
    background-color: #d1fae5;
    color: #065f46;
}

.form-message.error {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Скрываем поле-ловушку для ботов */
.honeypot {
    display: none;
}

/* Promotion Button Styles */
.btn-promotion {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: #ffffff !important;
    box-shadow: 0 5px 15px rgba(238, 90, 111, 0.4);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin-bottom: 10px;
    line-height: 1rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    animation: pulse 2s ease-in-out infinite;
}

.btn-promotion:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(238, 90, 111, 0.6);
    color: #ffffff !important;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* --- DIAGNOSTICS SECTION --- */
.section-diagnostics {
    padding: 4rem 0;
    background-color: #f4fcfb;
}

.container-diagnostics {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.diagnostics-header {
    text-align: center;
    margin-bottom: 3rem;
}

.diagnostics-header h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.diagnostics-header p {
    font-size: 1.125rem;
    color: var(--color-text-light);
    max-width: 48rem;
    margin: 0 auto;
}

.diagnostics-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .diagnostics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .section-diagnostics {
        padding: 5rem 0;
    }

    .diagnostics-header h2 {
        font-size: 2.5rem;
    }
}

/* --- CARDS --- */
.diagnostics-card {
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
}

.diagnostics-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Card Variants */
.card-burnout {
    background-image: linear-gradient(to bottom right, #fff7ed, #fef2f2);
    /* orange-50 to red-50 */
    border-color: #fed7aa;
    /* orange-200 */
}

.card-anxiety {
    background-image: linear-gradient(to bottom right, #eff6ff, #eef2ff);
    /* blue-50 to indigo-50 */
    border-color: #bfdbfe;
    /* blue-200 */
}

.card-stress {
    background-image: linear-gradient(to bottom right, #f0fdfa, #f0fdf4);
    /* teal-50 to green-50 */
    border-color: #99f6e4;
    /* teal-200 */
}

/* Icons */
.diagnostics-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
}

.diagnostics-icon i {
    font-size: 1.5rem;
    color: white;
}

.icon-burnout {
    background-image: linear-gradient(to right, #f97316, #dc2626);
    /* orange-500 to red-600 */
}

.icon-anxiety {
    background-image: linear-gradient(to right, #3b82f6, #4f46e5);
    /* blue-500 to indigo-600 */
}

.icon-stress {
    background-image: linear-gradient(to right, #14b8a6, #16a34a);
    /* teal-500 to green-600 */
}

/* Content */
.diagnostics-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 0.75rem;
    text-align: center;
    font-family: var(--font-heading);
}

.diagnostics-list {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.diagnostics-list li {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.diagnostics-list i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

.list-icon-burnout {
    color: #f97316;
}

.list-icon-anxiety {
    color: #3b82f6;
}

.list-icon-stress {
    color: #14b8a6;
}

/* Buttons */
.diagnostics-btn {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.75rem;
    font-weight: 700;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    font-family: var(--font-main);
    display: block;
    text-align: center;
    text-decoration: none;
}

.diagnostics-btn:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-burnout {
    background-image: linear-gradient(to right, #f97316, #dc2626);
}

.btn-burnout:hover {
    background-image: linear-gradient(to right, #ea580c, #b91c1c);
}

.btn-anxiety {
    background-image: linear-gradient(to right, #3b82f6, #4f46e5);
}

.btn-anxiety:hover {
    background-image: linear-gradient(to right, #2563eb, #4338ca);
}

.btn-stress {
    background-image: linear-gradient(to right, #14b8a6, #16a34a);
}

.btn-stress:hover {
    background-image: linear-gradient(to right, #0d9488, #15803d);
}