:root {
    --ink: #17141c;
    --text: #514b57;
    --muted: #746d79;
    --brand: #5b2d82;
    --brand-dark: #432164;
    --brand-deep: #1d0d2b;
    --brand-strong: #2a143d;
    --brand-soft: #efe6f7;
    --purple: #5b2d82;
    --soft: #faf7fc;
    --surface-soft: #f6f3f8;
    --line: #e8e3eb;
    --white: #fff;
    font-family: "Avenir Next", "Avenir", "Avenir Text", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--soft); }
button, input, select { font: inherit; }

.page-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(300px, .82fr) minmax(520px, 1.18fr); }
.brand-panel { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: space-between; padding: 48px clamp(32px, 5vw, 80px); color: var(--white); background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand-dark) 55%, var(--brand) 100%); overflow: hidden; }
.brand-panel::before { content: ""; position: absolute; width: 230px; height: 230px; left: -105px; top: 26%; border-radius: 50%; background: #eadcf5; opacity: .1; }
.brand-panel::after { content: ""; position: absolute; width: 380px; height: 380px; right: -170px; bottom: 8%; border: 70px solid rgba(234, 220, 245, .13); border-radius: 50%; }
.logo-link, .brand-copy, .brand-note { position: relative; z-index: 1; }
.logo-link { display: block; width: 190px; }
.logo { display: block; width: 190px; height: auto; filter: brightness(0) invert(1); }
.brand-copy { max-width: 560px; }
.brand-copy h1 { margin: 12px 0 20px; font-size: clamp(2.25rem, 4.2vw, 4.6rem); line-height: 1.02; letter-spacing: -.045em; }
.brand-copy p { max-width: 520px; font-size: 1.12rem; line-height: 1.65; color: #efe2f8; }
.eyebrow, .step { margin: 0; color: var(--brand); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.brand-panel .eyebrow { color: #eadcf5; }
.brand-note { margin: 0; color: #eadcf5; font-size: .88rem; font-weight: 700; }

.form-panel { display: grid; place-items: center; min-width: 0; padding: 56px clamp(24px, 6vw, 92px); background: var(--white); }
#contato-form, .thank-you { width: min(100%, 720px); }
.form-header { margin-bottom: 34px; }
.form-header h2, .thank-you h2 { margin: 10px 0 8px; font-size: clamp(1.75rem, 2.6vw, 2.45rem); line-height: 1.12; letter-spacing: -.035em; }
.form-header > p:not(.step), .thank-you > p:not(.step) { margin: 0; color: var(--muted); line-height: 1.6; }
.save-status { display: block; min-height: 20px; margin-top: 12px; color: var(--muted); font-size: .82rem; }
.save-status.saving { color: #815f00; }
.save-status.saved { color: #087a4b; }
.save-status.error, [data-error] { color: #c5003f; }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.field { display: block; font-size: .9rem; font-weight: 700; }
.field > span, legend > span { color: var(--brand); }
.field-full { grid-column: 1 / -1; }
.field > input, .field > select { margin-top: 8px; }
input, select { width: 100%; height: 52px; padding: 0 15px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--white); outline: none; transition: border-color .18s, box-shadow .18s; }
input:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(91, 45, 130, .12); }
input.invalid, select.invalid { border-color: var(--brand); }
.field small { display: block; min-height: 16px; margin-top: 8px; font-weight: 400; }
.solutions { margin: 32px 0 24px; padding: 28px 0 0; border: 0; }
.solutions legend { padding: 0; font-size: 1rem; font-weight: 800; }
.solutions > p { margin: -5px 0 16px; color: var(--muted); font-size: .86rem; }
.solution-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.solution { position: relative; display: grid; grid-template-columns: 18px minmax(0, 1fr); align-content: center; align-items: center; column-gap: 12px; min-height: 86px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .18s, background .18s, transform .18s; }
.solution:hover { transform: translateY(-1px); border-color: var(--brand-soft); }
.solution:has(input:checked) { border-color: var(--brand); background: var(--soft); }
.solution input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand); }
.solution span { display: grid; min-width: 0; align-content: start; gap: 8px; }
.solution strong { font-size: .9rem; }
.solution small { color: var(--muted); font-size: .76rem; font-weight: 400; line-height: 1.35; }
.group-error { display: block; min-height: 16px; margin-top: 8px; }
.submit-button { width: 100%; height: 54px; border: 0; border-radius: 12px; color: var(--white); background: var(--brand); font-weight: 800; cursor: pointer; transition: background .18s, transform .18s; }
.submit-button:hover { background: var(--brand-dark); transform: translateY(-1px); }
.submit-button:disabled { opacity: .72; cursor: wait; transform: none; }
.privacy { margin: 16px auto 0; max-width: 610px; color: var(--muted); font-size: .76rem; line-height: 1.55; text-align: center; }
.privacy a, .thank-you a { color: var(--ink); text-decoration-color: var(--brand); text-underline-offset: 3px; }

.thank-you { text-align: center; animation: rise .45s ease both; }
.success-mark { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 24px; border-radius: 50%; color: var(--white); background: var(--brand); font-size: 2rem; font-weight: 800; box-shadow: 0 14px 32px rgba(91, 45, 130, .24); }
.thank-you .step { margin-top: 4px; }
.thank-you > p:not(.step) { max-width: 540px; margin: 0 auto 26px; }
.thank-you a { font-weight: 800; }
[hidden] { display: none !important; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

@media (max-width: 900px) {
    .page-shell { grid-template-columns: 1fr; }
    .brand-panel { position: relative; height: auto; min-height: 360px; padding: 34px 24px 48px; gap: 62px; }
    .brand-copy h1 { font-size: clamp(2.15rem, 9vw, 3.7rem); }
    .brand-note { display: none; }
    .form-panel { padding: 42px 20px 64px; }
}

@media (max-width: 560px) {
    .field-grid, .solution-grid { grid-template-columns: 1fr; }
    .field-full { grid-column: auto; }
    .brand-panel::after { width: 250px; height: 250px; border-width: 46px; }
    .form-header h2 { font-size: 1.75rem; }
}
