/* ============================================
   PNAE 2026 - Página de Pesquisa Interativa
   Identidade Visual Lumni
   ============================================ */

/* Importar fonte Outfit */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800&display=swap');

/* Variáveis de Cores */
:root {
    --pnae-orange: #FC7D55;
    --pnae-blue: #083FCF;
    --pnae-blue-light: #E8F0FF;
    --pnae-background: #FAFBFC;
    --pnae-card-bg: #FFFFFF;
    --pnae-text-primary: #1F2937;
    --pnae-text-secondary: #6B7280;
    --pnae-border: #E5E7EB;
    --pnae-error: #EF4444;
    --pnae-success: #10B981;
    --pnae-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --pnae-shadow-lg: 0 10px 25px rgba(8, 63, 207, 0.1);
}

/* Reset e Base */
.pnae-survey-section {
    min-height: 100vh;
    background: var(--pnae-background);
    font-family: 'Nunito', sans-serif;
}

.pnae-survey-section * {
    box-sizing: border-box;
    max-width: 100%;
}

/* Esconder widgets externos na página de pesquisa */
#bricks-component-3CG_y7uNzbst7oOsuKyX1A-wrapper,
[id^="bricks-component-"],
.rdstation-popup-position-bottom_right,
.floating-button,
#drift-widget,
#drift-widget-container {
    display: none !important;
    visibility: hidden !important;
}

/* Header Simples */
.pnae-survey-header {
    position: absolute;
    top: 1rem;
    left: 2rem;
    right: 2rem;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Título no Header */
.survey-main-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.survey-main-title .pnae-text,
.survey-main-title .year-text {
    position: relative;
    display: inline-block;
}

.survey-main-title .pnae-text {
    color: var(--pnae-orange);
}

.survey-main-title .year-text {
    color: var(--pnae-blue);
    font-weight: 600;
}

/* Efeito Hover - Base e Overlay */
.survey-main-title .text-base {
    position: relative;
    z-index: 1;
}

.survey-main-title .text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(circle 0px at 0px 0px, black 0%, black 60%, transparent 100%);
    mask-image: radial-gradient(circle 0px at 0px 0px, black 0%, black 60%, transparent 100%);
    transition: -webkit-mask-image 0.1s ease-out, mask-image 0.1s ease-out;
}

.survey-main-title .pnae-text[data-hover-effect="orange-to-blue"] .text-overlay {
    color: var(--pnae-blue);
}

.survey-main-title .year-text[data-hover-effect="blue-to-orange"] .text-overlay {
    color: var(--pnae-orange);
}

.pnae-logout-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid var(--pnae-border);
    border-radius: 10px;
    color: var(--pnae-text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--pnae-shadow);
}

.pnae-logout-btn:hover {
    background: var(--pnae-blue);
    border-color: var(--pnae-blue);
    color: white;
    box-shadow: 0 4px 12px rgba(8, 63, 207, 0.2);
    transform: translateY(-2px);
}

.pnae-logout-btn svg {
    flex-shrink: 0;
}

/* Main Content */
.pnae-survey-main {
    padding: 2rem 2rem 0rem 2rem;
    position: relative;
}

.pnae-survey-container {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    overflow: visible;
}

/* Survey Pages */
.survey-page {
    background: var(--pnae-card-bg);
    border-radius: 20px;
    padding: 2rem 2rem;
    box-shadow: var(--pnae-shadow-lg);
    animation: fadeIn 0.6s ease-out;
    overflow: hidden;
    word-wrap: break-word;
}

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

/* ============================================
   LOADING STATE
   ============================================ */

.status-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 3rem 0;
}

.loading-spinner {
    width: 60px;
    height: 60px;
}

.spinner {
    animation: rotate 2s linear infinite;
}

.spinner .path {
    stroke: var(--pnae-blue);
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* ============================================
   COMPLETED STATE
   ============================================ */

.status-completed {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
    padding: 2rem 0;
}

.status-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.status-icon.success {
    background: #D1FAE5;
    color: var(--pnae-success);
}

.status-completed h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--pnae-text-primary);
    margin: 0;
}

.status-completed p {
    font-size: 1.125rem;
    color: var(--pnae-text-secondary);
    margin: 0;
    line-height: 1.6;
}

.completion-message {
    max-width: 600px;
}

.submitted-date {
    font-size: 0.875rem !important;
    color: var(--pnae-text-secondary);
    font-style: italic;
    margin-top: 1rem !important;
}

/* ============================================
   CONSENT PAGE
   ============================================ */

