:root {
    --wine: #7b0b2b;
    --wine-dark: #5d071f;
    --wine-soft: #f6e9ed;
    --gold: #bd8e47;
    --ink: #29232a;
    --muted: #756c73;
    --line: #e7dde0;
    --surface: #ffffff;
    --background: #f5f2ef;
    --success: #17714b;
    --danger: #b42318;
    --shadow: 0 22px 60px rgba(65, 38, 46, .12);
    --radius-lg: 28px;
    --radius-md: 17px;
    --radius-sm: 12px;
    --focus: 0 0 0 4px rgba(123, 11, 43, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(189, 142, 71, .08), transparent 32rem),
        var(--background);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button, label, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 9999;
    transform: translateY(-150%);
    background: #fff;
    border: 2px solid var(--wine);
    border-radius: 8px;
    padding: 10px 14px;
}
.skip-link:focus { transform: none; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid rgba(123, 11, 43, .09);
    backdrop-filter: blur(14px);
}
.site-header__inner {
    width: min(1080px, calc(100% - 32px));
    min-height: 78px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: 190px; height: auto; display: block; }
.header-trust {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
}
.header-trust__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2e9d6f;
    box-shadow: 0 0 0 5px rgba(46, 157, 111, .11);
}

.app-shell {
    width: min(1080px, calc(100% - 32px));
    margin: 34px auto 48px;
    display: grid;
    grid-template-columns: minmax(0, .88fr) minmax(0, 1.35fr);
    align-items: start;
    gap: 22px;
}
.hero-panel,
.form-panel {
    border: 1px solid rgba(123, 11, 43, .10);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.hero-panel {
    position: sticky;
    top: 108px;
}
.hero-panel__media {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f0ebe6;
}
.hero-panel__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: 62% center;
}
.hero-panel__content { padding: 28px 28px 30px; }
.eyebrow,
.step-kicker {
    display: inline-block;
    color: var(--wine);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.hero-panel h1 {
    margin: 10px 0 13px;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.07;
    letter-spacing: -.035em;
}
.hero-panel p { margin: 0; color: var(--muted); font-size: 15px; }
.hero-points {
    margin: 23px 0 0;
    padding: 0;
    display: grid;
    gap: 12px;
    list-style: none;
}
.hero-points li {
    position: relative;
    padding-left: 28px;
    font-size: 14px;
    color: #4e454b;
}
.hero-points li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    width: 19px;
    height: 19px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--wine-soft);
    color: var(--wine);
    font-size: 11px;
    font-weight: 900;
}

.form-panel { min-width: 0; padding: 26px; }
.progress-wrap { margin-bottom: 28px; }
.progress-meta {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 9px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}
.progress-track {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #ece5e7;
}
.progress-track span {
    display: block;
    width: 14.2857%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--wine), #a31a46);
    transition: width .35s ease;
}
.step-titles {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-top: 10px;
    color: #9b9297;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
}
.step-titles span.is-active { color: var(--wine); }

.global-message {
    margin-bottom: 20px;
    padding: 13px 15px;
    border-radius: 12px;
    border: 1px solid #f1b8b4;
    background: #fff2f1;
    color: #8b211a;
    font-size: 14px;
}
.global-message.is-success {
    border-color: #b9dfcd;
    background: #edf8f3;
    color: #16613f;
}

.form-step { animation: stepIn .28s ease both; }
@keyframes stepIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}
.step-heading { margin-bottom: 25px; }
.step-heading h2 {
    margin: 6px 0 7px;
    font-size: clamp(23px, 3vw, 31px);
    line-height: 1.13;
    letter-spacing: -.025em;
}
.step-heading p { margin: 0; max-width: 64ch; color: var(--muted); font-size: 14px; }
.intent-notice {
    margin: 0 0 20px;
    padding: 13px 15px;
    border: 1px solid #b9dfcd;
    border-radius: 12px;
    background: #edf8f3;
    color: #16613f;
    font-size: 13px;
}

