:root {
  --ink: #202020;
  --ink-soft: #5a5b57;
  --cream: #f4efe5;
  --paper: #fbfaf6;
  --orange: #e97924;
  --line: #dedbd3;
  --serif: 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  --sans: 'Segoe UI', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 16px/1.6 var(--sans); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 10; padding: 10px 15px; background: white; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.site-header { position: relative; z-index: 2; background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; }
.brand-mark { display: block; width: 122px; flex: 0 0 auto; }
.brand-mark img { width: 100%; height: auto; border-radius: 0; }
.back-link { font-size: .82rem; font-weight: 700; border-bottom: 1px solid rgba(32,32,32,.45); padding-block: 4px; }
.back-link span { margin-right: 8px; }
.hero { background: var(--ink); color: white; }
.hero-grid { min-height: 560px; display: grid; grid-template-columns: minmax(0, 1.13fr) minmax(350px, .87fr); }
.hero-copy { align-self: center; padding: 74px 7vw 77px 0; }
.eyebrow { margin: 0 0 17px; color: #a7531e; font-size: .72rem; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; }
.hero .eyebrow { color: #ebad71; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.025em; }
.hero h1 { max-width: 780px; margin-bottom: 27px; font-size: clamp(3.4rem, 5.4vw, 6.3rem); line-height: .99; }
.hero h1 em { color: #f19a4e; font-weight: 400; }
.hero-lead { max-width: 57ch; color: #ddd9d1; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 17px 26px; margin-top: 31px; }
.primary-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 55px; padding: 0 20px; color: #fff; background: var(--orange); font-weight: 700; }
.primary-link:hover { background: #d36318; }
.secondary-link { font-size: .88rem; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,.52); padding-block: 6px; }
.hero-note { display: flex; align-items: center; gap: 8px; margin: 28px 0 0; color: #d4d0c9; font-size: .79rem; }
.status-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #f3b971; }
.hero-visual { position: relative; min-height: 560px; overflow: hidden; background: #3d3d39; }
.hero-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.55), transparent 38%), linear-gradient(90deg, rgba(0,0,0,.17), transparent 25%); }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.visual-caption { position: absolute; z-index: 1; bottom: 31px; left: 32px; color: white; display: grid; line-height: 1; }
.visual-caption span { font-size: .76rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.visual-caption strong { font: 400 clamp(5.5rem, 9vw, 9rem)/1 var(--serif); }
.info-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; padding-block: 26px; border-bottom: 1px solid var(--line); }
.info-strip > div { display: flex; align-items: center; gap: 13px; color: #4f504d; font-size: .85rem; }
.strip-number { color: #a7531e; font-weight: 700; font-size: .73rem; }
.edital-section { padding-block: clamp(70px, 9vw, 120px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 35px; }
.section-heading h2, .form-intro h2 { margin: 0; font-size: clamp(3.2rem, 5vw, 5.4rem); line-height: 1.02; }
.section-heading > p { max-width: 42ch; margin: 0; color: var(--ink-soft); }
.edital-card { border: 1px solid #d8d5ce; background: white; box-shadow: 0 22px 65px rgba(0,0,0,.045); }
.edital-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding: 20px 25px; border-bottom: 1px solid var(--line); }
.edital-file { display: flex; align-items: center; gap: 14px; }
.file-icon { display: grid; place-items: center; width: 43px; height: 49px; color: #8d3d16; background: #f8e7d9; font-size: .67rem; font-weight: 700; border-radius: 3px; }
.edital-file strong, .edital-file small { display: block; }
.edital-file strong { line-height: 1.35; }
.edital-file small { color: var(--ink-soft); font-size: .78rem; }
.edital-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.edital-actions a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 15px; border: 1px solid var(--line); font-size: .81rem; font-weight: 700; }
.edital-actions a:last-child { background: var(--ink); color: white; border-color: var(--ink); }
.edital-preview { min-height: 390px; background: #f0efec; padding: 24px; }
.edital-frame { display: block; width: 100%; height: min(70vh, 750px); min-height: 420px; border: 0; background: white; }
.edital-mobile-text { display: none; }
.form-section { padding-block: clamp(70px, 8vw, 110px); background: #eae6dd; }
.form-layout { display: grid; grid-template-columns: minmax(0, .73fr) minmax(0, 1.27fr); gap: clamp(40px, 7vw, 100px); align-items: start; }
.form-intro { position: sticky; top: 35px; }
.form-intro > p:not(.eyebrow) { color: #5d5d57; max-width: 46ch; margin-top: 23px; }
.privacy-note { display: flex; gap: 13px; padding-top: 30px; margin-top: 35px; border-top: 1px solid #cac7c0; }
.privacy-note > span { color: #a7531e; font-size: 2rem; line-height: 1; }
.privacy-note strong { font-size: .85rem; }
.privacy-note p { margin: 3px 0 0; color: #666760; font-size: .8rem; line-height: 1.6; }
.form-card { min-width: 0; background: white; border: 1px solid #d9d6ce; box-shadow: 0 26px 70px rgba(31,31,32,.06); padding: clamp(23px, 4vw, 45px); }
.form-status { display: inline-block; margin-bottom: 33px; padding: 7px 11px; color: #7d4b21; background: #f8eee2; border-radius: 99px; font-size: .72rem; font-weight: 700; }
.bot-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 0 32px; margin: 0 0 33px; list-style: none; border-bottom: 1px solid var(--line); }
.steps li { display: flex; align-items: center; gap: 8px; color: #84827d; font-size: .76rem; font-weight: 700; }
.steps li span { display: grid; place-items: center; flex: 0 0 auto; width: 29px; height: 29px; border: 1px solid #cbc8c0; border-radius: 50%; font-size: .72rem; }
.steps li.current { color: var(--ink); }
.steps li.current span { background: var(--ink); color: white; border-color: var(--ink); }
.steps li.done span { background: #e0e9dd; color: #39603b; border-color: #e0e9dd; }
.form-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.form-step legend { padding: 0; font: 400 clamp(2rem, 3vw, 2.55rem)/1.18 var(--serif); }
.step-hint { margin: 8px 0 30px; color: #6f706b; font-size: .86rem; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 17px; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 7px; font-size: .79rem; font-weight: 700; }
.field label span { color: #a64e18; }
.field input { display: block; width: 100%; min-height: 52px; padding: 10px 13px; color: var(--ink); border: 1px solid #bbbcb7; background: #fff; border-radius: 2px; outline-offset: 2px; }
.field input::placeholder { color: #858681; }
.field input:hover { border-color: #676a65; }
.field input:focus { border-color: #a7531e; outline: 2px solid rgba(233,121,36,.3); }
.field input[aria-invalid='true'] { border-color: #ab3b29; }
.field small { display: block; margin-top: 5px; color: #6f706b; font-size: .73rem; }
.review-list { display: grid; gap: 0; margin: 8px 0 26px; }
.review-list div { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.review-list dt { flex: 0 0 40%; color: #6d6e68; font-size: .77rem; }
.review-list dd { margin: 0; font-size: .84rem; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.acceptance { padding-top: 5px; }
.check-row { display: flex; align-items: flex-start; gap: 11px; font-size: .83rem; line-height: 1.55; font-weight: 700; }
.check-row a { color: #8d4518; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.check-row a:hover, .check-row a:focus-visible { color: #5c2b0c; }
.check-row input { width: 19px; height: 19px; flex: 0 0 auto; margin: 1px 0 0; accent-color: #a7531e; }
.acceptance-note { margin: 5px 0 19px 30px; color: #6f706b; font-size: .73rem; }
.form-message { min-height: 20px; margin-top: 23px; color: #aa452c; font-size: .8rem; font-weight: 700; }
.form-controls { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; }
.form-controls button { min-height: 51px; padding: 0 20px; border: 0; cursor: pointer; font-size: .82rem; font-weight: 700; }
.back-button { background: #f0efeb; color: var(--ink); }
.next-button { margin-left: auto; background: var(--ink); color: white; }
.next-button:hover { background: #a7531e; }
.submit-button { margin-left: auto; background: #a7531e; color: white; }
.submit-button:disabled { background: #bfc0bc; color: #555; cursor: not-allowed; }
.site-footer { background: var(--ink); color: white; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-block: 27px; font-size: .75rem; }
.footer-inner div { display: flex; gap: 22px; }
.footer-inner a { border-bottom: 1px solid rgba(255,255,255,.5); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr); }
  .hero-copy { padding-right: 30px; }
  .form-layout { grid-template-columns: 1fr; }
  .form-intro { position: static; }
  .privacy-note { max-width: 520px; }
}
@media (max-width: 700px) {
  .shell { width: min(100% - 32px, 560px); }
  .header-inner { min-height: 70px; }
  .brand-mark { width: 80px; }
  .back-link { font-size: .74rem; }
  .hero-grid { display: flex; flex-direction: column; min-height: 0; width: 100%; }
  .hero-copy { padding: 67px 16px 47px; width: min(100%, 592px); margin-inline: auto; }
  .hero h1 { font-size: clamp(3.1rem, 10vw, 5rem); }
  .hero-visual { min-height: 310px; height: 360px; }
  .hero-visual img { object-position: center 38%; }
  .visual-caption { left: 22px; bottom: 18px; }
  .visual-caption strong { font-size: 6rem; }
  .hero-note { align-items: flex-start; }
  .status-dot { margin-top: 7px; }
  .info-strip { grid-template-columns: 1fr; gap: 13px; padding-block: 23px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 17px; }
  .edital-preview { height: min(70svh, 640px); min-height: 440px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #9b9992 #eeece7; }
  .edital-toolbar { padding: 17px; }
  .edital-actions { width: 100%; }
  .edital-actions a { flex: 1; justify-content: center; text-align: center; }
  .edital-frame { display: none; }
  .edital-mobile-text { display: block; padding: 27px 21px 34px; color: #252520; font-family: Georgia, 'Times New Roman', serif; font-size: 1rem; line-height: 1.7; }
  .edital-mobile-text h3 { margin: 8px 0 23px; color: var(--ink); font-family: 'DM Sans', sans-serif; font-size: 1.28rem; line-height: 1.25; text-transform: uppercase; }
  .edital-mobile-kicker { margin: 0; color: #8d4518; font-family: 'DM Sans', sans-serif; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
  .edital-mobile-text section { margin-top: 31px; padding-top: 23px; border-top: 1px solid #ddd9d0; }
  .edital-mobile-text h4 { margin: 0 0 15px; color: var(--ink); font-family: 'DM Sans', sans-serif; font-size: .96rem; line-height: 1.35; text-transform: uppercase; }
  .edital-mobile-text p { margin: 0 0 14px; }
  .edital-mobile-text ul, .edital-mobile-text ol { margin: 0 0 16px; padding-left: 22px; }
  .edital-mobile-text li { margin-bottom: 5px; padding-left: 3px; }
  .edital-mobile-signature { margin-top: 34px !important; padding-top: 22px; border-top: 2px solid var(--ink); font-family: 'DM Sans', sans-serif; font-size: .86rem; line-height: 1.65; }
  .form-section { padding-block: 65px; }
  .form-intro h2 { font-size: 3.2rem; }
  .form-card { padding: 24px 17px; }
  .fields { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .review-list div { display: block; }
  .review-list dd { text-align: left; margin-top: 3px; }
  .steps li { display: grid; justify-items: center; text-align: center; gap: 4px; }
}
@media (max-width: 370px) {
  .hero-actions { align-items: stretch; flex-direction: column; }
  .primary-link { justify-content: space-between; }
  .edital-actions { display: grid; }
  .form-controls button { padding-inline: 13px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Acesso rápido ao atendimento do CBU. */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 12px 35px rgba(0, 0, 0, .28);
  animation: whatsappPulse 2.2s infinite;
}
.whatsapp-float svg { width: 31px; height: 31px; fill: currentColor; }
.whatsapp-float:hover { background: #1dbb59; transform: translateY(-2px); }
@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 12px 35px rgba(0, 0, 0, .28), 0 0 0 0 rgba(37, 211, 102, .38); }
  55% { box-shadow: 0 12px 35px rgba(0, 0, 0, .28), 0 0 0 16px rgba(37, 211, 102, 0); }
}
@media (max-width: 700px) { .whatsapp-float { right: 16px; bottom: 16px; width: 58px; height: 58px; } }
@media (prefers-reduced-motion: reduce) { .whatsapp-float { animation: none; } }