.consent-container {
    max-width: 700px;
    margin: 0 auto;
    overflow: visible;
}

.consent-form {
    width: 100%;
    overflow: visible;
}

.consent-intro {
    margin-bottom: 3rem;
}

/* Hero Section */
.consent-hero {
    text-align: center;
    margin-bottom: 1rem;
    animation: fadeIn 0.6s ease-out;
}

.consent-description {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--pnae-text-secondary);
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Features Grid */
.consent-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-card {
    display: flex;
    gap: 1.25rem;
    padding: 1.75rem;
    background: white;
    border: 2px solid var(--pnae-border);
    border-radius: 16px;
    transition: all 0.3s ease;
    overflow: hidden;
    animation: fadeInUp 0.5s ease-out backwards;
}

.feature-card:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.3s;
}

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

.feature-card:hover {
    border-color: var(--pnae-blue);
    box-shadow: 0 8px 24px rgba(8, 63, 207, 0.12);
    transform: translateY(-2px);
}

.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--pnae-blue-light) 0%, #E8F0FF 100%);
    border-radius: 12px;
    color: var(--pnae-blue);
}

.feature-content {
    flex: 1;
    min-width: 0;
}

.feature-content h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--pnae-text-primary);
    margin: 0 0 0.5rem 0;
}

.feature-content p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--pnae-text-secondary);
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.feature-content p strong {
    color: var(--pnae-blue);
    font-weight: 600;
}

.consent-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: white;
    border: 2px solid var(--pnae-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.consent-checkbox:hover {
    border-color: var(--pnae-blue);
    box-shadow: 0 4px 12px rgba(8, 63, 207, 0.1);
}

.consent-checkbox input[type="checkbox"] {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--pnae-blue);
}

.checkbox-label {
    flex: 1;
    line-height: 1.7;
    color: var(--pnae-text-primary);
    font-size: 0.9375rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.consent-info {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--pnae-blue-light);
    border-radius: 8px;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--pnae-text-secondary);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Formulário de Consentimento */
#consent-form {
    margin-top: 2.5rem;
}

#consent-form .form-group {
    margin-bottom: 1.5rem;
}

#consent-form .question-label {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

#consent-form .text-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--pnae-border);
    border-radius: 10px;
    font-size: 0.9375rem;
    font-family: 'Nunito', sans-serif;
    transition: all 0.3s ease;
}

#consent-form .text-input:focus {
    outline: none;
    border-color: var(--pnae-blue);
    box-shadow: 0 0 0 3px rgba(8, 63, 207, 0.1);
}

/* ============================================
   SURVEY WIZARD
   ============================================ */

/* Progress Header */
.survey-progress-header {
    margin-bottom: 2rem;
}

.progress-info {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
    gap: 1rem;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--pnae-blue);
    margin: 0;
}

.question-count {
    font-size: 0.875rem;
    color: var(--pnae-text-secondary);
    font-weight: 600;
    margin: 0;
}

/* Progress Bars */
.progress-bar-container {
    margin-bottom: 0;
    margin-top: 0.75rem;
}

.progress-label-top {
    font-size: 0.6875rem;
    color: var(--pnae-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--pnae-blue) 0%, var(--pnae-orange) 100%);
    border-radius: 12px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(8, 63, 207, 0.3);
}

.total-progress {
    height: 14px;
}

.progress-percentage {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.6875rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.3px;
}

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

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

.question-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--pnae-text-primary);
    line-height: 1.4;
    margin: 0 0 1rem 0;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}

.question-hint {
    font-size: 0.875rem;
    color: var(--pnae-text-secondary);
    margin-bottom: 0.5rem;
}

.question-info {
    background: var(--pnae-blue-light);
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--pnae-text-primary);
    line-height: 1.6;
    margin-top: 1rem;
}

.question-input-container {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   INPUT STYLES
   ============================================ */

/* Text Inputs */
.text-input,
.textarea-input,
.select-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--pnae-border);
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Nunito', sans-serif;
    color: var(--pnae-text-primary);
    transition: all 0.3s ease;
    background: white;
}

.text-input:focus,
.textarea-input:focus,
.select-input:focus {
    outline: none;
    border-color: var(--pnae-blue);
    box-shadow: 0 0 0 4px var(--pnae-blue-light);
}

.textarea-input {
    resize: vertical;
    min-height: 120px;
}

.percentage-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 180px;
}

.percentage-input {
    width: 100%;
    text-align: right;
    -moz-appearance: textfield;
}

