.consultation-page .header,
body .header {
    padding: 0.5rem 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
}

.header-help {
    color: white;
    font-size: var(--font-size-sm);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-help .phone-link {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    padding: 0.625rem 1.25rem;
    background: white;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-help .phone-link:hover {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.header-help .phone-link:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-help strong {
    color: var(--primary-color);
}

/* Consultation-specific styles */
.consultation-main {
    padding: 3rem 0;
    background: #f9fafb;
    min-height: 100vh;
}

.consultation-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

.consultation-content {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-md);
    border: 1px solid #e5e7eb;
}

.step-header {
    margin-bottom: 24px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0a9a73;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    margin-bottom: 12px;
    font-size: 14px;
}

.step-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.step-badge {
    background: #e6fffa;
    color: #0a9a73;
    font-weight: 700;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #b2f5ea;
}

.progress-bar-inline {
    flex: 1;
    height: 6px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0a9a73, #10b981);
}

.step-header h1 {
    font-size: 28px;
    margin-bottom: 8px;
}

.step-header p {
    color: #6b7280;
    margin-bottom: 0;
}

.consultation-form .question-block {
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 16px;
    background: #ffffff;
}

.question-label {
    display: block;
    font-weight: 600;
    color: #111827;
    margin-bottom: 10px;
}

.required {
    color: #dc2626;
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-item,
.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f9fafb;
    cursor: pointer;
    transition: background 0.2s ease, border 0.2s ease;
    border: 1px solid transparent;
}

.radio-item:hover,
.checkbox-item:hover {
    background: #f3f4f6;
    border-color: #e5e7eb;
}

.radio-item input,
.checkbox-item input {
    width: 18px;
    height: 18px;
    accent-color: #0a9a73;
}

.conditional-input {
    margin-top: 12px;
}

.consultation-form input[type="text"],
.consultation-form input[type="email"],
.consultation-form textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    font-family: inherit;
    font-size: 14px;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.consultation-form input[type="text"]:focus,
.consultation-form input[type="email"]:focus,
.consultation-form textarea:focus {
    outline: none;
    border-color: #0a9a73;
    box-shadow: 0 0 0 3px rgba(10, 154, 115, 0.15);
}

.alert-message {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.form-actions {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-sm);
    border-top: 2px solid var(--gray-200);
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
}

.form-actions.has-back-btn {
    justify-content: flex-start;
}

.form-actions button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: var(--font-size-xs);
}

.form-actions .btn-secondary {
    flex: 0 0 auto;
    min-width: 100px;
}

.form-actions .btn-primary {
    flex: 1;
    max-width: 400px;
}

.btn-secondary {
    background: #ffffff;
    color: #0a9a73;
    border: 2px solid #0a9a73;
}

.btn-secondary:hover {
    background: #0a9a73;
    color: #ffffff;
}

.consultation-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 18px;
    border: 1px solid #e5e7eb;
    box-shadow: var(--shadow-sm);
}

.sidebar-icon {
    font-size: 22px;
    margin-bottom: 8px;
}

.sidebar-card h3 {
    margin-bottom: 6px;
    font-size: 16px;
}

.sidebar-card p {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
}

.trust-badges img {
    display: block;
}

@media (max-width: 1024px) {
    .consultation-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .consultation-content {
        padding: 20px;
    }

    .step-header h1 {
        font-size: 22px;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions.has-back-btn {
        flex-direction: column;
    }
}

/* ── Shared list style (used in question cards) ── */
.conditions-list {
    margin: 12px 0 16px;
    padding-left: 20px;
    color: #374151;
    font-size: 14px;
    line-height: 1.65;
}
.conditions-list li { margin-bottom: 5px; }

/* ── One-question-at-a-time quiz mode ─────────── */
.quiz-mode .question-block {
    display: none;
    padding: 0;
    border: none;
    border-radius: 0;
    margin-bottom: 0;
    background: transparent;
}
.quiz-mode .question-block.active {
    display: block;
    animation: quizSlideIn 0.28s ease;
}
.quiz-mode .question-block.active.slide-back {
    animation: quizSlideInBack 0.28s ease;
}
@keyframes quizSlideIn {
    from { opacity: 0; transform: translateX(32px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes quizSlideInBack {
    from { opacity: 0; transform: translateX(-32px); }
    to   { opacity: 1; transform: translateX(0); }
}
.quiz-mode .question-block .question-label {
    font-size: 18px;
    line-height: 1.55;
    margin-bottom: 20px;
}
/* Highlight selected option */
.radio-item:has(input:checked),
.checkbox-item:has(input:checked) {
    background: #e6fffa;
    border-color: #10b981;
}

/* Question counter ("Question 3 of 7") */
.q-counter {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Navigation bar below the question */
.quiz-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}
.quiz-nav .q-progress-text {
    font-size: 13px;
    color: #9ca3af;
    font-weight: 500;
    flex: 1;
    text-align: center;
    white-space: nowrap;
}

/* Inline validation error */
.q-error {
    margin-top: 16px;
    padding: 12px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    font-size: 14px;
    color: #dc2626;
}

@media (max-width: 480px) {
    .quiz-nav { gap: 8px; }
    .quiz-nav .q-progress-text { font-size: 12px; }
    .quiz-mode .question-block .question-label { font-size: 16px; }
}
