:root {
    --bg: #0c1222;
    --bg-card: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.12);
    --text: #f4f6fb;
    --muted: #9aa3b5;
    --accent: #2dd4bf;
    --accent-dim: #14b8a6;
    --danger: #f87171;
    --radius: 16px;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    font-size: 16px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100dvh;
    font-family: "DM Sans", system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
    background-image:
        radial-gradient(ellipse 120% 80% at 50% -20%, rgba(45, 212, 191, 0.18), transparent),
        radial-gradient(ellipse 80% 50% at 100% 50%, rgba(59, 130, 246, 0.12), transparent),
        radial-gradient(ellipse 60% 40% at 0% 80%, rgba(168, 85, 247, 0.1), transparent);
    line-height: 1.5;
}

.wrap {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: 1.25rem 1rem 2.5rem;
}

.brand {
    text-align: center;
    margin-bottom: 1.5rem;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(45, 212, 191, 0.12);
    border: 1px solid rgba(45, 212, 191, 0.35);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 0.75rem;
}

.brand h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand p {
    margin: 0.5rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.35rem 1.15rem;
    box-shadow: var(--shadow);
}

.field {
    margin-bottom: 1.1rem;
}

.field:last-of-type {
    margin-bottom: 0;
}

label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: #e2e8f0;
}

label .req {
    color: var(--accent);
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text);
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border);
    border-radius: 12px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input::placeholder,
textarea::placeholder {
    color: #64748b;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(45, 212, 191, 0.55);
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.15);
}

input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.row-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.choice {
    flex: 1;
    min-width: calc(50% - 0.375rem);
}

.choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.choice label {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0.75rem 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.choice input:focus-visible + label {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.choice input:checked + label {
    background: rgba(45, 212, 191, 0.2);
    border-color: rgba(45, 212, 191, 0.5);
    color: #99f6e4;
}

.hint {
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 0.35rem;
}

#dependentes-extra {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--border);
}

#plano-qual-wrap {
    margin-top: 0.65rem;
}

.age-grid {
    display: grid;
    gap: 0.65rem;
}

.age-item label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--muted);
}

.btn {
    width: 100%;
    margin-top: 1.25rem;
    padding: 0.95rem 1rem;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    color: #042f2e;
    background: linear-gradient(135deg, #5eead4, var(--accent-dim));
    border: none;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(45, 212, 191, 0.35);
    transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(45, 212, 191, 0.4);
}

.btn:active {
    transform: translateY(0);
}

.alert {
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.alert-error {
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.35);
    color: #fecaca;
}

.success-card {
    text-align: center;
    padding: 2rem 1.25rem;
}

.success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: rgba(45, 212, 191, 0.2);
    border: 2px solid rgba(45, 212, 191, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.success-card h2 {
    margin: 0 0 0.75rem;
    font-size: 1.35rem;
}

.success-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.footer-note {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.75rem;
    color: #64748b;
}

@media (min-width: 480px) {
    .brand h1 {
        font-size: 1.65rem;
    }

    .card {
        padding: 1.5rem 1.35rem;
    }
}
