:root {
    --bg-color: #f5f5f5;
    --card-bg: rgba(255, 255, 255, 0.95);
    --card-border: rgba(0, 0, 0, 0.08);
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --accent: #0066ff;
    --accent-glow: rgba(0, 102, 255, 0.2);
    --input-bg: rgba(0, 0, 0, 0.03);
    --input-focus-border: #0066ff;

    --font-main: 'Inter', system-ui, -apple-system, sans-serif;

    --transition-speed: 0.3s;
    --anim-duration: 280ms;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Gradient Colorido */
.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 107, 107, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(147, 51, 234, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(59, 130, 246, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 90% 10%, rgba(236, 72, 153, 0.25) 0%, transparent 50%),
        #f5f5f5;
    filter: blur(80px);
}

.background-noise {
    display: none;
}

/* Container */
.main-container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Progress Bar */
.progress-container {
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width 0.5s ease;
    box-shadow: 0 0 8px var(--accent-glow);
}

.step-indicator {
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 10px;
}

/* Card Minimalista */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    transition: opacity 0.3s ease;
}

@media (max-width: 480px) {
    .main-container {
        padding: 10px;
        width: 96%;
    }

    .card {
        padding: 24px 20px;
        min-height: 60vh;
        /* Taller on mobile for better feel */
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* Typography */
h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

p.subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    margin-top: -10px;
}

/* Form Steps */
.step {
    display: none;
    animation-fill-mode: forwards;
}

.step.active {
    display: block;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(-20px);
    }
}

.animate-in {
    animation: slideIn var(--anim-duration) ease-out forwards;
}

.animate-out {
    animation: slideOut var(--anim-duration) ease-in forwards;
}

.shake {
    animation: shake 0.6s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

/* Input Styles with Floating Labels */
.input-group {
    position: relative;
    margin-bottom: 25px;
}

input,
select {
    width: 100%;
    padding: 16px 0;
    font-size: 1.2rem;
    color: var(--text-primary);
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(0, 0, 0, 0.15);
    outline: none;
    border-radius: 0;
    transition: border-color 0.3s ease;
}

input:focus,
select:focus {
    border-bottom-color: var(--accent);
}

.input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--accent-glow);
}

input:focus~.input-border,
select:focus~.input-border {
    width: 100%;
}

label {
    position: absolute;
    top: 16px;
    left: 0;
    font-size: 1.1rem;
    color: var(--text-secondary);
    pointer-events: none;
    transition: 0.3s ease all;
}

input:focus~label,
input:not(:placeholder-shown)~label,
select:focus~label,
select:valid~label {
    top: -10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

input.error,
select.error {
    border-bottom-color: #ef4444;
}

/* Honeypot */
.honeypot {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
}

/* Choices Grid */
.choices-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.choice-card {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 18px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.choice-card:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.choice-card:active {
    transform: scale(0.98);
}

.choice-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    cursor: pointer;
}

.choice-content {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.choice-title {
    font-size: 1.1rem;
    font-weight: 500;
}

.check-icon {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.choice-card input:checked+.choice-content .check-icon {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.15);
}

.choice-card input:checked+.choice-content .check-icon::after {
    content: '✓';
    font-size: 13px;
    color: white;
    font-weight: bold;
}

.choice-card input:checked~.choice-content {
    /* styling for selected text if needed */
}

.choice-card:has(input:checked) {
    background: rgba(0, 102, 255, 0.08);
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.15);
}

/* Navigation & Button */
.navigation-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    gap: 15px;
}

/* Mobile Sticky Bottom for Buttons - only on small screens */
@media (max-width: 480px) {
    .navigation-area {
        position: sticky;
        bottom: 0;
        background: inherit;
        /* Transparent/blur trick might be needed or just keep it relative inside card */
        /* Actually user asked for sticky button at footer of card. */
        padding-top: 20px;
        z-index: 10;
        backdrop-filter: blur(10px);
        /* Enhance visibility if content scrolls under */
        margin-bottom: -10px;
        /* offset padding */
        padding-bottom: 10px;
    }
}

.nav-btn {
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.3s;
    font-family: inherit;
}

.nav-btn:hover {
    color: var(--text-primary);
}

.nav-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

/* --- BOTÃO CTA MINIMALISTA --- */
.cta-button {
    position: relative;
    width: 100%;
    max-width: 320px;
    height: 56px;
    background: var(--accent);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-sizing: border-box;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px var(--accent-glow);
}

/* Texto */
.cta-button span {
    position: relative;
    z-index: 2;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #ffffff;
}

/* Efeito hover (desktop) */
@media (hover: hover) {
    .cta-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px var(--accent-glow);
        background: #0052cc;
    }
}

/* Efeito clique */
.cta-button:active {
    transform: scale(0.98);
}

/* Brilho animado passando */
.cta-button::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 120%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transition: left 0.6s ease;
}

.cta-button:hover::after,
.cta-button.glow-effect::after {
    left: 120%;
}

/* Pulse automático */
@keyframes pulse-anim {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

.cta-button.pulse {
    animation: pulse-anim 2.5s infinite;
}

/* Responsive Button */
@media (max-width: 480px) {
    .cta-button {
        width: 100%;
        max-width: 100%;
        height: 52px;
    }

    .cta-button span {
        font-size: 15px;
    }
}

.cta-link {
    display: flex;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
    color: black;
    width: fit-content;
}

/* Motivation Message */
.motivation-msg {
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 10px;
    font-weight: 600;
}

.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.highlight-text {
    color: var(--text-secondary);
    margin-top: 10px;
    font-size: 0.9rem;
}

.spacer-20 {
    height: 20px;
}

/* --- PATCH: destravar seleção dos cards --- */

/* 1) o card precisa ser clicável */
.choices-grid .choice-card {
    position: relative;
    display: block;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* 2) o input vira uma camada invisível por cima do card inteiro */
.choices-grid .choice-card>input[type="radio"] {
    position: absolute;
    inset: 0;
    /* top/right/bottom/left = 0 */
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    /* invisível, mas clicável */
    z-index: 3;
    /* fica acima do visual */
    cursor: pointer;
    pointer-events: auto;
}

/* 3) o conteúdo visual NÃO pode bloquear clique */
.choices-grid .choice-card .choice-content,
.choices-grid .choice-card .choice-content * {
    position: relative;
    z-index: 2;
    pointer-events: none;
    /* clique passa pro input */
}

/* 4) caso exista algum pseudo-elemento decorativo bloqueando */
.choices-grid .choice-card::before,
.choices-grid .choice-card::after,
.choices-grid .choice-card .choice-content::before,
.choices-grid .choice-card .choice-content::after {
    pointer-events: none;
}

/* 5) feedback visual quando selecionado */
.choices-grid .choice-card:has(input:checked) {
    outline: 2px solid var(--accent);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.15);
    transform: translateY(-2px);
    transition: 0.2s ease;
}

/* Fallback para navegadores sem :has() */
.choice-card.selected {
    outline: 2px solid var(--accent);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.15);
    transform: translateY(-2px);
    transition: 0.2s ease;
}