/* ==========================================================================
   Delta Construtora · páginas internas (Fornecedores, Trabalhe conosco, Política, 404)
   ========================================================================== */
.pbar { position: sticky; top: 0; z-index: 40; background: var(--ink); color: var(--on-ink); box-shadow: 0 1px 0 var(--line-ink); }
.pbar__in { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.pbar__logo img { width: 172px; height: auto; }
.pbar__back { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; min-width: 44px; font-size: .9rem; font-weight: 700; color: var(--on-ink-2); text-decoration: none; }
.pbar__back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform var(--d-ui) var(--e); }
.pbar__back:hover { color: var(--on-ink); }
.pbar__back:hover svg { transform: translateX(-4px); }
.pbar :focus-visible { outline-color: var(--gold); }

.page-main { position: relative; overflow: hidden; background: var(--paper); min-height: calc(100svh - 76px); padding: clamp(40px, 8vh, 96px) 0 clamp(48px, 8vh, 96px); }
.page-main .malha { inset: 0 0 auto 52%; height: 440px; background-image: url('../patterns/malha-delta-tinta.svg'); opacity: .08; -webkit-mask-image: linear-gradient(200deg, #000 0%, transparent 70%); mask-image: linear-gradient(200deg, #000 0%, transparent 70%); }
.page-main .wrap { position: relative; }

.fpage { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 104px); align-items: start; }
.fintro h1, .legal h1, .nf h1 { font-family: var(--f-display); font-weight: 600; font-size: clamp(2rem, 1.2rem + 2.6vw, 3.3rem); line-height: 1.06; letter-spacing: -.025em; text-wrap: balance; }
.fintro p { margin-top: 18px; max-width: 48ch; color: var(--text-2); }
.form-card, .alt-card { background: #fff; padding: clamp(24px, 3.4vw, 40px); box-shadow: 0 0 0 1px var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.fg { position: relative; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.fg--full { grid-column: 1 / -1; }
.fg label, .fg .flabel { font-size: .82rem; font-weight: 700; color: var(--text); }
.form-note { grid-column: 1 / -1; font-size: .86rem; color: var(--text-2); }
.fg-err { font-size: .82rem; font-weight: 700; color: #8A2317; }
.fg-err[hidden] { display: none; }
.fg [aria-invalid="true"] { border-color: #8A2317; }
.fg input, .fg select { width: 100%; min-height: 50px; padding: 0 14px; font: 400 1rem/1.4 var(--f-body); color: var(--text); background: #fff; border: 1px solid #8F8778; border-radius: var(--r-1); transition: border-color .2s var(--e2); }
.fg select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%230C0C0B' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
.fg input:focus, .fg select:focus { border-color: var(--gold-ink); }
.file-label { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; border: 1px dashed #8F8778; border-radius: var(--r-1); cursor: pointer; color: var(--text-2); font-size: .9rem; }
.file-label:hover { border-color: var(--gold-ink); }
.file-label svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--gold-ink); stroke-width: 1.6; }
.file-label strong { color: var(--text); }
.file-name { display: block; font-size: .8rem; color: var(--text-2); }
.fg .file-input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
.file-input:focus-visible + .file-label { outline: 2px solid var(--gold-ink); outline-offset: 3px; }
.fg .check { display: flex; align-items: flex-start; gap: 12px; font-size: .9rem; font-weight: 400; line-height: 1.55; color: var(--text-2); cursor: pointer; }
.fg .check input { width: 22px; height: 22px; min-height: 0; padding: 0; flex: none; margin-top: 1px; border: 0; accent-color: var(--ink); }
.check a { color: var(--gold-ink); text-decoration: underline; text-underline-offset: 3px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-submit { width: 100%; justify-content: center; min-height: 54px; }
.form-feedback { display: none; padding: 14px 16px; font-size: .92rem; line-height: 1.55; }
.form-feedback.show { display: block; }
.form-feedback.success { background: #E7EFE6; color: #25502A; }
.form-feedback.error { background: #F6E7E3; color: #7E2616; }
.form-feedback a { color: inherit; font-weight: 700; text-decoration: underline; }
.alt-card { display: none; }
.alt-card h2 { font-family: var(--f-display); font-size: 1.4rem; font-weight: 600; letter-spacing: -.01em; }
.alt-card p { margin-top: 12px; color: var(--text-2); }
.alt-card .alt-actions { margin-top: 24px; }
[data-backend="off"] .form-card { display: none; }
[data-backend="off"] .alt-card { display: block; }

.legal { max-width: 780px; }
.legal h1 { margin-bottom: 24px; }
.legal-txt { font-size: .98rem; line-height: 1.75; color: var(--text-2); max-width: 56ch; }
.legal-txt h2 { margin: 30px 0 8px; font-size: 1.12rem; font-weight: 700; line-height: 1.35; color: var(--text); }
.legal-txt p, .legal-txt ul { margin-bottom: 12px; }
.legal-txt ul { padding-left: 18px; list-style: disc; }
.legal-txt a { color: var(--gold-ink); }

.nf { max-width: 640px; }
.nf p { margin: 18px 0 30px; color: var(--text-2); }

.page-foot { background: var(--ink); color: var(--on-ink-2); font-size: .84rem; }
.page-foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 22px; padding-bottom: 22px; }
.page-foot a, .page-foot .linklike { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-ink-2); text-decoration: underline; text-underline-offset: 3px; }
.page-foot a:hover, .page-foot .linklike:hover { color: var(--on-ink); }
.page-foot :focus-visible { outline-color: var(--gold); }

@media (max-width: 900px) { .fpage { grid-template-columns: 1fr; } .page-main .malha { left: 30%; } }
@media (max-width: 560px) {
  .pbar__in { height: 68px; }
  .pbar__logo img { width: 146px; }
  .pbar__back span { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .page-main { min-height: calc(100svh - 68px); }
}
