@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&family=DM+Mono:wght@400;500&display=swap');

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: #0f1b2d;
    --navy-mid: #1a2d47;
    --navy-light: #243b57;
    --blue: #1e6fff;
    --blue-light: #4d8fff;
    --blue-glow: rgba(30, 111, 255, 0.18);
    --accent: #00d4aa;
    --accent-dim: rgba(0, 212, 170, 0.12);
    --white: #ffffff;
    --off-white: #f7f9fc;
    --gray-100: #eef1f6;
    --gray-200: #dde3ed;
    --gray-400: #8a97ae;
    --gray-600: #5c6b82;
    --text: #1a2537;
    --text-muted: #6b7a92;
    --success: #00c07f;
    --danger: #ff4757;
    --shadow-sm: 0 1px 4px rgba(15,27,45,0.06);
    --shadow-md: 0 4px 16px rgba(15,27,45,0.10);
    --shadow-lg: 0 12px 40px rgba(15,27,45,0.16);
    --radius: 10px;
    --radius-lg: 16px;
    --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--off-white);
    color: var(--text);
    line-height: 1.5;
    height: 100vh;
    overflow: hidden;
    font-size: 14px;
}

/* ─── SCREENS ─── */
.screen { display: none; width: 100%; height: 100%; }
.screen.active { display: flex; flex-direction: column; }

/* ─── LOGIN ─── */
#login-screen {
    justify-content: center;
    align-items: center;
    background: var(--navy);
    position: relative;
    overflow: hidden;
}

#login-screen::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30,111,255,0.12) 0%, transparent 70%);
    top: -200px; right: -200px;
    pointer-events: none;
}

#login-screen::after {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,212,170,0.07) 0%, transparent 70%);
    bottom: -150px; left: -100px;
    pointer-events: none;
}

.login-container {
    background: var(--white);
    padding: 2.5rem 2.25rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 380px;
    position: relative;
    z-index: 1;
    animation: loginAppear 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes loginAppear {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

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

.logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px; height: 60px;
    background: linear-gradient(135deg, var(--blue) 0%, #0047cc 100%);
    border-radius: 14px;
    margin-bottom: 0.875rem;
    box-shadow: 0 8px 24px rgba(30,111,255,0.3);
}

.logo-badge span {
    font-family: 'DM Mono', monospace;
    font-weight: 500;
    font-size: 1.1rem;
    color: white;
    letter-spacing: 0.05em;
}

.logo h1 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.02em;
    margin-bottom: 0.2rem;
}

.logo p {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 400;
}

.form-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.5rem 0 1rem;
    color: var(--gray-400);
    font-size: 0.75rem;
}
.form-divider::before, .form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    color: var(--gray-600);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-group input {
    width: 100%;
    padding: 0.7rem 0.875rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text);
    background: var(--off-white);
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.form-group input:focus {
    border-color: var(--blue);
    background: white;
    outline: none;
    box-shadow: 0 0 0 3px var(--blue-glow);
}

.form-group input::placeholder { color: var(--gray-400); }

/* Required field styles */
.required-mark {
    color: var(--danger);
    font-size: 0.75rem;
    margin-left: 2px;
}

.field-error {
    display: block;
    font-size: 0.7rem;
    color: var(--danger);
    margin-top: 0.25rem;
    min-height: 1.1rem;
}

.form-group.error input {
    border-color: var(--danger);
}

/* ─── BUTTONS ─── */
.btn-primary, .btn-secondary, .btn-success {
    padding: 0.7rem 1.25rem;
    border: none;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition);
    width: 100%;
    margin-bottom: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue) 0%, #0047cc 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(30,111,255,0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(30,111,255,0.4);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(30,111,255,0.25);
}

.btn-primary:disabled {
    background: var(--gray-200);
    color: var(--gray-400);
    box-shadow: none;
    cursor: not-allowed;
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-600);
    border: 1.5px solid var(--gray-200);
    box-shadow: none;
}

.btn-secondary:hover:not(:disabled) {
    background: var(--gray-200);
    color: var(--text);
    border-color: var(--gray-400);
}

