/* ========================================
   QUIZ ALLAN EXPERT - DESIGN ULTRA PREMIUM
   Cores Profissionais + Visual Impactante
   ======================================== */

/* Google Fonts - Space Grotesk (impactante e moderna) */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* ==================== VARIÁVEIS ==================== */
:root {
    /* Paleta Principal - Verde */
    --primary: #22c55e;
    --primary-dark: #16a34a;
    --primary-light: #4ade80;

    /* Acentos */
    --accent: #22c55e;
    --accent-light: #4ade80;
    --success: #22c55e;
    --success-light: #4ade80;

    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    --gradient-dark: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    --gradient-gold: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    --gradient-success: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);

    /* Background */
    --bg-dark: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f0fdf4;

    /* Texto */
    --text-primary: #1a1a1a;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;

    /* Bordas */
    --border-color: #e5e7eb;
    --border-glow: rgba(34, 197, 94, 0.5);

    /* Sombras */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 25px 80px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 60px rgba(34, 197, 94, 0.2);
    --shadow-gold: 0 10px 40px rgba(34, 197, 94, 0.2);

    /* Dimensões */
    --container-width: 520px;
    --border-radius: 20px;
    --border-radius-sm: 12px;
}

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ==================== BACKGROUND CLEAN ==================== */
.bg-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

/* Gradiente de fundo sutil */
.bg-effects::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 80%, rgba(34, 197, 94, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(34, 197, 94, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(34, 197, 94, 0.03) 0%, transparent 40%);
    animation: gradientMove 20s ease-in-out infinite;
}

/* Grid de linhas sutil */
.bg-effects::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0,0,0,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.5;
}

@keyframes gradientMove {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(2%, 2%) rotate(1deg); }
    50% { transform: translate(0, 4%) rotate(0deg); }
    75% { transform: translate(-2%, 2%) rotate(-1deg); }
}

/* Sem partículas no tema claro */
body::before {
    display: none;
}

/* ==================== CONTAINER ==================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* ==================== HEADER (Removido) ==================== */
.header {
    display: none;
}

/* ==================== PROGRESS BAR ==================== */
.progress-container {
    margin-bottom: 25px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.progress-container.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.progress-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    padding: 4px;
    border: 1px solid var(--border-color);
}

.progress-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 50px;
    width: 0%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

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

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.85rem;
}

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

.progress-percent {
    color: var(--primary-light);
    font-weight: 700;
}

