:root {
    --brand-green: #4caf7d;
    --brand-green-light: #eaf7f0;
    --brand-blue-light: #eaf3fb;
    --radius-lg: 22px;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* { font-family: 'Vazirmatn', sans-serif; }

body {
    background: linear-gradient(160deg, var(--brand-green-light) 0%, var(--brand-blue-light) 100%);
    min-height: 100vh;
    margin: 0;
}

.survey-wrapper { min-height: 100vh; }

/* ---------- کارت خوش‌آمدگویی / پایان ---------- */
.welcome-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(14px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 3rem 2rem;
    max-width: 440px;
    width: 100%;
}

.welcome-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}
.finish-icon { color: #e0607e; }

.welcome-title {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.welcome-text {
    color: #555;
    line-height: 1.9;
    margin-bottom: 0.5rem;
}

.welcome-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    color: #4caf7d;
    font-size: 0.9rem;
    margin: 1.5rem 0;
}

.patient-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--brand-green-light);
    color: #3d9c6b;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin-bottom: 0.5rem;
}

.btn-start {
    background: var(--brand-green);
    border: none;
    border-radius: 50px;
    padding: 0.9rem 2.5rem;
    font-weight: 600;
    font-size: 1.05rem;
    box-shadow: 0 8px 20px rgba(76, 175, 125, 0.35);
    margin-top: 1rem;
}
.btn-start:hover { background: #3d9c6b; }

/* ---------- صفحات سؤال ---------- */
.survey-page {
    max-width: 560px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
}

.progress-header { margin-bottom: 1.5rem; }

.progress-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
}

.custom-progress {
    height: 8px;
    border-radius: 10px;
    margin-top: 0.5rem;
    background: #e4e9ee;
}
.custom-progress .progress-bar {
    background: linear-gradient(90deg, #4caf7d, #6fc99a);
    border-radius: 10px;
    transition: width .4s ease;
}

.question-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(14px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 2rem 1.5rem;
}

.question-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}
.question-sub { color: #666; margin-bottom: 1.5rem; }

.options-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    border: 2px solid #e4e9ee;
    border-radius: 16px;
    cursor: pointer;
    transition: all .2s ease;
    background: #fff;
}
.option-item input { display: none; }
.option-item .option-radio {
    width: 20px; height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
}
.option-item.selected,
.option-item:has(input:checked) {
    border-color: var(--brand-green);
    background: var(--brand-green-light);
}
.option-item.selected .option-radio,
.option-item:has(input:checked) .option-radio {
    border-color: var(--brand-green);
    background: var(--brand-green);
    box-shadow: inset 0 0 0 3px #fff;
}
.option-text { font-weight: 500; }

.nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    gap: 0.75rem;
}

.btn-nav {
    border-radius: 50px;
    padding: 0.7rem 1.6rem;
    font-weight: 600;
    flex: 1;
}
.btn-nav:disabled { opacity: 0.5; }

.comment-box {
    border-radius: 16px;
    border: 2px solid #e4e9ee;
    resize: none;
    padding: 1rem;
}
.comment-box:focus {
    border-color: var(--brand-green);
    box-shadow: none;
}

.btn-submit {
    background: var(--brand-green);
    border: none;
    border-radius: 50px;
    padding: 0.8rem 2.5rem;
    font-weight: 600;
    width: 100%;
}

/* انیمیشن ورود سؤال */
.fade-in {
    animation: fadeSlideIn .35s ease;
}
@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* موبایل */
@media (max-width: 480px) {
    .welcome-card, .question-card { padding: 2rem 1.25rem; }
    .btn-nav { font-size: 0.95rem; padding: 0.7rem 1rem; }
}