.btn-secondary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.btn-success {
    background: linear-gradient(135deg, #00b86c 0%, #007a49 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(0, 184, 108, 0.28);
}

.btn-success:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 184, 108, 0.38);
}

/* ─── HEADER ─── */
header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 0;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    z-index: 10;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    height: 56px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    background: linear-gradient(135deg, var(--blue), #0047cc);
    border-radius: 8px;
    font-family: 'DM Mono', monospace;
    font-size: 0.65rem;
    font-weight: 500;
    color: white;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

.header-content h1 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.01em;
}

.header-content h1 span {
    color: var(--blue);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.75rem;
    background: var(--off-white);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--gray-600);
    font-weight: 500;
}

.user-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

#logout-btn {
    width: auto;
    margin-bottom: 0;
    padding: 0.4rem 0.875rem;
    font-size: 0.8rem;
}

/* ─── MAIN LAYOUT ─── */
main { flex: 1; display: flex; overflow: hidden; }
.container { width: 100%; height: 100%; display: flex; }
.main-content { display: flex; width: 100%; height: 100%; }

/* ─── SIDEBAR LEFT ─── */
.sidebar-left {
    width: 260px;
    background: var(--white);
    border-right: 1px solid var(--gray-200);
    padding: 1.25rem;
    overflow-y: auto;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-400);
    margin-bottom: 0.875rem;
    padding-bottom: 0.625rem;
    border-bottom: 1px solid var(--gray-100);
}

.sidebar-left .form-group {
    margin-bottom: 1rem;
}

.sidebar-left .form-group input {
    padding: 0.55rem 0.75rem;
    font-size: 0.85rem;
}

/* ─── SIDEBAR RIGHT ─── */
.sidebar-right {
    width: 420px;
    background: var(--white);
    border-left: 1px solid var(--gray-200);
    padding: 1.25rem;
    overflow-y: auto;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.observations-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.global-observations-input {
    width: 100%;
    flex: 1;
    padding: 0.9rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-family: inherit;
    resize: vertical;
    color: var(--text);
    background: var(--off-white);
    transition: border-color var(--transition), box-shadow var(--transition);
    min-height: 320px;
    line-height: 1.6;
}

.global-observations-input:focus {
    outline: none;
    border-color: var(--blue);
    background: white;
    box-shadow: 0 0 0 3px var(--blue-glow);
}

.observations-info {
    padding: 0.625rem 0.75rem;
    background: var(--accent-dim);
    border-radius: var(--radius);
    border-left: 3px solid var(--accent);
}

.observations-info small {
    font-size: 0.73rem;
    color: var(--gray-600);
    line-height: 1.5;
}

/* ─── CONTENT CENTER ─── */
.content {
    flex: 1;
    padding: 1.25rem;
    overflow-y: auto;
    background: var(--off-white);
}

.questionnaire-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    height: 100%;
}

/* ─── SECTIONS ─── */
.questions-section, .results-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.375rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 1.125rem;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid var(--gray-100);
}

.section-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: var(--blue-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.section-header h2 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.01em;
}

/* ─── PROGRESS ─── */
.progress-container { margin-bottom: 1.125rem; }

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

.progress-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.progress-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--blue);
    font-family: 'DM Mono', monospace;
}

.progress-bar {
    height: 5px;
    background: var(--gray-200);
    border-radius: 99px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--blue), var(--accent));
    border-radius: 99px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── QUESTIONS ─── */
.question-container { margin-bottom: 0.75rem; }

.question {
    margin-bottom: 0;
    padding: 1.125rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    background: white;
    transition: all var(--transition);
    display: none;
}

.question.active {
    display: block;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-glow), var(--shadow-sm);
    animation: questionSlide 0.28s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes questionSlide {
    from { opacity: 0; transform: translateX(12px); }
    to { opacity: 1; transform: translateX(0); }
}

.question.answered {
    display: block;
    border-color: var(--gray-200);
    background: var(--off-white);
    opacity: 0.72;
	padding: 0.35rem 1.125rem;  /* adicione esta linha - reduz o padding vertical */
}

