@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

:root {
    --green: #00D26A;
    --green-dark: #00B85C;
    --green-glow: rgba(0, 210, 106, 0.25);
    --green-subtle: rgba(0, 210, 106, 0.07);
    --cyan: #00E5FF;
    --purple: #B388FF;
    --bg: #060606;
    --bg-card: rgba(255, 255, 255, 0.95);
    --bg-input: rgba(245, 245, 245, 0.9);
    --text: #111111;
    --text-heading: #000000;
    --text-secondary: #555555;
    --text-muted: #999999;
    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.15);
    --radius: 24px;
    --radius-sm: 16px;
    --shadow: 0 8px 50px rgba(0, 0, 0, 0.35);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== AURORA BACKGROUND ===== */
.aurora {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0;
    animation: auroraFadeIn 2s ease forwards;
}

.aurora-blob:nth-child(1) {
    width: 60vw; height: 60vw;
    top: -20%; left: -10%;
    background: radial-gradient(circle, rgba(0, 210, 106, 0.15), transparent 70%);
    animation: auroraMove1 20s ease-in-out infinite, auroraFadeIn 2s ease forwards;
}

.aurora-blob:nth-child(2) {
    width: 50vw; height: 50vw;
    top: 30%; right: -15%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.08), transparent 70%);
    animation: auroraMove2 25s ease-in-out infinite, auroraFadeIn 2s 0.5s ease forwards;
}

.aurora-blob:nth-child(3) {
    width: 45vw; height: 45vw;
    bottom: -10%; left: 20%;
    background: radial-gradient(circle, rgba(179, 136, 255, 0.06), transparent 70%);
    animation: auroraMove3 22s ease-in-out infinite, auroraFadeIn 2s 1s ease forwards;
}

.aurora-blob:nth-child(4) {
    width: 35vw; height: 35vw;
    top: 50%; left: 50%;
    background: radial-gradient(circle, rgba(0, 210, 106, 0.08), transparent 70%);
    animation: auroraMove4 18s ease-in-out infinite, auroraFadeIn 2s 1.5s ease forwards;
}

@keyframes auroraFadeIn { to { opacity: 1; } }
@keyframes auroraMove1 { 0%,100%{transform:translate(0,0) scale(1)} 33%{transform:translate(10vw,5vh) scale(1.1)} 66%{transform:translate(-5vw,10vh) scale(0.9)} }
@keyframes auroraMove2 { 0%,100%{transform:translate(0,0) scale(1)} 33%{transform:translate(-8vw,-5vh) scale(1.15)} 66%{transform:translate(5vw,8vh) scale(0.95)} }
@keyframes auroraMove3 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(8vw,-8vh) scale(1.2)} }
@keyframes auroraMove4 { 0%,100%{transform:translate(-50%,-50%) scale(1)} 50%{transform:translate(-50%,-50%) scale(1.4)} }