/* ==================== CARDS ==================== */
.card {
    background: #ffffff;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    padding: 35px 30px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

/* ==================== QUIZ STEPS ==================== */
.quiz-step {
    display: none;
    animation: stepFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.quiz-step.active {
    display: block;
}

@keyframes stepFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Animação para o card ao entrar */
.quiz-step.active .card {
    animation: cardEnter 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes cardEnter {
    from {
        opacity: 0;
        transform: translateY(40px);
        box-shadow: none;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        box-shadow: var(--shadow-lg);
    }
}

/* ==================== INTRO SCREEN ==================== */
.intro-screen {
    text-align: center;
}

.intro-card {
    padding: 40px 30px;
}

.intro-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.08) 100%);
    border: 1px solid rgba(34, 197, 94, 0.4);
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 0.8rem;
    color: #16a34a;
    font-weight: 700;
    margin-bottom: 28px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: dotPulse 1.5s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.intro-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 18px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.intro-title .highlight {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.intro-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.7;
}

/* Benefits List */
.benefits-list {
    list-style: none;
    text-align: left;
    margin-bottom: 35px;
    padding: 0;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.benefit-check {
    width: 24px;
    height: 24px;
    background: var(--gradient-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.benefit-check svg {
    width: 14px;
    height: 14px;
    stroke-width: 3;
}

/* CTA Section */
.intro-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.btn-glow {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 18px 40px;
}

.btn-arrow {
    width: 20px;
    height: 20px;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn-glow:hover .btn-arrow {
    transform: translateX(5px);
}

.time-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 4px;
}

.intro-time {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.lock-icon {
    width: 14px;
    height: 14px;
}

/* Lucide Icons Global */
.block-icon {
    width: 22px;
    height: 22px;
    color: var(--primary-light);
}

.option-icon {
    width: 20px;
    height: 20px;
    color: var(--primary-light);
    flex-shrink: 0;
}

.scale-icon {
    width: 24px;
    height: 24px;
    color: var(--text-muted);
}

.option-card .icon svg {
    width: 40px;
    height: 40px;
    color: var(--primary-light);
}

.btn svg {
    width: 18px;
    height: 18px;
}

.success-icon svg {
    width: 64px;
    height: 64px;
    color: var(--accent-light);
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 35px;
    border: none;
    border-radius: var(--border-radius-sm);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 8px 30px rgba(34, 197, 94, 0.3);
    width: 100%;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(34, 197, 94, 0.4);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover:not(:disabled)::before {
    left: 100%;
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary-light);
    color: var(--text-primary);
}

.btn.pulse {
    animation: btnPulse 2s ease-in-out infinite;
}

@keyframes btnPulse {
    0%, 100% { box-shadow: 0 8px 30px rgba(34, 197, 94, 0.3); }
    50% { box-shadow: 0 8px 50px rgba(34, 197, 94, 0.5); }
}

.btn-container {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.btn-container .btn-secondary {
    width: auto;
    padding: 16px 25px;
}

.btn-container .btn-primary {
    flex: 1;
}

/* ==================== BLOCK TITLE ==================== */
.block-title {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: var(--bg-card-hover);
    border-radius: var(--border-radius-sm);
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
}

.block-title svg {
    width: 22px;
    height: 22px;
    color: var(--primary-light);
}

.block-title h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==================== QUESTIONS ==================== */
.question h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-primary);
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.question-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    background: var(--gradient-primary);
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ==================== OPTIONS GRID (Cards) ==================== */
.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.options-grid.cols-4 {
    grid-template-columns: repeat(2, 1fr);
}

.option-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 25px 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.option-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.15);
}

.option-card.selected {
    background: rgba(34, 197, 94, 0.1);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.option-card .check-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 26px;
    height: 26px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.option-card .check-icon svg {
    width: 14px;
    height: 14px;
    color: white;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.option-card.selected .check-icon {
    background: var(--gradient-success);
    border-color: var(--success);
    animation: checkBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.option-card.selected .check-icon svg {
    opacity: 1;
    transform: scale(1);
}

@keyframes checkBounce {
    0% { transform: scale(0.5); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Animação de seleção no card */
.option-card.selected {
    animation: cardSelected 0.4s ease;
}

@keyframes cardSelected {
    0% { transform: translateY(0); }
    25% { transform: translateY(-8px); }
    50% { transform: translateY(-4px); }
    100% { transform: translateY(-4px); }
}

.option-card .icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.option-card .label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

/* ==================== OPTIONS LIST ==================== */
.options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 18px 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.option-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: translateX(5px);
}

.option-item.selected {
    background: rgba(34, 197, 94, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.15);
}

.option-item .radio {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
}

.option-item.selected .radio {
    border-color: var(--success);
    background: var(--gradient-success);
    animation: radioBounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 3px 12px rgba(16, 185, 129, 0.4);
}

.option-item.selected .radio::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    animation: radioCheck 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s forwards;
}

.option-item.selected .radio::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: var(--success);
    font-size: 10px;
    font-weight: bold;
    animation: checkAppear 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s forwards;
}

@keyframes radioBounce {
    0% { transform: scale(0.8); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

@keyframes radioCheck {
    0% { transform: translate(-50%, -50%) scale(0); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

@keyframes checkAppear {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* Animação de seleção no item */
.option-item.selected {
    animation: itemSelected 0.3s ease;
}

@keyframes itemSelected {
    0% { transform: translateX(0); }
    30% { transform: translateX(10px); }
    100% { transform: translateX(5px); }
}

.option-item .option-icon {
    width: 22px;
    height: 22px;
    color: var(--primary-light);
    flex-shrink: 0;
}

.option-item .option-text {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* ==================== SCALE ==================== */
.scale-container {
    margin-top: 10px;
}

.scale-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.scale-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.scale-label svg {
    width: 28px;
    height: 28px;
}

.scale-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.scale-option {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.scale-option:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    color: var(--text-primary);
    transform: scale(1.1);
}

.scale-option.selected {
    background: var(--gradient-success);
    border-color: var(--success);
    color: white;
    transform: scale(1.15);
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.4);
    animation: scaleSelected 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleSelected {
    0% { transform: scale(0.8); }
    50% { transform: scale(1.25); }
    100% { transform: scale(1.15); }
}

/* ==================== FORM ==================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.form-group label .required {
    color: #ef4444;
}

.form-group input {
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-card-hover);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.15);
}

/* ==================== ANIMATED CHECK OVERLAY ==================== */
.check-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.check-overlay.active {
    opacity: 1;
    visibility: visible;
}

.check-animation {
    position: relative;
    width: 120px;
    height: 120px;
}

.check-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--gradient-success);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 60px rgba(16, 185, 129, 0.5);
    transform: scale(0);
    animation: checkCircleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.check-circle svg {
    width: 60px;
    height: 60px;
    color: white;
    stroke-width: 3;
    opacity: 0;
    transform: scale(0);
    animation: checkIconIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s forwards;
}

.check-circle-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--success);
    opacity: 0;
    animation: checkRingPulse 0.8s ease-out 0.2s forwards;
}

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

@keyframes checkIconIn {
    0% { opacity: 0; transform: scale(0) rotate(-45deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes checkRingPulse {
    0% { width: 120px; height: 120px; opacity: 0.8; }
    100% { width: 180px; height: 180px; opacity: 0; }
}

/* Loading spinner no overlay */
.loading-spinner-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.spinner-ring {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(34, 197, 94, 0.1);
    border-top: 4px solid var(--primary);
    border-right: 4px solid var(--primary-light);
    border-radius: 50%;
    animation: spinnerRotate 1s linear infinite;
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.2);
}

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

.loading-text-overlay {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    animation: loadingTextPulse 1s ease-in-out infinite;
}

@keyframes loadingTextPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ==================== INITIAL LOADING SCREEN ==================== */
.initial-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.initial-loading.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
    padding: 40px;
}

.loader-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: loaderIconPulse 2s ease-in-out infinite;
    box-shadow: var(--shadow-glow);
}

.loader-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

@keyframes loaderIconPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 40px rgba(34, 197, 94, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 0 60px rgba(34, 197, 94, 0.5); }
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 25px;
}

.loader-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 20px;
    animation: loaderTextPulse 1.5s ease-in-out infinite;
}

@keyframes loaderTextPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.loader-progress {
    width: 200px;
    height: 6px;
    background: var(--bg-card);
    border-radius: 10px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.loader-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--gradient-primary);
    border-radius: 10px;
    transition: width 0.3s ease;
    position: relative;
}

.loader-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 1s infinite;
}

/* ==================== LOADING ==================== */
.loading {
    display: none;
    text-align: center;
}

.loading.active {
    display: block;
}

.loading .card {
    padding: 60px 30px;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 25px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 500;
}

/* ==================== SUCCESS SCREEN ==================== */
.success-screen {
    text-align: center;
}

.success-icon {
    margin-bottom: 20px;
    animation: bounce 1s ease infinite;
}

.success-icon svg {
    width: 72px;
    height: 72px;
    color: var(--accent-light);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.success-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.success-title .name {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.success-subtitle {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 1rem;
}

.score-card {
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-glow);
}

.score-value {
    font-size: 4rem;
    font-weight: 900;
    color: white;
    line-height: 1;
    margin-bottom: 5px;
}

.score-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
}

.success-message {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.success-message strong {
    color: var(--accent-light);
}

/* WhatsApp Button */
.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--gradient-success);
    color: white;
    text-decoration: none;
    padding: 18px 35px;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    font-size: 1.1rem;
    width: 100%;
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.4);
    transition: all 0.3s ease;
    animation: whatsappPulse 2s ease-in-out infinite;
}

.whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(16, 185, 129, 0.5);
}

@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 10px 40px rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 10px 60px rgba(16, 185, 129, 0.6); }
}

