html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: #f1fbf3;
    overflow-x: hidden;
}

footer {
    background: transparent;
}

.container {
    border-color: #dff4e5;
    background: #ffffff;
}

.search-form input {
    background: #ffffff !important;
}

.search-form input:focus {
    border-color: #0b7a3b !important;
    box-shadow: 0 0 0 4px rgba(11, 122, 59, 0.10);
    outline: none;
}

.search-buttons button[type="submit"] {
    border-color: #0b7a3b !important;
    background: #0b7a3b !important;
    color: #ffffff !important;
}

.search-buttons button[type="submit"]:hover {
    border-color: #086331 !important;
    background: #086331 !important;
}

.search-buttons button[type="submit"] i,
.search-buttons button[type="submit"] span {
    color: #ffffff !important;
}

.variedade-sugestoes {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 50;
    max-height: 240px;
    overflow-y: auto;
    border: 1px solid #dff4e5;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 16px 32px rgba(17, 24, 39, 0.12);
}

.variedade-opcao {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border: 0;
    background: #ffffff;
    color: #111827;
    cursor: pointer;
    font-size: 14px;
    text-align: left;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.variedade-opcao:hover,
.variedade-opcao:focus {
    background: #f1fbf3;
    color: #0b7a3b;
    outline: none;
}

.variedade-sem-sugestao {
    padding: 10px 14px;
    color: #6b7280;
    font-size: 14px;
}

.results {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(241, 251, 243, 0.35);
}

.results .modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    width: calc(100% - 32px);
    max-width: 440px;
    padding: 24px 28px 28px;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(5, 93, 45, 0.14);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 20px 45px rgba(17, 24, 39, 0.12);
    box-sizing: border-box;
    animation: resultsModalFadeIn 0.22s ease-out;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1100;
    overflow: auto;
    padding: 16px;
    background-color: rgba(17, 24, 39, 0.45);
}

.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    width: min(92vw, 640px);
    max-height: calc(100vh - 32px);
    overflow: auto;
    padding: 24px;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(5, 93, 45, 0.14);
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow: 0 20px 45px rgba(17, 24, 39, 0.16);
    box-sizing: border-box;
}

.help-modal {
    padding-top: 48px;
}

.help-modal .close {
    top: 10px;
    right: 12px;
}

.pdf-modal {
    width: min(92vw, 760px);
}