.percentage-input::-webkit-outer-spin-button,
.percentage-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.percentage-suffix {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--pnae-text-secondary);
    flex-shrink: 0;
}

.char-count {
    text-align: right;
    font-size: 0.75rem;
    color: var(--pnae-text-secondary);
    margin-top: 0.5rem;
}

/* Radio Buttons */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    background: white;
    border: 2px solid var(--pnae-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.radio-option input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 1rem;
    cursor: pointer;
    accent-color: var(--pnae-blue);
}

.radio-option:has(input:checked) {
    border-color: var(--pnae-blue);
    background: var(--pnae-blue-light);
    box-shadow: 0 2px 8px rgba(8, 63, 207, 0.15);
}

.radio-label {
    flex: 1;
    font-size: 1rem;
    color: var(--pnae-text-primary);
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 1.5;
}

/* Checkbox Buttons */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-option {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    background: white;
    border: 2px solid var(--pnae-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.checkbox-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 1rem;
    cursor: pointer;
    accent-color: var(--pnae-blue);
}

.checkbox-option:has(input:checked) {
    border-color: var(--pnae-blue);
    background: var(--pnae-blue-light);
    box-shadow: 0 2px 8px rgba(8, 63, 207, 0.15);
}

.checkbox-label {
    flex: 1;
    font-size: 1rem;
    color: var(--pnae-text-primary);
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 1.5;
}

/* Other Option */
.other-option {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.other-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--pnae-border);
    border-radius: 8px;
    font-size: 0.875rem;
}

.other-input:focus {
    outline: none;
    border-color: var(--pnae-blue);
}

/* Scale Input */
.scale-container {
    padding: 4rem 1rem 2rem 1rem;
    position: relative;
}

.scale-input {
    width: 100%;
    height: 8px;
    border-radius: 10px;
    background: var(--pnae-border);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.scale-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--pnae-blue);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(8, 63, 207, 0.3);
    transition: all 0.3s ease;
}

.scale-input::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(8, 63, 207, 0.4);
}

.scale-input::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--pnae-blue);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(8, 63, 207, 0.3);
    transition: all 0.3s ease;
}

.scale-input::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(8, 63, 207, 0.4);
}

.scale-value {
    position: absolute;
    top: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    font-weight: 700;
    color: var(--pnae-blue);
    transition: left 0.15s ease;
    pointer-events: none;
    white-space: nowrap;
}

.scale-labels {
    display: flex;
    position: relative;
    font-size: 0.875rem;
    color: var(--pnae-text-secondary);
    margin-top: 1rem;
}

.scale-labels span {
    position: absolute;
    transform: translateX(-50%);
}

.scale-labels span:first-child {
    left: 0%;
    transform: translateX(0);
}

.scale-labels span:nth-child(2) {
    left: 50%;
}

.scale-labels span:last-child {
    left: 100%;
    transform: translateX(-100%);
}

/* ============================================
   NAVIGATION
   ============================================ */

.survey-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
}

.btn-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-previous {
    background: white;
    color: var(--pnae-text-primary);
    border: 2px solid var(--pnae-border);
}

.btn-previous:hover {
    border-color: var(--pnae-blue);
    color: var(--pnae-blue);
    transform: translateX(-4px);
}

.btn-next,
.btn-finish {
    background: var(--pnae-blue);
    color: white;
    box-shadow: 0 4px 12px rgba(8, 63, 207, 0.3);
    margin-left: auto;
}

.btn-next:hover,
.btn-finish:hover {
    background: #0633A8;
    box-shadow: 0 6px 16px rgba(8, 63, 207, 0.4);
    transform: translateX(4px);
}

.btn-finish {
    background: var(--pnae-success);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-finish:hover {
    background: #059669;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

/* ============================================
   AUTO-SAVE INDICATOR
   ============================================ */

.autosave-indicator {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: #43A047;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(67, 160, 71, 0.4);
    z-index: 1000;
    animation: slideInUp 0.3s ease-out;
    pointer-events: none;
}

.autosave-indicator.show {
    animation: slideInUp 0.3s ease-out;
}

.autosave-indicator.hide {
    animation: slideOutDown 0.3s ease-out forwards;
}

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

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

.autosave-indicator svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    padding: 4px;
    animation: checkmark 0.5s ease-out;
}

.autosave-indicator svg path,
.autosave-indicator svg polyline {
    stroke: #43A047;
    stroke-width: 3;
}

@keyframes checkmark {
    0% {
        transform: scale(0) rotate(-45deg);
    }
    50% {
        transform: scale(1.2) rotate(0deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

/* ============================================
   OPTIONAL SECTION INTRO
   ============================================ */

.optional-intro-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem 2rem;
    animation: fadeInUp 0.5s ease-out;
}

.optional-intro-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 2rem auto;
    background: linear-gradient(135deg, #E8F0FF 0%, #DBEAFE 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(8, 63, 207, 0.15);
    animation: pulse 2s ease-in-out infinite;
}

.optional-intro-icon svg {
    color: var(--pnae-blue);
    width: 48px;
    height: 48px;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 16px rgba(8, 63, 207, 0.15);
    }
    50% {
        box-shadow: 0 4px 24px rgba(8, 63, 207, 0.25);
    }
}

.optional-intro-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--pnae-text-primary);
    margin: 0 0 1.5rem 0;
    line-height: 1.3;
}

