:root {
    --navy: #152543;
    --navy-soft: #24385c;
    --gold: #c89a3e;
    --green: #1faf62;
    --surface: #ffffff;
    --background: #f1f4f9;
    --border: #d7dde7;
    --muted: #667085;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; overflow-x: hidden; background: var(--background); color: var(--navy); font-family: Arial, sans-serif; }
.public-form-shell { width: min(820px, calc(100% - 28px)); margin: 0 auto; padding: 34px 0 60px; }
.public-brand { display: flex; justify-content: center; align-items: center; gap: 12px; margin-bottom: 24px; }
.public-brand div:last-child { display: flex; flex-direction: column; letter-spacing: 2px; }
.public-brand span { color: var(--muted); font-size: 0.72rem; letter-spacing: 0; margin-top: 2px; }
.brand-shield { width: 54px; height: 60px; display: grid; place-items: center; color: #fff; background: var(--navy); border-radius: 24px 24px 28px 28px; font-size: 1.5rem; font-weight: 800; }
.public-form-card, .thank-you-card { background: var(--surface); border-radius: 14px; box-shadow: 0 10px 32px rgba(21,37,67,.10); overflow: hidden; }
.form-intro { padding: 38px 44px 30px; border-bottom: 1px solid var(--border); }
.eyebrow { color: var(--gold); font-size: .75rem; font-weight: 800; letter-spacing: 1.5px; margin: 0 0 8px; }
h1 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.3rem); }
.form-intro > p:last-child { color: var(--muted); line-height: 1.55; margin-bottom: 0; }
form { padding: 12px 44px 40px; }
.field-section { padding: 24px 0; border-bottom: 1px solid #edf0f5; display: grid; gap: 18px; }
.field-section h2 { font-size: 1rem; margin: 0; }
.field-grid { display: grid; gap: 16px; }
.two-columns { grid-template-columns: 1fr 1fr; }
label { display: grid; gap: 7px; font-size: .9rem; font-weight: 700; }
label > span { color: #d33; }
input, select, textarea { width: 100%; min-height: 48px; border: 1px solid #bfc8d6; border-radius: 7px; padding: 12px 13px; background: #fff; color: #17223a; font-family: inherit; font-size: 16px; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(200,154,62,.2); border-color: var(--gold); }
small { color: var(--muted); font-size: .75rem; font-weight: 400; }
.privacy-consent { grid-template-columns: auto 1fr; align-items: start; gap: 10px; margin: 24px 0; color: #475467; font-size: .82rem; line-height: 1.45; }
.privacy-consent input { width: 20px; min-height: 20px; height: 20px; margin: 1px 0 0; }
.privacy-consent span { color: inherit; }
#lead-submit-button { width: 100%; border: 0; border-radius: 7px; background: var(--green); color: #fff; padding: 14px 20px; font-size: 1rem; font-weight: 800; cursor: pointer; }
#lead-submit-button:hover { background: #168c4e; }
#lead-submit-button:disabled { opacity: .65; cursor: wait; }
.submit-note { text-align: center; color: var(--muted); font-size: .75rem; margin: 12px 0 0; }
.form-error { background: #fdecea; color: #a93226; border-radius: 7px; padding: 11px 13px; }
.form-honeypot { position: absolute !important; left: -9999px !important; opacity: 0 !important; }
.thank-you-page { display: grid; place-items: center; padding: 24px; }
.thank-you-card { width: min(560px, 100%); padding: 48px; text-align: center; }
.success-check { width: 72px; height: 72px; display: grid; place-items: center; margin: 0 auto 22px; border-radius: 50%; color: #fff; background: var(--green); font-size: 2.3rem; }
.thank-you-card > p:not(.eyebrow) { color: var(--muted); line-height: 1.6; }
.conversion-reference { margin: 24px 0; padding: 12px; border-radius: 7px; background: #f6f8fb; color: var(--muted); font-size: .82rem; }
.thank-you-card a { color: var(--navy); font-weight: 700; }
@media (max-width: 620px) {
    .public-form-shell { width: 100%; padding: 14px 12px 32px; }
    .public-brand { justify-content: flex-start; margin: 0 4px 14px; gap: 9px; }
    .brand-shield { width: 42px; height: 47px; border-radius: 18px 18px 22px 22px; font-size: 1.15rem; }
    .public-brand div:last-child { font-size: .84rem; letter-spacing: 1.4px; }
    .public-brand span { font-size: .66rem; }
    .public-form-card { border-radius: 11px; box-shadow: 0 5px 18px rgba(21,37,67,.09); }
    .form-intro { padding: 25px 18px 21px; }
    .form-intro > p:last-child { font-size: .9rem; }
    form { padding: 4px 18px 26px; }
    .field-section { padding: 20px 0; gap: 16px; }
    .two-columns { grid-template-columns: 1fr; }
    label { font-size: .88rem; }
    input, select, textarea { min-height: 50px; padding: 13px 12px; }
    textarea { min-height: 92px; }
    .privacy-consent { margin: 20px 0; font-size: .8rem; }
    #lead-submit-button { min-height: 52px; padding: 15px 18px; }
    .thank-you-card { padding: 34px 22px; }
}

@media (max-width: 380px) {
    .public-form-shell { padding-left: 8px; padding-right: 8px; }
    .form-intro, form { padding-left: 15px; padding-right: 15px; }
    h1 { font-size: 1.55rem; }
}
