:root {
  --bg: #f7faf8;
  --surface: #fff;
  --surface-soft: #eaf5ee;
  --surface-dark: #0b3025;
  --text: #1d3027;
  --muted: #61736a;
  --primary: #0f6b45;
  --line: rgba(29, 48, 39, .12);
  --shadow: 0 22px 60px rgba(15, 107, 69, .12);
  --radius-xl: 32px;
  --radius-md: 16px;
  --container: 1110px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: Inter, ui-sans-serif, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  line-height: 1.58;
  background:
    radial-gradient(circle at 96% 0%, rgba(15, 107, 69, .09), transparent 34%),
    radial-gradient(circle at 0% 35%, rgba(15, 107, 69, .07), transparent 34%),
    var(--bg);
}

.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }

.shared-header {
  background: rgba(247, 250, 248, .94);
  border-bottom: 1px solid var(--line);
}

.shared-header__inner {
  min-height: 78px;
  display: flex;
  align-items: center;
}

.shared-header__brand { display: inline-flex; align-items: center; gap: 12px; }

.shared-header__logo {
  display: block;
  width: 45px;
  height: 45px;
  object-fit: contain;
  filter: drop-shadow(0 7px 14px rgba(15, 107, 69, .12));
}

.shared-header__name { font-size: .84rem; font-weight: 800; letter-spacing: .09em; }
.shared-header__name span { color: var(--muted); font-weight: 700; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  align-items: start;
  gap: clamp(36px, 6vw, 84px);
  flex: 1;
  padding-block: clamp(42px, 6vw, 78px);
}

.hero-copy { padding-top: clamp(0px, 5vw, 68px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--primary);
  font-size: .74rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .14em;
}

.eyebrow::before {
  content: "";
  flex: 0 0 28px;
  height: 1px;
  background: currentColor;
}

h1, h2, h3 { margin: 0; font-family: Poppins, Inter, "Segoe UI", Arial, sans-serif; }

h1 {
  font-size: clamp(2.65rem, 5.1vw, 4.7rem);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -.05em;
}

h1 em { display: block; color: var(--primary); font-style: normal; }

.hero-lead {
  max-width: 410px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
}

.hero-note {
  display: inline-block;
  margin: 24px 0 0;
  padding: 9px 15px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--surface-dark);
  font-size: .8rem;
  font-weight: 600;
}

.form-card {
  padding: clamp(22px, 4vw, 37px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
}

h2 {
  font-size: clamp(1.21rem, 2.2vw, 1.6rem);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.035em;
}

.form-intro { margin: 6px 0 15px; color: var(--muted); font-size: .85rem; }

.form-progress {
  display: grid;
  gap: 6px;
  margin-bottom: 22px;
  color: var(--primary);
  font-size: .78rem;
  font-weight: 700;
}

progress {
  display: block;
  width: 100%;
  height: 7px;
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--primary);
}

progress::-webkit-progress-bar { background: var(--surface-soft); border-radius: 999px; }
progress::-webkit-progress-value { background: var(--primary); border-radius: 999px; }
progress::-moz-progress-bar { background: var(--primary); border-radius: 999px; }

form, .form-step, .form-grid { display: grid; gap: 14px; }

.form-step h3 { font-size: 1.04rem; scroll-margin-top: 22px; }
.form-grid { margin: 0; padding: 12px; min-width: 0; border: 1px solid var(--line); border-radius: 12px; }

.form-field { display: grid; gap: 5px; min-width: 0; }

label { font-size: .875rem; font-weight: 700; }
.required-mark { color: var(--primary); }

input, select, textarea {
  width: 100%;
  min-width: 0;
  min-height: 45px;
  padding: 9px 12px;
  border: 1px solid rgba(29, 48, 39, .24);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}

select { padding-right: 24px; text-overflow: ellipsis; }
textarea { min-height: 70px; resize: vertical; }
input::placeholder, textarea::placeholder, select:invalid { color: var(--muted); }
select option { color: var(--text); }
small, .form-note { color: var(--muted); font-size: .78rem; }

input[type="file"] { padding: 7px 10px; font-size: .82rem; color: var(--muted); }
input::file-selector-button {
  margin-right: 10px;
  padding: 6px 10px;
  border: 0;
  border-radius: 7px;
  background: var(--surface-soft);
  color: var(--primary);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

:where(input, select, textarea, button, a):focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.button {
  min-height: 50px;
  margin-top: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 18px;
  border: 0;
  border-radius: var(--radius-md);
  color: var(--bg);
  font: inherit;
  font-size: .94rem;
  font-weight: 800;
  cursor: pointer;
}

.form-actions { display: flex; gap: 10px; }
.form-actions .button-primary { flex: 1; min-width: 0; }
.button-secondary { background: var(--surface-soft); color: var(--primary); }
.button-secondary:hover { background: var(--line); }

.button-primary {
  background: var(--primary);
  box-shadow: 0 14px 28px rgba(15, 107, 69, .22);
  transition: background-color .18s ease, transform .18s ease;
}

.button-primary:hover:not(:disabled) { background: var(--surface-dark); transform: translateY(-2px); }
.button:disabled { opacity: .62; cursor: default; }
.form-note { margin: -4px 0 0; text-align: center; }
.form-note[data-status="erro"] { color: #992b2b; }
.form-note[data-status="sucesso"] { color: var(--primary); font-weight: 700; }

.shared-footer {
  padding-block: 18px;
  border-top: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  font-size: .76rem;
}

.shared-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 5px 20px;
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 32px), 540px); }
  .shared-header__inner { min-height: 64px; }
  .shared-header__logo { width: 40px; height: 40px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 26px; padding-block: 30px 40px; }
  .hero-copy { padding-top: 0; }
  .hero-note { display: none; }
  .hero-lead { margin-top: 13px; }
  .eyebrow { margin-bottom: 12px; font-size: .67rem; }
  .form-card { border-radius: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .button-primary { transition: none; }
  .button-primary:hover:not(:disabled) { transform: none; }
}