.optional-intro-description {
    font-size: 1.125rem;
    color: var(--pnae-text-secondary);
    line-height: 1.7;
    margin: 0 0 2rem 0;
}

.optional-intro-time {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--pnae-blue-light);
    border-radius: 12px;
    color: var(--pnae-blue);
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 3rem;
}

.optional-intro-time svg {
    flex-shrink: 0;
}

.optional-intro-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.optional-intro-actions .btn-nav {
    min-width: 200px;
}

/* Botão Pular (estilo igual ao Anterior) */
.optional-intro-actions #skip-optional {
    background: white;
    color: var(--pnae-text-primary);
    border: 2px solid var(--pnae-border);
}

.optional-intro-actions #skip-optional:hover {
    border-color: var(--pnae-blue);
    color: var(--pnae-blue);
    transform: translateX(-4px);
}

/* Botão Participar (estilo igual ao Próximo) */
.optional-intro-actions #answer-optional {
    background: var(--pnae-blue);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(8, 63, 207, 0.3);
}

.optional-intro-actions #answer-optional:hover {
    background: #0633A8;
    box-shadow: 0 6px 16px rgba(8, 63, 207, 0.4);
    transform: translateY(-2px);
}

/* ============================================
   FORM ELEMENTS
   ============================================ */

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

.question-label {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--pnae-text-primary);
    margin-bottom: 0.75rem;
}

.form-hint {
    display: block;
    font-size: 0.875rem;
    color: var(--pnae-text-secondary);
    margin-bottom: 0.75rem;
}

.consent-info {
    background: var(--pnae-blue-light);
    padding: 1rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--pnae-text-primary);
    line-height: 1.7;
    margin-top: 1rem;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}

/* ============================================
   PARTNERS FOOTER
   ============================================ */

.survey-partners {
    margin-top: 4rem;
    padding: 2rem 0 1.5rem 0;
    border-top: 2px solid var(--pnae-border);
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
}

.partners-label {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--pnae-text-secondary);
    margin-bottom: 1.5rem;
}

.partners-carousel {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 0.75rem 0;
    mask-image: linear-gradient(
        to right,
        transparent,
        black 10%,
        black 90%,
        transparent
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent,
        black 10%,
        black 90%,
        transparent
    );
}

.partners-track {
    display: flex;
    gap: 3rem;
    animation: scroll 30s linear infinite;
    width: fit-content;
}

.partners-track:hover {
    animation-play-state: paused;
}

.partner-logo {
    flex-shrink: 0;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.3s ease;
}

.partner-logo:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

.partner-logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Form Message */
.form-message {
    padding: 1rem;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    display: none;
    margin-bottom: 2rem;
    animation: slideDown 0.3s ease-out;
}

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

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

.form-message.error {
    background: #FEE2E2;
    color: var(--pnae-error);
    border: 1px solid #FECACA;
}

.form-message.success {
    background: #D1FAE5;
    color: var(--pnae-success);
    border: 1px solid #A7F3D0;
}

/* Validation Error */
.validation-error {
    background: #FEE2E2;
    color: var(--pnae-error);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-top: 1rem;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    75% {
        transform: translateX(10px);
    }
}

.text-input.error,
.textarea-input.error,
.select-input.error {
    border-color: var(--pnae-error);
}

/* ============================================
   BUTTONS
   ============================================ */

