/* ═══════════════════════════════════════════════════════════════
   AutoMart Digital — Components
   Funnel · Forms · Alerts · Success state
   ═══════════════════════════════════════════════════════════════ */

/* ─── Funnel container ──────────────────────────────────────── */
.funnel { padding-top: 40px; }

.funnel-card {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    border-radius: var(--r-lg);
}

.funnel-head {
    text-align: center;
    margin-bottom: 1.5rem;
}
.funnel-head h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.35rem;
}
.funnel-head p { color: var(--muted); font-size: 0.95rem; }

/* ─── Multi-step form ───────────────────────────────────────── */
.step {
    display: none;
    animation: fade 0.35s var(--ease);
}
.step.active { display: block; }

@keyframes fade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: none; }
}

.stepnum {
    font-family: var(--f-mono);
    font-size: 0.75rem;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.step label {
    display: block;
    margin-bottom: 1rem;
    font-size: 0.88rem;
    color: var(--muted);
}

.step input,
.step select,
.step textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    margin-top: 0.4rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.step input:focus,
.step select:focus,
.step textarea:focus {
    outline: none;
    border-color: var(--secondary);
    background: rgba(0,212,255,0.05);
    box-shadow: 0 0 0 3px rgba(0,212,255,0.1);
}

.step select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238A9AB8' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 2.5rem;
    background-color: rgba(255,255,255,0.03);
}

.step textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}
@media (min-width: 520px) { .row { grid-template-columns: 1fr 1fr; } }

.step-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.consent {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    font-size: 0.85rem;
    background: rgba(255,255,255,0.03);
    padding: 0.85rem;
    border-radius: var(--r-sm);
    color: var(--muted);
}
.consent input {
    margin-top: 0.2rem;
    width: auto;
    flex-shrink: 0;
    accent-color: var(--secondary);
}

/* ─── Success state ─────────────────────────────────────────── */
.success {
    text-align: center;
    padding: 1rem 0;
}
.success-badge {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--success), #34D399);
    color: #04101E;
}
.success h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.success p  { color: var(--muted); }

/* ─── Alerts ────────────────────────────────────────────────── */
.alert {
    padding: 0.85rem 1rem;
    border-radius: var(--r-sm);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}
.alert-error   { background: rgba(239,68,68,0.12);  border-color: rgba(239,68,68,0.4);  color: #FCA5A5; }
.alert-success { background: rgba(16,185,129,0.12); border-color: rgba(16,185,129,0.4); color: #6EE7B7; }