.pdf-modal iframe {
    margin-top: 16px;
    min-height: 420px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.close {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.close:hover,
.close:focus {
    background: #f3f4f6;
    color: #111827;
    outline: none;
    text-decoration: none;
}

.help-box {
    display: none;
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    z-index: 1000;
    width: 260px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #111827;
    color: #ffffff;
    font-size: 13px;
    line-height: 1.4;
    box-shadow: 0 10px 25px rgba(17, 24, 39, 0.2);
}

.help-box::before {
    content: '';
    position: absolute;
    right: 18px;
    bottom: -6px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #111827;
}

.help-overlay {
    display: none;
}

.error-message {
    margin-top: 6px;
    color: #dc2626;
    font-size: 13px;
    font-weight: 500;
}

.form-error {
    width: 100%;
    margin: 4px 0 0;
    text-align: center;
}

.no-results {
    margin-top: 18px;
    padding: 18px;
    border-radius: 10px;
    background: #f9fafb;
    color: #6b7280;
    font-size: 14px;
    font-style: italic;
    text-align: center;
}

input.error {
    border-color: #dc2626;
}

@keyframes resultsModalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, calc(-50% - 14px));
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@media (max-width: 640px) {
    .results .modal-content {
        width: calc(100% - 20px);
        padding: 22px 18px;
    }

    .modal-content {
        width: calc(100vw - 20px);
        padding: 20px;
    }

    .pdf-modal iframe {
        min-height: 360px;
    }

    .help-box {
        left: 50%;
        right: auto;
        width: min(280px, calc(100vw - 40px));
        transform: translateX(-50%);
    }

    .help-box::before {
        right: 50%;
        transform: translateX(50%);
    }
}
/* Wolf document portal — shared visual language */
:root { --ink: #183d30; --muted: #64756c; --green: #126640; --line: #e0e8e1; }
body { margin: 0; background: #f7f8f4; color: var(--ink); font-family: 'Segoe UI', Arial, sans-serif; -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; }
button, input { font: inherit; }
a, button, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #72a88a; outline-offset: 4px; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 2000; padding: 12px 20px; background: white; }
.skip-link:focus { top: 12px; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1160px; margin: auto; min-height: 100px; padding: 18px 32px; display: flex; align-items: center; gap: 25px; }
.brand { width: 140px; height: auto; display: block; }
.header-divider { height: 28px; width: 1px; background: var(--line); }
.portal-label { font-size: 13px; color: var(--muted); }
.corporate-link { margin-left: auto; font-size: 13px; font-weight: 600; display: flex; gap: 20px; align-items: center; }
.corporate-link:hover { color: var(--green); text-decoration: underline; }
.page-shell { max-width: 1160px; margin: auto; padding: 56px 32px 30px; }
.intro { margin-bottom: 38px; }
.eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 1.9px; display: flex; align-items: center; gap: 9px; color: #48715b; }
.status-dot { width: 6px; height: 6px; background: #4c8962; border-radius: 50%; }
.intro h1 { font-size: clamp(26px, 2.6vw, 32px); font-weight: 600; letter-spacing: -0.8px; line-height: 1.2; margin: 16px 0 14px; }
.intro p { font-size: 15px; line-height: 1.8; color: var(--muted); }
.consultation-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 26px; align-items: stretch; }
.search-card { padding: 32px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 8px 30px #193f3005; }
.card-heading { display: flex; gap: 14px; align-items: center; margin-bottom: 28px; }
.feature-icon { flex: 0 0 44px; height: 48px; border: 1px solid #e0eade; border-radius: 12px; background: #f1f6ed; display: grid; place-items: center; color: var(--green); font-size: 20px; }
.card-heading h2 { font-size: 19px; line-height: 1.3; font-weight: 650; letter-spacing: -.5px; }
.card-heading p { font-size: 12px; color: var(--muted); margin-top: 7px; }
.search-form { display: flex; flex-direction: column; gap: 22px; }
.input-group { display: flex; flex-direction: column; gap: 9px; }
.input-group label { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 650; }
.input-group label span { font-size: 10px; color: #78857c; font-weight: 400; }
.search-form input { width: 100%; height: 52px; padding: 0 15px; border: 1px solid #dbe3db; border-radius: 9px; font-size: 16px; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.search-form input::placeholder { color: #8a968e; }
.field-hint { font-size: 11px; color: var(--muted); line-height: 1.5; }
.variedade-combobox { position: relative; }
.search-buttons { margin-top: 2px; }
.search-buttons button[type=submit] { display: flex; justify-content: center; gap: 12px; align-items: center; width: 100%; height: 52px; padding: 0 20px; border-radius: 9px; font-size: 14px; font-weight: 600; cursor: pointer; background: var(--green) !important; border: 1px solid var(--green) !important; transition: background .2s, box-shadow .2s; }
.search-buttons button[type=submit]:hover { background: #0d5032 !important; box-shadow: 0 5px 15px #12664025; }
.button-arrow { margin-left: auto; font-size: 22px; font-weight: 400; }
.search-note { margin-top: 20px; padding-top: 18px; border-top: 1px solid #edf0eb; display: flex; justify-content: center; align-items: center; gap: 9px; color: #748277; font-size: 11px; }
.guide-card { padding: 34px; border: 1px solid #dce5d7; border-radius: 20px; background: #edf2e8; }
.guide-card h2 { max-width: 240px; margin: 16px 0 28px; font-size: 27px; line-height: 1.25; font-weight: 550; letter-spacing: -.8px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; }
.steps li { display: flex; gap: 15px; align-items: flex-start; }
.step-number { display: grid; place-items: center; flex: 0 0 30px; height: 30px; border: 1px solid #c9d9c4; border-radius: 50%; color: #5e7964; font-size: 10px; }
.steps h3 { font-size: 13px; font-weight: 650; margin: 2px 0 5px; }
.steps p { color: #69796a; font-size: 12px; line-height: 1.7; max-width: 260px; }
.guide-card .help-button { display: flex; align-items: center; gap: 9px; width: 100%; margin-top: 28px; padding: 20px 0 0; border: 0; border-top: 1px solid #d4e0cf; background: transparent; color: #315c40; font-size: 12px; font-weight: 600; cursor: pointer; text-align: left; }
.help-button span { margin-left: auto; }
.help-button:hover { color: #0b7a3b; }
.site-footer { border-top: 1px solid var(--line); padding: 0 32px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1096px; min-height: 96px; margin: auto; }
.footer-inner > p { font-size: 11px; color: #7c887e; }
.certification { display: flex; align-items: center; gap: 18px; font-size: 10px; color: #7c887e; }
.certification img { width: 78px; height: auto; }
.results, .modal { background: #102d2366; backdrop-filter: blur(6px); }
.modal-content, .results .modal-content { border-radius: 20px; border: 1px solid var(--line); box-shadow: 0 24px 100px #0e352333; }
.results .modal-content { max-width: 500px; padding-top: 46px; }
.result-item { background: #f6f8f3; }
.result-icon { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 9px; background: #eaf1e6; color: var(--green); }
.results-info { box-shadow: none; border-color: var(--line); }
.pdf-buttons button { min-height: 48px; border-radius: 9px; }
#downloadPdfBtn { background: var(--green); color: white; border-color: var(--green); }
#downloadPdfBtn:hover { background: #0d5032; }
#visualizarBtn { color: var(--green); border-color: #cddbcf; }
.error-message:empty { display: none; }
body:has(.results[style*="display: block"], .modal[style*="display: block"]) { overflow: hidden; }
@media (max-width: 780px) {
 .header-inner { min-height: 84px; padding: 16px 22px; gap: 16px; }
 .brand { width: 118px; }
 .portal-label { font-size: 11px; }
 .corporate-link { font-size: 11px; gap: 8px; }
 .page-shell { padding: 36px 22px 18px; }
 .consultation-layout { grid-template-columns: 1fr; gap: 20px; }
 .intro h1 { letter-spacing: -1px; }
 .search-card, .guide-card { padding: 26px; }
 .guide-card h2 { max-width: none; font-size: 24px; }
 .steps p { max-width: none; }
 .footer-inner { min-height: 110px; }
 .certification span { display: none; }
}
@media (max-width: 420px) {
 .header-divider, .corporate-link { display: none; }
 .portal-label { margin-left: auto; }
 .page-shell { padding-left: 16px; padding-right: 16px; }
 .intro h1 { font-size: 26px; }
 .intro p { font-size: 13px; }
 .desktop-break { display: none; }
 .search-card, .guide-card { padding: 22px; }
 .card-heading { gap: 10px; }
 .card-heading h2 { font-size: 17px; }
 .card-heading p { line-height: 1.6; }
 .site-footer { padding: 0 16px; }
 .footer-inner > p { max-width: 190px; line-height: 1.7; }
}
@media (prefers-reduced-motion: reduce) {
 *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Consistent vector icons and mobile sizing, including Safari input focus. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.icon { display: inline-block; width: 20px; height: 20px; flex: 0 0 auto; vertical-align: middle; }
.feature-icon .icon, .result-icon .icon { width: 24px; height: 24px; }
.external-icon { width: 16px; height: 16px; }
.help-button > .external-icon { margin-left: auto; }
.header-inner > a:first-child { flex-shrink: 0; }
.header-divider, .status-dot { flex-shrink: 0; }
.portal-label, .card-heading > div, .consultation-layout > *, .result-item > div { min-width: 0; }
.corporate-link { flex-shrink: 0; }
.input-group, .variedade-combobox, .search-form { min-width: 0; }
.result-item > div { overflow-wrap: anywhere; }
.result-item { gap: 12px; }
.search-buttons button:disabled { opacity: .7; cursor: wait; }
.close { width: 44px; height: 44px; top: 6px; right: 8px; }
.modal-content, .results .modal-content { max-height: calc(100dvh - 32px); overscroll-behavior: contain; }
@media (max-width: 780px) {
    .header-inner { gap: 14px; }
    .portal-label { line-height: 1.5; }
    .corporate-link { white-space: nowrap; }
    .desktop-break { display: none; }
    .search-form input { font-size: 16px; -webkit-appearance: none; appearance: none; }
}
@media (max-width: 600px) {
    .header-inner { padding: 16px; min-height: 80px; }
    .header-divider, .corporate-link { display: none; }
    .portal-label { margin-left: auto; max-width: 160px; text-align: right; }
    .page-shell { width: 100%; padding: 28px 16px 24px; }
    .intro { margin-bottom: 26px; }
    .intro h1 { font-size: 26px; line-height: 1.25; }
    .intro p { font-size: 14px; line-height: 1.75; }
    .eyebrow { font-size: 9px; letter-spacing: 1.3px; }
    .search-card, .guide-card { padding: 20px; border-radius: 16px; }
    .card-heading { align-items: flex-start; gap: 12px; margin-bottom: 24px; }
    .card-heading h2 { font-size: 18px; line-height: 1.35; }
    .card-heading p { line-height: 1.6; }
    .feature-icon { flex-basis: 40px; height: 44px; }
    .search-form { gap: 20px; }
    .input-group label { gap: 8px; }
    .input-group label span { flex-shrink: 0; }
    .search-note { align-items: flex-start; line-height: 1.6; }
    .search-note .icon { width: 16px; height: 18px; }
    .results .modal-content, .modal-content { width: calc(100% - 32px); max-width: calc(100% - 32px); padding: 48px 16px 20px; border-radius: 16px; }
    .results .modal-content h2 { font-size: 17px; line-height: 1.5; }
    .results-info { padding: 10px; }
    .result-item { padding: 12px 10px; gap: 12px; }
    .result-icon { flex-basis: 40px; width: 40px; height: 44px; }
    .pdf-buttons { grid-template-columns: 1fr; }
    .pdf-buttons button { min-height: 48px; }
    .site-footer { padding: 0 16px env(safe-area-inset-bottom, 0px); }
    .footer-inner { gap: 16px; }
}

/* Final typography, result hierarchy and shared component finishes. */
:root { --muted: #53675b; --radius-control: 10px; --radius-panel: 16px; }
.card-heading p, .field-hint, .steps p, .search-note { font-size: 13px; color: var(--muted); line-height: 1.65; }
.input-group label { font-size: 14px; }
.input-group label span { font-size: 11px; color: var(--muted); }
.steps h3 { font-size: 14px; }
.guide-card .help-button { font-size: 13px; line-height: 1.6; }
.footer-inner > p, .certification { color: var(--muted); font-size: 12px; }
.search-form input, .search-buttons button[type=submit], .pdf-buttons button, .variedade-sugestoes, .feature-icon, .result-icon { border-radius: var(--radius-control); }
.search-card, .guide-card, .modal-content, .results .modal-content { border-radius: var(--radius-panel); }
.search-card, .results-info, .modal-content { border-color: var(--line); }
.feature-icon, .result-icon { width: 44px; height: 44px; flex-basis: 44px; }
.icon { stroke-width: 1.8; }
.results-info { padding: 0; border: 0; background: transparent; }
.result-item { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-control); }
.result-item strong { font-size: 12px; color: var(--muted); font-weight: 500; }
#resultLote, #resultVariedade { display: block; margin-top: 3px; font-size: 18px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.result-item:last-child { padding: 14px 4px 0; background: transparent; border: 0; }
.result-item:last-child .result-icon { background: transparent; }
#resultArquivo { display: block; margin-top: 3px; font-size: 13px; line-height: 1.6; color: var(--muted); word-break: normal; overflow-wrap: anywhere; }
.result-heading { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 24px; }
.result-status-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; border-radius: var(--radius-control); background: #eaf1e6; color: var(--green); }
.result-heading > div { min-width: 0; }
.results .result-heading h2 { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.35; color: var(--ink); letter-spacing: -.4px; }
.result-heading p { margin-top: 6px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.status-check { display: none; }
.results[data-state=success] .status-check { display: block; }
.results[data-state=success] .status-alert { display: none; }
.results[data-state=empty] .result-status-icon, .results[data-state=error] .result-status-icon { background: #f7f0e2; color: #805c23; }
.no-results { font-style: normal; color: var(--muted); line-height: 1.65; }
.guide-toggle { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink); font-size: 16px; font-weight: 600; text-align: left; background: transparent; border: 0; cursor: pointer; }
.guide-toggle[aria-expanded=true] .icon { transform: rotate(180deg); }
.guide-toggle[hidden], .steps[hidden] { display: none; }
@media (max-width: 780px) {
    .guide-card > .eyebrow, .guide-card > h2 { display: none; }
    .guide-card .steps { margin-top: 22px; }
    .guide-card .help-button { margin-top: 16px; padding-top: 16px; }
}
@media (max-width: 600px) {
    .results .result-heading h2 { font-size: 18px; }
    .result-heading { gap: 12px; }
    .result-item { padding: 14px 12px; }
    .search-note .icon { width: 20px; height: 20px; margin-top: 1px; }
}

/* Contact footer: aligned columns on desktop, stacked sections on phones. */
.site-footer { background:#f0f4ec; margin-top:48px; }
.footer-contacts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:32px; max-width:none; margin:0; padding:24px 0; }
.footer-column { min-width:0; }
.footer-column:nth-child(2) { justify-self:center; }
.footer-store { justify-self:end; }
.footer-column h2 { margin:0 0 10px; color:var(--ink); font-size:15px; font-weight:650; line-height:1.4; }
.footer-column address, .footer-column p, .footer-contact-list { margin:0; color:var(--muted); font-size:13px; font-style:normal; line-height:1.75; }
.footer-contact-list { display:grid; gap:8px; }
.footer-contact-list > div { display:block; }
.footer-contact-list dt { font-size:11px; font-weight:600; }
.footer-contact-list dd { margin:0; }
.footer-column a { color:var(--green); overflow-wrap:anywhere; }
.footer-contact-list a { display:inline-block; padding:3px 0; color:var(--muted); text-decoration:none; }
.footer-column a:hover { color:#0d5032; text-decoration:underline; text-underline-offset:4px; }
.footer-store-link { display:inline-flex; align-items:center; justify-content:space-between; gap:10px; min-height:40px; max-width:100%; margin-top:10px; padding:8px 14px; border:1px solid #cddbcf; border-radius:10px; background:white; font-size:13px; font-weight:600; }
.footer-store-link span { min-width:0; }
.footer-store-link .icon { width:16px; height:16px; }
.site-footer .footer-inner { border-top:1px solid #dce5d7; max-width:none; min-height:70px; padding:12px 0; gap:24px; }
.site-footer .certification { gap:12px; }
.site-footer .certification img { width:78px; }
@media(max-width:900px) {
 .footer-contacts { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:18px; }
 .footer-store { grid-column:1 / -1; justify-self:start; }
 .footer-column:nth-child(2) { justify-self:start; }
}
@media(max-width:600px) {
 .site-footer { margin-top:32px; }
 .footer-contacts { grid-template-columns:minmax(0,1fr); gap:20px; padding:22px 0; }
 .footer-column + .footer-column { padding-top:16px; border-top:1px solid #dce5d7; }
 .footer-column h2 { margin-bottom:8px; }
 .footer-column address, .footer-column p, .footer-contact-list { font-size:14px; }
 .footer-contact-list a { min-height:44px; display:inline-flex; align-items:center; }
 .footer-contact-list { gap:4px; }
 .footer-store-link { font-size:14px; }
}

.footer-contact-list a:hover { color:var(--muted); text-decoration:none; }
.footer-socials { display:flex; align-items:center; justify-content:center; gap:6px; flex-shrink:0; }
.footer-socials a { display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; border-radius:8px; color:var(--green); transition:background-color .15s; }
.footer-socials a:hover { background:#dfe9d9; }
.footer-socials svg { display:block; flex-shrink:0; }
@media(max-width:780px) {
 .site-footer .footer-inner { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px 16px; }
 .footer-socials { grid-column:1 / -1; grid-row:2; justify-self:center; }
 .footer-socials a { width:44px; height:44px; }
 .site-footer .certification { justify-self:end; }
}
