/* ============================================================
   VARIÁVEIS E FONTES
   ============================================================ */
:root {
    --primary: #6366f1;       /* Indigo Principal */
    --primary-hover: #4f46e5;
    --success: #10b981;       /* Esmeralda */
    --bg-dark: #020617;       /* Slate 950 */
    --card-bg: rgba(15, 23, 42, 0.7); 
    --border: rgba(255, 255, 255, 0.08);
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --error: #ef4444;
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --font-titles: 'Syne', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* BACKGROUND COM IMAGEM E OPACIDADE */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url('../background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.12; 
    z-index: -2;
    pointer-events: none;
}

.bg-glow {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* NAVBAR */
.navbar {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
    background: rgba(2, 6, 23, 0.8);
    position: sticky; top: 0; z-index: 100;
}
.container-nav {
    max-width: 1100px; margin: 0 auto; display: flex;
    justify-content: space-between; align-items: center; padding: 0 20px;
}
.brand { text-decoration: none; display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 42px; height: 42px; border-radius: 10px; overflow: hidden; }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-name { font-family: var(--font-titles); font-weight: 800; color: #fff; font-size: 1.1rem; }

.nav-steps { display: flex; align-items: center; gap: 15px; }
.nav-step { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 600; color: var(--text-dim); }
.nav-step span { width: 24px; height: 24px; border-radius: 6px; background: rgba(255,255,255,0.05); display: grid; place-items: center; font-size: 10px; }
.nav-step.active { color: var(--primary); }
.nav-step.active span { background: var(--primary); color: white; box-shadow: 0 0 10px rgba(99, 102, 241, 0.3); }
.step-arrow { font-size: 0.7rem; color: rgba(255,255,255,0.05); }

/* HERO */
.hero-section { text-align: center; padding: 60px 20px 40px; }
.status-pill { 
    display: inline-flex; align-items: center; gap: 8px; background: rgba(16, 185, 129, 0.1);
    color: var(--success); padding: 6px 14px; border-radius: 100px; font-size: 0.75rem; 
    font-weight: 700; text-transform: uppercase; margin-bottom: 20px; border: 1px solid rgba(16, 185, 129, 0.2);
}
.status-pill .dot { width: 6px; height: 6px; background: var(--success); border-radius: 50%; box-shadow: 0 0 10px var(--success); }
.hero-section h1 { font-family: var(--font-titles); font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 15px; }
.hero-section h1 span { color: var(--primary); }
.hero-section p { color: var(--text-dim); max-width: 500px; margin: 0 auto; line-height: 1.6; }

/* CARD & FORM */
.content { max-width: 720px; margin: 0 auto; padding: 0 20px 100px; }
.card-glass { background: var(--card-bg); backdrop-filter: blur(16px); border: 1px solid var(--border); border-radius: 24px; overflow: hidden; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); }

.card-header { padding: 35px 40px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); }
.header-info h3 { font-family: var(--font-titles); font-size: 1.3rem; margin-bottom: 4px; }
.header-info p { color: var(--text-dim); font-size: 0.9rem; }
.price-tag { text-align: right; background: rgba(0,0,0,0.2); padding: 10px 20px; border-radius: 12px; border: 1px solid var(--border); }
.price-tag small { display: block; font-size: 0.65rem; text-transform: uppercase; color: var(--text-dim); font-weight: 700; }
.price-tag h2 { color: var(--primary); font-family: var(--font-titles); font-size: 1.8rem; }

.modern-form { padding: 40px; }
.input-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 25px; }
.input-group.full { grid-column: 1 / -1; }
.input-group label { display: block; font-size: 0.85rem; font-weight: 600; color: #e2e8f0; margin-bottom: 10px; }
.input-field { position: relative; display: flex; align-items: center; }
.input-field i { position: absolute; left: 16px; color: var(--text-dim); transition: 0.3s; }
.input-field input { 
    width: 100%; background: rgba(0,0,0,0.2); border: 1px solid var(--border);
    padding: 14px 18px 14px 45px; border-radius: 12px; color: #fff; font-size: 1rem; transition: 0.3s;
}
.input-field input:focus { outline: none; border-color: var(--primary); background: rgba(99, 102, 241, 0.05); box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1); }
.input-field input:focus + i { color: var(--primary); }

/* BOTAO */
.btn-primary {
    width: 100%; padding: 18px; background: linear-gradient(135deg, var(--primary), #4f46e5);
    color: white; border: none; border-radius: 16px; font-family: var(--font-titles);
    font-weight: 800; font-size: 1.1rem; cursor: pointer; transition: 0.3s;
    display: flex; align-items: center; justify-content: center; gap: 12px;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3); }

/* ALERTAS */
.alert { margin-bottom: 20px; padding: 15px; border-radius: 12px; display: none; gap: 10px; font-size: 0.9rem; align-items: center; }
.alert.show { display: flex; }
.alert-error { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.2); color: #fca5a5; }

.field-error { font-size: 0.75rem; color: var(--error); margin-top: 5px; height: 14px; display: block; }

.card-footer-badges { padding: 20px; background: rgba(0,0,0,0.15); display: flex; justify-content: center; gap: 30px; border-top: 1px solid var(--border); }
.badge-item { display: flex; align-items: center; gap: 8px; font-size: 0.75rem; color: var(--text-dim); }
.badge-item i { color: var(--success); }

.main-footer { text-align: center; padding: 40px; color: var(--text-dim); font-size: 0.85rem; border-top: 1px solid var(--border); }

/* LOADER */
.loader { width: 22px; height: 22px; border: 3px solid rgba(255,255,255,0.2); border-top-color: #fff; border-radius: 50%; display: none; animation: spin 0.8s linear infinite; }
.loading .loader { display: block; }
.loading .btn-text { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 650px) {
    .input-grid { grid-template-columns: 1fr; }
    .card-header { flex-direction: column; text-align: center; gap: 20px; }
    .nav-steps { display: none; }
}