.pnae-btn {
    padding: 1rem 3rem;
    border: none;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

.pnae-btn-primary {
    background: var(--pnae-blue);
    color: white;
    box-shadow: 0 4px 12px rgba(8, 63, 207, 0.3);
}

.pnae-btn-primary:hover:not(:disabled) {
    background: #0633A8;
    box-shadow: 0 6px 16px rgba(8, 63, 207, 0.4);
    transform: translateY(-2px);
}

.pnae-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablets e Desktop - Cards em grid */
@media (min-width: 769px) {
    .consent-features {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .consent-container {
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    .consent-description {
        font-size: 1.125rem;
    }
    
    .feature-card {
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
    }
    
    .feature-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .feature-content h3 {
        font-size: 1rem;
    }
    
    .feature-content p {
        font-size: 0.875rem;
    }

    /* Consent Form Mobile */
    .consent-checkbox {
        padding: 1.25rem;
        gap: 0.875rem;
    }

    .checkbox-label {
        font-size: 0.875rem;
    }

    .consent-info {
        padding: 0.875rem;
        font-size: 0.8125rem;
    }

    #consent-form .text-input {
        padding: 0.75rem;
        font-size: 0.875rem;
    }

    /* Partners Mobile */
    .survey-partners {
        margin-top: 3rem;
        padding: 1.5rem 0 1rem 0;
    }

    .partners-label {
        font-size: 0.6875rem;
        margin-bottom: 1.25rem;
    }

    .partner-logo {
        height: 40px;
    }

    .partners-track {
        gap: 2rem;
    }

    /* Autosave Indicator Mobile */
    .autosave-indicator {
        bottom: 1rem;
        left: 1rem;
        padding: 0.875rem 1.25rem;
        font-size: 0.875rem;
    }

    .autosave-indicator svg {
        width: 20px;
        height: 20px;
    }

    .pnae-survey-header {
        top: 0.75rem;
        right: 1rem;
    }

    .pnae-logout-btn {
        padding: 0.625rem 1rem;
        font-size: 0.8125rem;
    }

    .pnae-survey-main {
        padding: 1.5rem 1rem 3rem 1rem;
    }

    .survey-page {
        padding: 2rem 1.5rem;
    }

    .consent-intro h2 {
        font-size: 2rem;
    }

    .consent-text {
        padding: 1.5rem;
    }

    .question-text {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 1rem;
    }

    .question-count {
        font-size: 0.8125rem;
    }

    .survey-navigation {
        flex-direction: column;
    }

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

    .btn-next,
    .btn-finish {
        margin-left: 0;
    }

    .optional-content {
        margin: 1rem;
        padding: 2rem 1.5rem;
    }

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

    .btn-secondary,
    .btn-primary {
        width: 100%;
    }

    /* Optional Intro Mobile */
    .optional-intro-container {
        padding: 2rem 1.5rem;
    }

    .optional-intro-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 1.5rem;
    }

    .optional-intro-icon svg {
        width: 40px;
        height: 40px;
    }

    .optional-intro-title {
        font-size: 1.5rem;
    }

    .optional-intro-description {
        font-size: 1rem;
    }

    .optional-intro-actions {
        flex-direction: column;
    }

    .optional-intro-actions .btn-nav {
        width: 100%;
        min-width: auto;
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }

    /* Header Responsivo */
    .pnae-survey-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        left: 1rem;
        right: 1rem;
        top: 0.75rem;
    }

    .survey-main-title {
        font-size: 1.25rem;
    }

    .pnae-logout-btn {
        padding: 0.625rem 1rem;
        font-size: 0.8125rem;
        flex-shrink: 0;
    }
}

/* Telas muito pequenas */
@media (max-width: 480px) {
    .survey-main-title {
        font-size: 1.125rem;
        gap: 0.375rem;
    }

    .pnae-logout-btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.75rem;
    }

    .pnae-logout-btn svg {
        width: 16px;
        height: 16px;
    }

    .pnae-survey-header {
        left: 0.75rem;
        right: 0.75rem;
        top: 0.5rem;
    }

    .section-title {
        font-size: 0.9375rem;
    }

    .question-count {
        font-size: 0.8125rem;
    }

    .progress-label-top {
        font-size: 0.625rem;
    }

    .progress-bar {
        height: 8px;
    }

    .total-progress {
        height: 12px;
    }

    .autosave-indicator {
        bottom: 0.75rem;
        left: 0.75rem;
        padding: 0.75rem 1rem;
        font-size: 0.8125rem;
    }

    .autosave-indicator span {
        display: none;
    }

    .autosave-indicator svg {
        width: 20px;
        height: 20px;
    }
}

/* ============================================
   ACESSIBILIDADE
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Visible */
.radio-option:focus-within,
.checkbox-option:focus-within,
.btn-nav:focus-visible,
.pnae-btn:focus-visible {
    outline: 2px solid var(--pnae-blue);
    outline-offset: 2px;
}