/* ===== PARTICLE CANVAS ===== */
#particles {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* ===== MOUSE TRAIL CANVAS ===== */
#mouseTrail {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* ===== PROGRESS ===== */
.progress-wrap {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(6, 6, 6, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.progress-bar {
    height: 3px;
    background: linear-gradient(90deg, var(--green), var(--cyan), var(--green));
    background-size: 200% 100%;
    animation: progressShimmer 3s linear infinite;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px var(--green-glow), 0 0 60px rgba(0, 210, 106, 0.1);
    width: 0%;
}

@keyframes progressShimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ===== HERO ===== */
.hero {
    position: relative;
    padding: 4rem 1.5rem 1rem;
    text-align: center;
    z-index: 2;
}

.hero-logo {
    position: relative;
    font-size: 2.6rem;
    font-weight: 900;
    letter-spacing: -1.5px;
    margin-bottom: 0.6rem;
    animation: heroIn 1s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes heroIn {
    from { opacity: 0; transform: translateY(20px); filter: blur(10px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.hero-logo .white { color: #fff; }
.hero-logo .green {
    color: var(--green);
    text-shadow: 0 0 40px var(--green-glow);
}
.hero-logo .asterisk {
    color: var(--green);
    font-size: 1.6rem;
    vertical-align: super;
    text-shadow: 0 0 20px var(--green-glow);
}

.hero-sub {
    position: relative;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
    animation: heroIn 1s 0.2s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* ===== STEP INDICATOR ===== */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.75rem 1.5rem 0.25rem;
    position: relative;
    z-index: 2;
    max-width: 480px;
    margin: 0 auto;
    animation: heroIn 1s 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.step-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    transition: var(--transition);
    flex-shrink: 0;
}

.step-dot.active {
    background: var(--green);
    box-shadow: 0 0 15px var(--green-glow), 0 0 40px rgba(0,210,106,0.15);
    transform: scale(1.6);
}

.step-dot.done {
    background: var(--green);
    opacity: 0.4;
}

.step-line {
    flex: 1;
    height: 2px;
    background: rgba(255,255,255,0.06);
    transition: background 0.6s, box-shadow 0.6s;
}

.step-line.done {
    background: rgba(0, 210, 106, 0.3);
    box-shadow: 0 0 8px rgba(0, 210, 106, 0.1);
}

.step-counter {
    text-align: center;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.25);
    font-weight: 700;
    margin-top: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
}

/* ===== WIZARD ===== */
.wizard {
    max-width: 640px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem 2rem;
    position: relative;
    z-index: 2;
}

.wizard-viewport { overflow: hidden; }

.wizard-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.step {
    min-width: 100%;
    padding: 0.5rem 0;
    opacity: 0;
    transform: scale(0.9) translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.step.active {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

/* ===== CARD (GLASS WHITE) ===== */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius);
    padding: 2.25rem;
    box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,0.1) inset;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* Subtle gradient border glow */
.card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius);
    padding: 1px;
    background: linear-gradient(135deg, rgba(0,210,106,0.2), transparent 40%, transparent 60%, rgba(0,229,255,0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
}

.card:hover::before { opacity: 1; }

.card:hover {
    box-shadow: var(--shadow), 0 0 60px rgba(0, 210, 106, 0.06);
    transform: translateY(-2px);
}

.card.error {
    box-shadow: 0 0 0 2px rgba(255, 68, 68, 0.5), var(--shadow);
    animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes shake {
    0%,100%{transform:translateX(0)} 20%{transform:translateX(-8px)} 40%{transform:translateX(8px)} 60%{transform:translateX(-5px)} 80%{transform:translateX(5px)}
}

/* ===== Q NUMBER ===== */
.q-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    background: linear-gradient(135deg, rgba(0,210,106,0.1), rgba(0,210,106,0.05));
    color: var(--green);
    border-radius: 14px;
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(0, 210, 106, 0.15);
}

.q-number svg {
    width: 22px; height: 22px;
    stroke: var(--green);
    stroke-width: 2;
    fill: none;
}

.card h2 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    color: var(--text-heading);
}

.required-star {
    color: #FF4444;
    font-weight: 800;
}

/* ===== OPTIONS ===== */
.options, .radio-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1.15rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    overflow: hidden;
    background: rgba(250, 250, 250, 0.6);
}

.option-label:hover {
    border-color: var(--border-hover);
    color: var(--text);
    background: rgba(245, 245, 245, 0.8);
    transform: translateX(4px);
}

.option-label:active { transform: scale(0.985); }

.option-label:has(input:checked) {
    border-color: var(--green);
    color: var(--text-heading);
    background: rgba(0, 210, 106, 0.06);
    box-shadow: 0 0 0 1px var(--green), 0 4px 20px rgba(0, 210, 106, 0.08);
    transform: translateX(4px);
}

.option-label input[type="checkbox"],
.option-label input[type="radio"] {
    width: 18px; height: 18px;
    accent-color: var(--green);
    flex-shrink: 0;
}

/* ===== INPUTS ===== */
.field-group { margin-bottom: 0.85rem; }

.field-group label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 0.45rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.text-input, .textarea-input {
    width: 100%;
    padding: 0.9rem 1.1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    transition: var(--transition);
    background: var(--bg-input);
    color: var(--text);
}

.text-input::placeholder, .textarea-input::placeholder { color: #BBB; }

.text-input:focus, .textarea-input:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(0, 210, 106, 0.1), 0 4px 20px rgba(0, 210, 106, 0.05);
    background: #FFFFFF;
}

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

/* ===== CONDITIONAL ===== */
.conditional-field {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s ease, padding 0.4s ease, margin 0.4s ease;
    margin-top: 0; padding-top: 0;
}

.conditional-field.visible {
    max-height: 300px;
    opacity: 1;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.conditional-field label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.conditional-field .text-input { margin-bottom: 0.6rem; }

/* ===== CONSENT ===== */
.consent-box {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1.2rem;
    background: linear-gradient(135deg, rgba(0,210,106,0.04), rgba(0,229,255,0.02));
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 210, 106, 0.1);
}

.consent-box input {
    width: 20px; height: 20px;
    accent-color: var(--green);
    margin-top: 2px;
    flex-shrink: 0;
}

.consent-box span {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== NAV BUTTONS ===== */
.step-nav {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
}

.btn {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 16px;
    font-size: 0.88rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn svg {
    width: 18px; height: 18px;
    stroke-width: 2.5;
    fill: none;
}

.btn-back {
    background: rgba(0,0,0,0.04);
    color: var(--text-muted);
    flex: 0 0 56px;
}
.btn-back svg { stroke: var(--text-muted); }
.btn-back:hover { background: rgba(0,0,0,0.08); color: var(--text-secondary); }
.btn-back:hover svg { stroke: var(--text-secondary); }

.btn-next, .btn-submit {
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 210, 106, 0.2);
}
.btn-next svg, .btn-submit svg { stroke: #000; }

.btn-next::after, .btn-submit::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 200%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.8s;
}

.btn-next:hover::after, .btn-submit:hover::after { left: 100%; }

.btn-next:hover, .btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 210, 106, 0.3), 0 0 80px rgba(0, 210, 106, 0.08);
}

/* ===== ERROR ===== */
.error-msg {
    color: #E53935;
    font-size: 0.78rem;
    font-weight: 600;
    margin-top: 0.5rem;
    display: none;
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 2.5rem 1rem;
    color: rgba(255,255,255,0.2);
    font-size: 0.72rem;
    position: relative;
    z-index: 2;
    letter-spacing: 0.5px;
}
footer a { color: var(--green); text-decoration: none; }

@media (max-width: 480px) {
    .hero { padding: 3rem 1rem 0.75rem; }
    .hero-logo { font-size: 2rem; }
    .card { padding: 1.75rem; }
    .wizard { padding: 0.5rem 1rem 2rem; }
}
