:root {
    --navy: #10243c;
    --blue: #2563eb;
    --ink: #172b45;
    --muted: #64748b;
    --line: #dce5ef;
    --surface: #f3f7fb;
    --green: #16855b;
}
* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(150deg, #eef4fb, #f9fbfd 45%, #eef6f2);
    color: var(--ink);
    font: 15px/1.6 "Segoe UI", Arial, sans-serif;
}
a { color: var(--blue); text-decoration: none; }
.public-header {
    height: 82px;
    padding: 0 max(24px, calc((100vw - 980px) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.public-brand { display: flex; align-items: center; gap: 12px; color: var(--navy); }
.public-brand > span, .public-brand img { width: 42px; height: 42px; border-radius: 9px; object-fit: contain; }
.public-brand > span { display: grid; place-items: center; background: var(--blue); color: #fff; font-size: 24px; font-weight: 700; }
.public-brand strong { font-size: 19px; line-height: 1.15; }
.public-brand small { display: block; color: var(--muted); font-size: 10px; font-weight: 500; letter-spacing: .3px; }
.company-link { font-size: 13px; font-weight: 600; }
main { width: min(760px, calc(100% - 32px)); max-width: calc(100% - 32px); margin: 44px auto; }
.intro { max-width: 630px; margin: 0 auto 28px; text-align: center; }
.eyebrow, .step-label { display: block; margin-bottom: 8px; color: #55749b; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; }
.intro h1 { margin: 0 0 10px; font-size: 34px; letter-spacing: -.8px; line-height: 1.2; }
.intro p, .muted { color: var(--muted); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; margin: 0 0 22px; }
.steps li { min-width: 0; position: relative; color: #8b99aa; font-size: 12px; text-align: center; }
.steps li::before { content: ""; position: absolute; top: 17px; right: 50%; width: 100%; height: 2px; background: #ccd7e4; }
.steps li:first-child::before { display: none; }
.steps span { position: relative; z-index: 1; width: 35px; height: 35px; margin: 0 auto 7px; display: grid; place-items: center; border: 2px solid #ccd7e4; border-radius: 50%; background: var(--surface); font-weight: 700; }
.steps strong { display: block; }
.steps .current, .steps .done { color: var(--blue); }
.steps .current span { color: #fff; background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 5px #dce8ff; }
.steps .done span, .steps .done::before { color: #fff; background: var(--green); border-color: var(--green); }
.form-card, .support-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 35px #18345110; }
.form-card { width: 100%; padding: 32px; }
.form-card h2 { margin: 0 0 5px; font-size: 22px; }
.form-card form { margin-top: 25px; }
.field { min-width: 0; margin-bottom: 19px; }
.field label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700; }
input, select, textarea { min-width: 0; width: 100%; padding: 11px 13px; color: var(--ink); background: #fff; border: 1px solid #c4d0df; border-radius: 8px; font: inherit; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid #d6e6ff; border-color: var(--blue); }
input[type="file"] { padding: 9px; }
.field small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.field .field-error { color: #b52d2d; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
button, .button { display: inline-flex; align-items: center; justify-content: center; padding: 11px 18px; color: #fff; background: var(--blue); border: 0; border-radius: 8px; cursor: pointer; font: 600 14px "Segoe UI", Arial, sans-serif; }
.form-card > form > button { width: 100%; }
button:hover, .button:hover { filter: brightness(.95); }
button:focus-visible, a:focus-visible { outline: 3px solid #72a8f8; outline-offset: 3px; }
.secondary { color: #315476; background: #edf3fa; }
.text-button { padding: 8px; color: var(--blue); background: transparent; }
.new-customer { margin-top: 28px; padding-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); }
.new-customer small, .support-card small { display: block; color: var(--muted); font-size: 12px; }
.secondary-actions { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.secondary-actions form, .reset-form { margin: 0; }
.otp-input { font-size: 25px; font-variant-numeric: tabular-nums; letter-spacing: 9px; text-align: center; }
.inline-alert { padding: 11px 13px; color: #7c5711; background: #fff7e6; border: 1px solid #f2d69a; border-radius: 8px; }
.support-card { margin-top: 18px; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.whatsapp { background: #148a5c; }
.admin-unavailable { color: var(--muted); font-size: 12px; }
.notice { margin-bottom: 20px; padding: 14px 17px; border: 1px solid; border-radius: 10px; }
.notice.success { color: #216746; background: #eaf8f1; border-color: #bfe5d2; }
.notice.error { color: #992f2f; background: #fff0f0; border-color: #ebc7c7; }
.notice ul { margin: 6px 0 0; padding-left: 20px; }
.submission-success strong, .submission-success span { display: block; }
.back-link { display: inline-block; margin-bottom: 18px; font-size: 13px; font-weight: 600; }
footer { padding: 0 20px 30px; color: var(--muted); font-size: 11px; text-align: center; }
@media (max-width: 620px) {
    .public-header { height: auto; padding: 15px 16px; }
    .company-link { display: none; }
    main { margin: 28px auto; }
    .intro h1 { font-size: 28px; }
    .steps strong { font-size: 10px; line-height: 1.3; }
    .form-card { padding: 23px 19px; }
    .form-grid { grid-template-columns: 1fr; gap: 0; }
    .new-customer, .support-card, .secondary-actions { align-items: stretch; flex-direction: column; }
    .new-customer .button, .support-card .button, .secondary-actions form, .secondary-actions button { width: 100%; }
}
