/* Questionnaire Page Specific Styles */
/* Base styles (reset, variables, buttons, forms, nav) come from main.css */

/* Header override for questionnaire - reset styles from nav.css */
.header {
    display: block;
    padding: 1rem 0;
    height: auto;
    position: static;
    border-bottom: none;
    box-shadow: var(--shadow-sm);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Logo override */
.logo-icon {
    width: 40px;
    height: 40px;
}

/* Container */
.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Progress Section */
.progress-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.progress-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.progress-steps {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 600;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: var(--border);
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, #3b82f6 100%);
    border-radius: 999px;
    transition: width 0.3s ease;
}

/* Form Card */
.form-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

/* Step */
.step {
    display: none;
}

.step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-header {
    text-align: center;
    margin-bottom: 2rem;
}

.step-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-light);
    color: #1e40af;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.step-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Question */
.question {
    margin-bottom: 2rem;
}

.question:last-of-type {
    margin-bottom: 3rem;
}

select.other-input {
    appearance: none;
    -webkit-appearance: none;
    height: auto;
    padding: 10px 12px;
    line-height: 18px;
    font-size: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    background-size: 12px;
}

.question-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.required {
    color: var(--danger);
}

.question-note {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-top: 0.25rem;
}

/* Options */
.options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.option {
    position: relative;
}

.option input[type="radio"],
.option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option label {
    display: block;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9375rem;
}

.option label:hover {
    background: var(--bg-muted);
    border-color: var(--primary);
}

.option input:checked + label {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.option input:disabled + label {
    opacity: 0.5;
    cursor: not-allowed;
}

.other-input {
    margin-top: 0.5rem;
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9375rem;
}

.other-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.error-field {
    border-color: var(--danger) !important;
    background-color: var(--danger-bg);
}

.error-message {
    color: var(--danger);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
}

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

/* Navigation Buttons */
.nav-buttons {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

/* Button override for questionnaire - restore original padding */
.nav-buttons .btn {
    padding: 0.875rem 1.75rem;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 3rem 2rem;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: var(--success-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--success);
    font-size: 2rem;
}

.success-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.success-text {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.success-note {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.success-highlight {
    background: #f0f9ff;
    padding: 1.25rem;
    border-radius: var(--radius);
    margin: 1.5rem 0;
}

.success-highlight p {
    color: #1e40af;
    font-weight: 600;
    margin: 0;
    line-height: 1.6;
}

.success-list {
    text-align: right;
    display: inline-block;
    color: var(--text-label);
    margin: 1rem 0 1.5rem 0;
    list-style: none;
}

[dir="ltr"] .success-list {
    text-align: left;
}

.success-list li {
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 640px) {
    .container {
        padding: 1.5rem 1rem;
    }

    .form-card {
        padding: 1.5rem;
    }

    .step-title {
        font-size: 1.25rem;
    }

    .nav-buttons {
        flex-direction: column-reverse;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}