.question-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px; height: 22px;
    border-radius: 6px;
    background: var(--blue);
    color: white;
    font-size: 0.68rem;
    font-weight: 700;
    font-family: 'DM Mono', monospace;
    margin-right: 0.5rem;
    flex-shrink: 0;
    vertical-align: middle;
}

.question h3 {
    font-size: 0.925rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.question-content { margin-top: 0.875rem; }

/* ─── INPUTS ─── */
.input-group {
    margin-bottom: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-group .answer-input {
    flex: 1;
    padding: 0.65rem 0.875rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text);
    background: var(--off-white);
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.input-group .answer-input:focus {
    outline: none;
    border-color: var(--blue);
    background: white;
    box-shadow: 0 0 0 3px var(--blue-glow);
}

.textarea-input { resize: vertical; font-family: inherit; line-height: 1.55; }

/* ─── OBSERVATION ─── */
.observation-group {
    margin-top: 0.875rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--gray-200);
}

.observation-group label {
    display: block;
    font-size: 0.73rem;
    font-weight: 700;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
}

.observation-input {
    width: 100%;
    padding: 0.65rem 0.875rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-family: inherit;
    color: var(--text);
    background: var(--off-white);
    resize: vertical;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
    line-height: 1.5;
}

.observation-input:focus {
    outline: none;
    border-color: var(--accent);
    background: white;
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.conditional-obs {
    margin-top: 0.875rem;
    animation: fadeIn 0.25s ease both;
}

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

/* ─── OPTIONS ─── */
.options {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.option {
    display: flex;
    align-items: center;
    padding: 0.65rem 0.875rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    background: var(--off-white);
    gap: 0.6rem;
}

.option:hover {
    border-color: var(--blue-light);
    background: var(--blue-glow);
}

.option.selected {
    border-color: var(--blue);
    background: rgba(30,111,255,0.06);
}

.option input[type="radio"],
.option input[type="checkbox"] {
    accent-color: var(--blue);
    width: 15px; height: 15px;
    cursor: pointer;
    flex-shrink: 0;
}

.option label {
    cursor: pointer;
    flex: 1;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
}

/* ─── NAVIGATION ─── */
.navigation-buttons {
    display: flex;
    gap: 0.625rem;
    margin-top: 0.875rem;
    align-items: center;
}

.navigation-buttons button {
    width: auto;
    margin-bottom: 0;
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
}

#prev-btn { min-width: 100px; }
#next-btn { flex: 1; }
#finish-btn { flex: 1; }

/* ─── RESULT ─── */
.result-container {
    padding: 0.875rem;
    background: var(--off-white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    min-height: 80px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.result-container h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.result-container .result-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.875rem;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid var(--gray-200);
}

.result-container .result-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.result-container .result-meta-label {
    font-size: 0.67rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-400);
}

.result-container .result-meta-value {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
}

.result-container h4 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-400);
    margin: 0.875rem 0 0.5rem;
}

.result-container ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.result-container li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 0.75rem;
    padding: 0.55rem 0.75rem;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    font-size: 0.8rem;
    align-items: start;
    text-align: left;
}

.result-container li strong {
    font-size: 0.78rem;
    color: var(--blue);
    font-weight: 600;
    white-space: nowrap;
    text-align: left;
}

.result-container li br {
    display: none;
}

.result-container li .answer-text {
    text-align: left;
    word-break: break-word;
}

/* ─── RESULT ACTIONS ─── */
.result-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.875rem;
}

.result-actions button {
    flex: 1;
    margin-bottom: 0;
}

/* ─── COPY BUTTON ─── */
.copy-obs-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.875rem;
    background: var(--off-white);
    color: var(--blue);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.8rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition);
    margin-bottom: 0.625rem;
    width: auto;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.copy-obs-btn:hover {
    background: var(--blue);
    color: white;
    border-color: var(--blue);
    box-shadow: 0 4px 12px rgba(30,111,255,0.25);
    transform: translateY(-1px);
}