.field-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 18px;
}
.field-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field--wide { grid-column: 1 / -1; }
.field--span2 { grid-column: span 2; }
.field { min-width: 0; margin-bottom: 18px; }
.field-grid > .field { margin-bottom: 0; }
.field-label {
    display: block;
    margin-bottom: 7px;
    color: #443b41;
    font-size: 13px;
    font-weight: 760;
}
.field-label > span,
.check-line strong { color: var(--wine); }
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="time"],
select,
textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid #d9cfd3;
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    padding: 11px 13px;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
textarea { min-height: 105px; resize: vertical; }
input::placeholder,
textarea::placeholder { color: #aaa1a6; }
input:focus,
select:focus,
textarea:focus {
    border-color: var(--wine);
    box-shadow: var(--focus);
}
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea,
.field.is-invalid .choice-card,
.field.is-invalid .check-line { border-color: var(--danger); }
.field-error {
    display: none;
    margin-top: 6px;
    color: var(--danger);
    font-size: 12px;
    font-weight: 650;
}
.field.is-invalid .field-error { display: block; }
.field-hint { display: block; margin-top: 5px; color: #8b8287; font-size: 11px; }

.choice-grid {
    display: grid;
    gap: 10px;
}
.choice-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice-card { position: relative; cursor: pointer; }
.choice-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.choice-card span {
    min-height: 51px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border: 1px solid #ddd2d6;
    border-radius: 13px;
    background: #fff;
    color: #4b4247;
    font-size: 13px;
    font-weight: 720;
    text-align: center;
    transition: border .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}
.choice-card:hover span { border-color: #b89aa5; transform: translateY(-1px); }
.choice-card input:focus-visible + span { box-shadow: var(--focus); }
.choice-card input:checked + span {
    border-color: var(--wine);
    background: var(--wine-soft);
    color: var(--wine-dark);
    box-shadow: inset 0 0 0 1px var(--wine);
}

.conditional {
    animation: reveal .24s ease both;
}
@keyframes reveal {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: none; }
}
.subsection {
    margin: 24px 0;
    padding: 21px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #fcfaf9;
}
.subsection > h3,
.subsection__heading h3 {
    margin: 0 0 17px;
    font-size: 17px;
    color: #3d3339;
}
.subsection__heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 17px;
}
.subsection__heading h3 { margin: 0; }
.manual-badge {
    padding: 5px 9px;
    border-radius: 999px;
    background: #f2ece7;
    color: #7a6959;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.consent-box {
    margin: 22px 0;
    padding: 17px;
    border: 1px solid #ddcfd4;
    border-radius: 15px;
    background: #fcfafb;
}
.consent-box .field { margin-bottom: 11px; }
.consent-box .field:last-child { margin-bottom: 0; }
.check-line {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    cursor: pointer;
    color: #51474d;
    font-size: 13px;
}
.check-line + .check-line { margin-top: 14px; padding-top: 14px; border-top: 1px solid #eee5e7; }
.check-line input {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    margin: 1px 0 0;
    accent-color: var(--wine);
}
.check-line em { color: #8d8388; font-size: 11px; }
.text-button {
    border: 0;
    background: transparent;
    color: var(--wine);
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 750;
    cursor: pointer;
}

.chip-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.check-chip { position: relative; cursor: pointer; }
.check-chip input { position: absolute; opacity: 0; pointer-events: none; }
.check-chip span {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    padding: 7px 12px;
    border: 1px solid #ddd3d6;
    border-radius: 999px;
    background: #fff;
    color: #5c5258;
    font-size: 12px;
    font-weight: 700;
}
.check-chip input:checked + span { border-color: var(--wine); background: var(--wine-soft); color: var(--wine); }
.check-chip input:focus-visible + span { box-shadow: var(--focus); }

.step-actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 30px -10px -10px;
    padding: 16px 10px 10px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 22%, #fff);
}
.step-actions--end { justify-content: flex-end; }
.button {
    min-height: 49px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid transparent;
    border-radius: 13px;
    padding: 11px 19px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button:focus-visible { outline: none; box-shadow: var(--focus); }
.button:disabled { cursor: wait; opacity: .65; transform: none; }
.button--primary {
    background: linear-gradient(135deg, var(--wine), #991641);
    color: #fff;
    box-shadow: 0 12px 24px rgba(123, 11, 43, .19);
}
.button--primary:hover { box-shadow: 0 15px 28px rgba(123, 11, 43, .26); }
.button--ghost { border-color: #d8cdd1; background: #fff; color: #5e5359; }
.button--submit { min-width: 220px; }
.button-arrow { font-size: 17px; }

.upload-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
    margin-bottom: 25px;
}
.upload-card { margin: 0; }
.upload-card label {
    min-height: 148px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 5px;
    padding: 18px;
    border: 1.5px dashed #cdbbc1;
    border-radius: 15px;
    background: #fdfbfb;
    cursor: pointer;
    transition: border .18s ease, background .18s ease;
}
.upload-card label:hover { border-color: var(--wine); background: var(--wine-soft); }
.upload-card strong { color: #3e353a; font-size: 15px; }
.upload-card label > span:not(.upload-action) { color: #877d82; font-size: 11px; }
.upload-action { margin-top: 7px; color: var(--wine); font-size: 12px; font-weight: 800; }
.upload-card input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-name { display: block; margin: 6px 4px 0; color: var(--success); font-size: 11px; font-weight: 700; }

.review-wrap { margin: 28px 0; }
.review-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 13px; }
.review-heading h3 { margin: 0; font-size: 18px; }
.review-content { display: grid; gap: 12px; }
.review-section { border: 1px solid var(--line); border-radius: 15px; overflow: hidden; }
.review-section h4 { margin: 0; padding: 12px 15px; background: #faf6f7; color: var(--wine); font-size: 13px; }
.review-rows { margin: 0; }
.review-row { display: grid; grid-template-columns: minmax(130px, .8fr) minmax(0, 1.2fr); gap: 14px; padding: 10px 15px; border-top: 1px solid #eee6e8; }
.review-row dt { color: #81767c; font-size: 11px; }
.review-row dd { margin: 0; color: #433a3f; font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
.final-note { padding: 16px; border-left: 4px solid var(--gold); border-radius: 0 12px 12px 0; background: #fbf6ee; }
.final-note strong { color: #614c2f; font-size: 13px; }
.final-note p { margin: 4px 0 0; color: #796a57; font-size: 12px; }

.success-screen { padding: 32px 18px 20px; text-align: center; animation: stepIn .35s ease both; }
.success-icon {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #eaf7f1;
    color: var(--success);
    font-size: 34px;
    font-weight: 900;
    box-shadow: 0 0 0 10px #f5fbf8;
}
.success-screen h2 { margin: 8px 0; font-size: 30px; }
.success-screen > p { max-width: 570px; margin: 0 auto; color: var(--muted); }
.protocol-box { max-width: 380px; margin: 24px auto; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: #fbf9f8; }
.protocol-box span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.protocol-box strong { color: var(--wine); font-size: 17px; letter-spacing: .04em; }
.success-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.success-screen small { color: #91878c; }

.site-footer { width: min(1080px, calc(100% - 32px)); margin: 0 auto 32px; color: #82777d; font-size: 12px; }
.site-footer > div { display: flex; justify-content: space-between; gap: 20px; padding: 0 8px; }

.drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(29, 20, 24, .55);
    backdrop-filter: blur(3px);
}
.policy-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 90;
    width: min(720px, 100%);
    height: 100dvh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    background: #fff;
    box-shadow: -20px 0 60px rgba(28, 17, 22, .24);
    transform: translateX(105%);
    transition: transform .28s ease;
}
.policy-drawer.is-open { transform: none; }
.policy-drawer__header,
.policy-drawer__footer { padding: 18px 22px; border-bottom: 1px solid var(--line); background: #fff; }
.policy-drawer__footer { border-top: 1px solid var(--line); border-bottom: 0; text-align: right; }
.policy-drawer__header { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.policy-drawer__header h2 { margin: 3px 0 0; font-size: 22px; }
.drawer-close { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: #5f555b; font-size: 28px; line-height: 1; cursor: pointer; }
.policy-drawer__content { overflow: auto; padding: 25px 24px 44px; color: #4d4449; }
.policy-drawer__content h2,
.policy-drawer__content h3 { color: var(--wine); line-height: 1.25; }
.policy-drawer__content h2 { margin: 28px 0 10px; font-size: 20px; }
.policy-drawer__content h3 { margin: 24px 0 10px; font-size: 17px; }
.policy-drawer__content p { margin: 0 0 13px; font-size: 13px; text-align: left; }
body.drawer-open { overflow: hidden; }

.loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(36, 24, 29, .55);
    backdrop-filter: blur(4px);
}
.loading-card {
    width: min(330px, 100%);
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 27px;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
    text-align: center;
}
.loading-card small { color: var(--muted); }
.spinner { width: 35px; height: 35px; border: 4px solid #eee3e6; border-top-color: var(--wine); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 920px) {
    .app-shell { grid-template-columns: 1fr; width: min(760px, calc(100% - 24px)); margin-top: 20px; }
    .hero-panel { position: static; display: grid; grid-template-columns: 240px 1fr; }
    .hero-panel__media { aspect-ratio: auto; height: 100%; min-height: 280px; }
    .hero-panel__content { padding: 27px; }
    .hero-panel h1 { font-size: 31px; }
    body.form-started .hero-panel { display: none; }
}

@media (max-width: 720px) {
    .site-header__inner { width: calc(100% - 24px); min-height: 69px; }
    .brand img { width: 158px; }
    .header-trust { max-width: 145px; font-size: 10px; line-height: 1.25; }
    .header-trust__dot { width: 8px; height: 8px; flex: 0 0 8px; }
    .app-shell { width: calc(100% - 18px); margin: 10px auto 30px; gap: 10px; }
    .hero-panel, .form-panel { border-radius: 20px; }
    .hero-panel { display: block; }
    .hero-panel__media { min-height: 0; aspect-ratio: 16 / 9; }
    .hero-panel__media img { object-position: 67% center; }
    .hero-panel__content { padding: 20px; }
    .hero-panel h1 { font-size: 27px; }
    .hero-panel p { font-size: 13px; }
    .hero-points { display: none; }
    .form-panel { padding: 20px 16px 16px; }
    .step-titles { display: none; }
    .progress-wrap { margin-bottom: 23px; }
    .field-grid--2, .field-grid--3 { grid-template-columns: 1fr; }
    .field--span2 { grid-column: auto; }
    .choice-grid--3 { grid-template-columns: 1fr; }
    .choice-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .choice-card span { min-height: 48px; padding: 9px; font-size: 12px; }
    .subsection { margin: 20px -4px; padding: 17px 14px; }
    .subsection__heading { align-items: flex-start; }
    .step-actions { margin-left: -5px; margin-right: -5px; padding-left: 5px; padding-right: 5px; }
    .step-actions .button { flex: 1 1 0; padding-left: 10px; padding-right: 10px; }
    .step-actions--end .button { flex-basis: 100%; }
    .button--submit { min-width: 0; }
    .upload-grid { grid-template-columns: 1fr; }
    .upload-card label { min-height: 120px; }
    .review-row { grid-template-columns: 1fr; gap: 3px; }
    .site-footer { width: calc(100% - 28px); }
    .site-footer > div { flex-direction: column; align-items: flex-start; gap: 6px; }
    .policy-drawer__content { padding: 22px 18px 40px; }
}

@media (max-width: 420px) {
    .header-trust { display: none; }
    .choice-grid--2 { grid-template-columns: 1fr; }
    .step-actions { flex-wrap: wrap; }
    .step-actions .button { flex-basis: 100%; }
    .success-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* SmartCot NetArts v4 - créditos institucionais */
.site-footer__top {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 0 8px 12px;
}
.site-footer__credits {
    display: grid;
    gap: 4px;
    padding: 14px 8px 0;
    border-top: 1px solid var(--line);
    line-height: 1.55;
}
.site-footer__credits strong {
    color: var(--wine);
    font-size: 12px;
}
.site-footer__credits span {
    display: block;
}
@media (max-width: 680px) {
    .site-footer__top {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}


/* V9 - nova cotação */
.new-quote-form { margin: 0; display: inline-flex; }
.button--secondary { background: #7b0b2b; color: #fff; border: 1px solid #7b0b2b; }
.button--secondary:hover, .button--secondary:focus-visible { background: #651025; border-color: #651025; }
@media (max-width: 640px) {
  .success-actions, .new-quote-form { width: 100%; }
  .new-quote-form .button { width: 100%; }
}
