
:root {
  --anac-blue: #005b96;
  --anac-dark: #003b66;
  --anac-ink: #071c2f;
  --muted: #5d7083;
  --line: #d7e1ea;
  --soft: #f4f7fb;
  --card: #ffffff;
  --success: #0d7a3b;
  --warning: #a06a00;
  --danger: #a71717;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--anac-ink);
  background: var(--soft);
  line-height: 1.5;
}

a { color: var(--anac-blue); }
.topbar {
  height: 64px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 28px;
}
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--anac-dark); font-weight: 700; }
.brand-logo { display: block; width: 92px; height: auto; max-height: 44px; object-fit: contain; }
.brand-text { font-size: 15px; }

.hero {
  position: relative;
  min-height: 310px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #123b5b;
}
.hero-visual {
  background-image: linear-gradient(90deg, rgba(0, 45, 83, .90) 0%, rgba(0, 91, 150, .64) 54%, rgba(60, 139, 184, .50) 100%), url('/static/hero-anac.svg');
  background-size: cover;
  background-position: center;
}
.hero-inner {
  width: min(1040px, calc(100% - 48px));
  margin: 0 auto;
  position: relative;
  color: #fff;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  font-weight: 800;
  margin: 0 0 8px 0;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  margin: 0 0 16px;
  max-width: 760px;
}
.lead {
  max-width: 720px;
  font-size: 18px;
  margin: 0;
  color: rgba(255,255,255,.94);
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.hero-meta span {
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.10);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.content { width: min(1040px, calc(100% - 48px)); margin: 0 auto; padding: 42px 0 58px; }
.section-heading { margin-bottom: 20px; }
.section-heading h2 { margin: 0 0 6px; color: var(--anac-dark); font-size: 26px; }
.section-heading p { margin: 0; color: var(--muted); }
.offer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.offer-card {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 18px 36px rgba(18, 38, 63, .08);
  padding: 22px;
  display: flex;
  flex-direction: column;
  min-height: 330px;
}
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.reference { color: var(--anac-blue); font-size: 12px; font-weight: 800; }
.status { font-size: 12px; font-weight: 700; padding: 5px 8px; border-radius: 2px; }
.status.aberto { background: #e7f5ec; color: var(--success); }
.status.brevemente { background: #fff4dd; color: var(--warning); }
.status.encerrado { background: #ffe9e9; color: var(--danger); }
.offer-card h2 { margin: 0 0 14px; font-size: 20px; line-height: 1.25; }
.offer-card p { margin: 0 0 18px; color: var(--muted); }
.offer-card dl { margin: auto 0 18px; }
.offer-card dt { text-transform: uppercase; color: var(--muted); font-size: 12px; }
.offer-card dd { margin: 0; font-weight: 800; }
.button, .submit {
  display: inline-block;
  background: var(--anac-blue);
  color: #fff;
  text-decoration: none;
  border: 0;
  padding: 12px 18px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  width: 100%;
}
.button:hover, .submit:hover { background: var(--anac-dark); }

.detail-hero { background: #fff; border-bottom: 1px solid var(--line); padding: 34px max(24px, calc((100% - 1040px)/2)); }
.back-link { text-decoration: none; font-weight: 700; color: var(--anac-blue); }
.detail-hero .reference { display: block; margin-top: 18px; }
.detail-hero h1 { max-width: 950px; font-size: 34px; line-height: 1.15; margin: 8px 0 12px; color: var(--anac-dark); }
.detail-hero p { margin: 0; color: var(--muted); }
.detail-layout { width: min(1180px, calc(100% - 48px)); margin: 32px auto 58px; display: grid; grid-template-columns: 1.35fr .95fr; gap: 28px; align-items: start; }
.procedure, .form-panel { background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 36px rgba(18, 38, 63, .07); padding: 30px; }
.procedure h2, .form-panel h2 { color: var(--anac-dark); margin-top: 0; }
.procedure h3 { color: var(--anac-dark); margin: 28px 0 10px; }
.procedure ul { margin-top: 8px; padding-left: 22px; }
.procedure li { margin-bottom: 8px; }
.info-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); margin: 18px 0 26px; }
.info-list div { padding: 14px; border-right: 1px solid var(--line); }
.info-list div:last-child { border-right: 0; }
.info-list dt { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.info-list dd { margin: 2px 0 0; font-weight: 800; }
.competency-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.competency-block { border-left: 4px solid var(--anac-blue); background: #f7fbfe; padding: 12px 14px; }
.competency-block h4 { margin: 0 0 6px; color: var(--anac-dark); }
.competency-block ul { margin: 0; }
.file-guidance { background: #edf8fa; border-left: 4px solid #0b8a95; padding: 14px; }
form label { display: block; margin-bottom: 14px; font-weight: 700; }
form label span { display: block; margin-bottom: 7px; }
input, select {
  width: 100%;
  border: 1px solid #b9cad8;
  padding: 12px 13px;
  font: inherit;
  background: #fff;
}
select { appearance: auto; }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.error { color: var(--danger); font-size: 13px; font-weight: 800; margin-top: 5px; display: block; }
.form-error { background: #ffecec; padding: 10px; }
.declaration-box { border: 1px solid var(--line); background: #fbfdff; padding: 14px; margin: 12px 0 18px; }
.checkbox-label { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; margin: 0; }
.checkbox-label input { width: auto; margin-top: 4px; }
.checkbox-label span { margin: 0; font-size: 14px; color: #263b4f; }
.success { min-height: calc(100vh - 120px); display: grid; place-items: center; text-align: center; padding: 48px 24px; background: #fff; }
.success h1 { font-size: 46px; max-width: 760px; margin: 8px auto 18px; line-height: 1.12; }
.success .button { width: auto; margin-top: 20px; }
.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 14px 28px;
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.footer-logo {
  display: block;
  width: 120px;
  height: auto;
  max-height: 56px;
  object-fit: contain;
  opacity: 0.95;
}

@media (max-width: 1100px) { .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .detail-layout { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .offer-grid, .two-cols, .info-list { grid-template-columns: 1fr; } .hero { min-height: 280px; } .topbar { padding: 0 16px; } .brand-logo { width: 78px; } .brand-text { font-size: 13px; } .content, .detail-layout { width: calc(100% - 28px); } .procedure, .form-panel { padding: 22px; } .footer { padding: 8px 28px; } .footer-logo { width: 96px; height: auto; max-height: 45px; } }