.input-group:has(.copy-obs-btn) {
    flex-direction: column;
    align-items: flex-start;
}

.input-group:has(.copy-obs-btn) .answer-input { width: 100%; }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* ─── MISC ─── */
.required { color: var(--danger); margin-left: 2px; }

.error-message {
    color: var(--danger);
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: none;
}
.error-message.show { display: block; }

.input-error { border-color: var(--danger) !important; }
.loading { opacity: 0.6; pointer-events: none; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
    .sidebar-left { width: 240px; }
    .sidebar-right { width: 280px; }
}

@media (max-width: 768px) {
    .main-content { flex-direction: column; }
    .sidebar-left, .sidebar-right {
        width: 100%;
        max-height: 200px;
        border-right: none;
        border-bottom: 1px solid var(--gray-200);
    }
    .sidebar-right {
        border-left: none;
        border-top: 1px solid var(--gray-200);
        order: 3;
    }
    .header-content { padding: 0 1rem; }
    .navigation-buttons { flex-wrap: wrap; }
    .navigation-buttons button { flex: 1; min-width: 120px; }
    .content { padding: 0.875rem; }
    .result-actions { flex-direction: column; }
}
/* Question collapse styles */
.question-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    cursor: pointer;
    user-select: none;
    transition: background-color var(--transition);
    padding: 0.25rem 0;
    border-radius: var(--radius);
}

.question-header:hover {
    background-color: var(--off-white);
}

.question-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--blue);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'DM Mono', monospace;
    flex-shrink: 0;
}

.question h3 {
    font-size: 0.925rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.4;
    flex: 1;
    margin: 0;
}

.collapse-icon {
    font-size: 0.75rem;
    color: var(--gray-400);
    transition: transform var(--transition);
    flex-shrink: 0;
}

.question[data-collapsed="true"] .question-header .collapse-icon {
    transform: rotate(0deg);
}

.question[data-collapsed="false"] .question-header .collapse-icon {
    transform: rotate(180deg);
}

/* Follow-up question styles */
.follow-up-question {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--gray-200);
    animation: fadeIn 0.25s ease both;
}

.follow-up-question label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--navy);
    font-size: 0.85rem;
}

/* Transition for smooth collapse/expand */
.question-content {
    transition: all 0.3s ease;
    overflow: hidden;
}

/* Ensure answered questions still show collapse icon */
.question.answered .question-header {
    opacity: 0.85;
}

.question.answered .question-header:hover {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .question-header {
        flex-wrap: wrap;
    }
    
    .question h3 {
        font-size: 0.85rem;
    }
    
    .collapse-icon {
        margin-left: auto;
    }
}
/* ─── ANSWERED QUESTION: ícone de check no número ─── */
.question.answered .question-number {
    background: var(--success);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.question.answered .question-number::after {
    content: '✓';
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
}

/* ─── NEXT BUTTON: dica visual quando bloqueado ─── */
#next-btn:disabled {
    position: relative;
    cursor: not-allowed;
}

/* ─── FOLLOW-UP QUESTION: animação de entrada ─── */
.follow-up-question {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--gray-200);
    animation: fadeIn 0.25s ease both;
}

.follow-up-question > label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--navy);
    font-size: 0.85rem;
}

/* ─── OPTION: feedback mais forte ao selecionar ─── */
.option.selected {
    border-color: var(--blue);
    background: rgba(30,111,255,0.08);
    box-shadow: 0 0 0 2px var(--blue-glow);
}

/* ─── TOAST (criado via JS) ─── */
#app-toast {
    max-width: 90vw;
}

/* ─── FINISH BUTTON: destaque especial ─── */
#finish-btn {
    background: linear-gradient(135deg, var(--success) 0%, #007a49 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(0, 192, 127, 0.3);
    animation: pulseFinish 1.8s ease-in-out infinite;
}

@keyframes pulseFinish {
    0%, 100% { box-shadow: 0 4px 14px rgba(0, 192, 127, 0.3); }
    50%       { box-shadow: 0 4px 22px rgba(0, 192, 127, 0.55); }
}

#finish-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 192, 127, 0.45);
}