.whatsapp-btn svg {
    width: 24px;
    height: 24px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 600px) {
    .container {
        padding: 12px;
    }

    .card {
        padding: 25px 18px;
        border-radius: 16px;
    }

    .intro-card {
        padding: 30px 20px;
    }

    .intro-badge {
        font-size: 0.7rem;
        padding: 8px 16px;
        letter-spacing: 1.5px;
    }

    .intro-title {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .intro-subtitle {
        font-size: 0.95rem;
    }

    .benefits-list li {
        font-size: 0.9rem;
        padding: 10px 0;
    }

    .benefit-check {
        width: 22px;
        height: 22px;
        font-size: 0.7rem;
    }

    .btn {
        padding: 14px 25px;
        font-size: 0.95rem;
    }

    .btn-glow {
        padding: 16px 30px;
        font-size: 0.95rem;
    }

    .question h2 {
        font-size: 1.05rem;
        flex-direction: column;
        gap: 8px;
    }

    .question-number {
        min-width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }

    .options-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .options-grid.cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .option-card {
        padding: 18px 15px;
    }

    .option-card .icon {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }

    .option-card .label {
        font-size: 0.9rem;
    }

    .option-item {
        padding: 14px 12px;
        gap: 12px;
    }

    .option-item .option-icon {
        font-size: 1.2rem;
    }

    .option-item .option-text {
        font-size: 0.9rem;
    }

    .scale-options {
        gap: 6px;
    }

    .scale-option {
        width: 38px;
        height: 38px;
        font-size: 0.85rem;
        border-radius: 10px;
    }

    .block-title {
        padding: 10px 14px;
        margin-bottom: 20px;
    }

    .block-title span {
        font-size: 1.1rem;
    }

    .block-title h3 {
        font-size: 0.8rem;
    }

    .form-group input {
        padding: 14px 16px;
        font-size: 0.95rem;
    }

    .btn-container {
        flex-direction: column;
        gap: 10px;
    }

    .btn-container .btn-secondary {
        width: 100%;
        order: 2;
    }

    .btn-container .btn-primary {
        order: 1;
    }

    .success-title {
        font-size: 1.4rem;
    }

    .score-card {
        padding: 25px 20px;
    }

    .score-value {
        font-size: 3rem;
    }

    .score-label {
        font-size: 0.85rem;
    }

    .success-message {
        font-size: 0.9rem;
    }

    .whatsapp-btn {
        padding: 16px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 380px) {
    .intro-title {
        font-size: 1.4rem;
    }

    .scale-option {
        width: 34px;
        height: 34px;
        font-size: 0.8rem;
    }
}

/* ==================== EXTRAS ==================== */

/* Seleção de texto */
::selection {
    background: var(--primary);
    color: white;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Focus visible */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Animação de entrada global */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: slideUp 0.6s ease-out;
}
