/* Formulario de calificación para leads de Instagram. */
:root {
    color-scheme: light;
    --lead-ink: #173B3B;
    --lead-muted: #65817E;
    --lead-line: #D5E8E5;
    --lead-soft: #EAF7F4;
    --lead-accent: #0E9B91;
    --lead-accent-dark: #08756E;
    --lead-bg: #F3F9F8;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body { margin: 0; background: var(--lead-bg); color: var(--lead-ink); font-family: 'Noto Sans', sans-serif; line-height: 1.5; }
button, input { font: inherit; }
.lead-shell { width: min(100% - 32px, 600px); margin: 0 auto; padding: 24px 0 32px; }
.lead-brand { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 42px; }
.lead-brand a { color: var(--lead-accent); font: 800 1.35rem/1 'Figtree', sans-serif; text-decoration: none; letter-spacing: -.04em; }
.lead-brand a span { color: #059669; }
.lead-brand > span { color: var(--lead-muted); font-size: .72rem; }
.lead-card, .lead-success { background: #fff; border: 1px solid var(--lead-line); border-radius: 24px; box-shadow: 0 18px 50px rgba(20, 86, 80, .09); padding: clamp(24px, 6vw, 42px); }
.lead-intro { margin-bottom: 28px; }
.lead-kicker { color: var(--lead-accent-dark); font-size: .76rem; font-weight: 700; letter-spacing: .04em; margin: 0 0 10px; }
h1 { font: 800 clamp(1.8rem, 5vw, 2.5rem)/1.1 'Figtree', sans-serif; letter-spacing: -.035em; margin: 0 0 12px; }
.lead-intro > p:last-child, .lead-success > p:not(.lead-kicker) { color: var(--lead-muted); margin: 0; }
.lead-progress { background: #E4EFED; border-radius: 99px; height: 7px; overflow: hidden; }
.lead-progress-fill { background: var(--lead-accent); border-radius: inherit; display: block; height: 100%; transition: width .25s ease; width: 33.333%; }
.lead-step-count { color: var(--lead-muted); font-size: .76rem; margin: 9px 0 28px; }
.lead-error { background: #FFF4F2; border: 1px solid #F4C5BD; border-radius: 10px; color: #A33D31; font-size: .875rem; margin-bottom: 20px; padding: 10px 12px; }
fieldset { border: 0; margin: 0; min-width: 0; padding: 0; }
legend { font: 700 clamp(1.25rem, 4vw, 1.6rem)/1.2 'Figtree', sans-serif; margin-bottom: 5px; padding: 0; }
.lead-hint { color: var(--lead-muted); font-size: .9rem; margin: 0 0 18px; }
.lead-options { display: grid; gap: 9px; }
.lead-option { align-items: center; border: 1px solid var(--lead-line); border-radius: 13px; cursor: pointer; display: flex; gap: 12px; min-height: 54px; padding: 12px 14px; transition: border-color .15s, background .15s; }
.lead-option:hover { border-color: #91D2CA; }
.lead-option:has(input:checked) { background: var(--lead-soft); border-color: var(--lead-accent); }
.lead-option input { height: 20px; margin: 0; opacity: 0; position: absolute; width: 20px; }
.lead-option span { flex: 1; font-size: .94rem; }
.lead-option i { border: 2px solid #9DB7B4; border-radius: 50%; display: block; height: 21px; position: relative; width: 21px; }
.lead-option input[type=checkbox] + span + i { border-radius: 6px; }
.lead-option:has(input:checked) i { background: var(--lead-accent); border-color: var(--lead-accent); }
.lead-option:has(input:checked) i::after { border: solid #fff; border-width: 0 2px 2px 0; content: ''; height: 10px; left: 6px; position: absolute; top: 3px; transform: rotate(45deg); width: 5px; }
.lead-option input[type=radio] + span + i::after { background: #fff; border-radius: 50%; content: ''; height: 9px; left: 4px; opacity: 0; position: absolute; top: 4px; width: 9px; }
.lead-option input[type=radio]:checked + span + i::after { opacity: 1; }
.lead-contact-fields { border-top: 1px solid var(--lead-line); display: grid; gap: 7px; margin-top: 24px; padding-top: 20px; }
.lead-contact-fields label { font-size: .78rem; font-weight: 700; margin-top: 5px; }
.lead-contact-fields input { background: #fff; border: 1px solid var(--lead-line); border-radius: 10px; color: var(--lead-ink); min-height: 46px; outline: none; padding: 10px 12px; width: 100%; }
.lead-contact-fields input::placeholder { color: #78908D; opacity: 1; }
.lead-contact-fields input:focus, .lead-option:has(input:focus-visible) { border-color: var(--lead-accent); box-shadow: 0 0 0 3px rgba(14, 155, 145, .16); }
.lead-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 28px; }
.lead-button { border: 0; border-radius: 10px; cursor: pointer; font-weight: 700; min-height: 46px; padding: 11px 18px; }
.lead-button-primary { background: var(--lead-accent); color: #fff; }
.lead-button-primary:hover { background: var(--lead-accent-dark); }
.lead-button-back { background: transparent; color: var(--lead-muted); margin-right: auto; }
.lead-button:focus-visible { outline: 3px solid rgba(14, 155, 145, .35); outline-offset: 2px; }
.lead-footnote { color: var(--lead-muted); font-size: .75rem; margin: 18px 0 0; text-align: center; }
.lead-success { text-align: center; }
.success-mark { align-items: center; background: var(--lead-soft); border-radius: 50%; color: var(--lead-accent-dark); display: flex; font-size: 1.8rem; height: 58px; justify-content: center; margin: 0 auto 22px; width: 58px; }
.lead-success .lead-button { display: inline-flex; margin-top: 26px; text-decoration: none; }
.campo-trampa { height: 1px; left: -9999px; overflow: hidden; position: absolute; top: auto; width: 1px; }
[hidden] { display: none !important; }
@media (max-width: 480px) { .lead-brand { margin-bottom: 28px; } .lead-brand > span { display: none; } .lead-shell { width: min(100% - 20px, 600px); } .lead-actions { flex-wrap: wrap; } .lead-button { flex: 1; } .lead-button-back { flex: 0 0 auto; } }
@media (prefers-reduced-motion: reduce) { .lead-progress-fill, .lead-option { transition: none; } }
