:root {
  --green: #0b6f3e;
  --green-2: #128b50;
  --green-3: #22a866;
  --deep-green: #083f27;
  --yellow: #d7d300;
  --yellow-2: #eee740;
  --text: #173123;
  --muted: #65756b;
  --line: rgba(9,83,48,.13);
  --surface: rgba(245,249,244,.80);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(215,211,0,.12), transparent 24%),
    radial-gradient(circle at top right, rgba(18,139,80,.12), transparent 22%),
    linear-gradient(180deg, #dfe9e1 0%, #e8eee7 48%, #dce7de 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .72; }
.page-shell { min-height: 100vh; }

main {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: 24px 0 50px;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr);
  align-items: center;
  gap: 36px;
  border-radius: 30px;
  padding: 54px;
  color: #fff;
  background:
    radial-gradient(circle at 84% 4%, rgba(238,231,64,.28), transparent 24%),
    radial-gradient(circle at 8% 0%, rgba(255,255,255,.10), transparent 26%),
    linear-gradient(135deg, #073d25 0%, #0b5733 48%, #157544 100%);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 26px 70px rgba(4,45,26,.24), inset 0 1px 0 rgba(255,255,255,.08);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -30%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 28%, rgba(238,231,64,.15), transparent 20%),
    radial-gradient(circle at 78% 68%, rgba(34,168,102,.20), transparent 24%);
  filter: blur(4px);
  animation: ouvidoriaHeroGlow 11s ease-in-out infinite alternate;
}
.hero::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  right: -180px;
  top: -190px;
  border: 60px solid rgba(238,231,64,.10);
  border-radius: 50%;
  box-shadow: 0 0 90px rgba(238,231,64,.05);
  pointer-events: none;
}
.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 820px;
}
.eyebrow,
.process-kicker,
.process-number,
.success-dialog .eyebrow {
  color: var(--yellow-2);
  font-weight: 800;
}
.eyebrow { font-size: 11px; letter-spacing: .16em; }
.hero h1 {
  margin: 12px 0 14px;
  max-width: 700px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: .98;
  letter-spacing: -.05em;
  color: #fff;
  text-shadow: 0 12px 28px rgba(0,0,0,.13);
}
.hero-copy > p {
  max-width: 700px;
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255,255,255,.76);
}

.hero-process {
  position: relative;
  z-index: 2;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 4px 4px 28px;
}
.hero-process::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(238,231,64,.52) 22%, rgba(238,231,64,.52) 78%, transparent);
}
.process-kicker {
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 26px;
}
.process-stage { position: relative; min-height: 122px; }
.process-step {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(12px);
  animation: processStepCycle 16s ease-in-out infinite;
  pointer-events: none;
}
.process-step:nth-child(2) { animation-delay: 4s; }
.process-step:nth-child(3) { animation-delay: 8s; }
.process-step:nth-child(4) { animation-delay: 12s; }
.process-number {
  display: block;
  font-size: 12px;
  letter-spacing: .18em;
  margin-bottom: 9px;
}
.process-step strong {
  display: block;
  color: #fff;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -.025em;
  text-shadow: 0 12px 28px rgba(0,0,0,.13);
}
.process-step p {
  max-width: 320px;
  margin: 9px 0 0;
  color: rgba(255,255,255,.76);
  font-size: 13px;
  line-height: 1.58;
}
.process-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}
.process-progress span {
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,.15);
  overflow: hidden;
}
.process-progress span::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: var(--yellow-2);
  box-shadow: 0 0 12px rgba(238,231,64,.34);
  transform: scaleX(0);
  transform-origin: left;
  animation: processProgress 16s linear infinite;
}
.process-progress span:nth-child(2)::after { animation-delay: 4s; }
.process-progress span:nth-child(3)::after { animation-delay: 8s; }
.process-progress span:nth-child(4)::after { animation-delay: 12s; }

.content-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 24px;
  align-items: start;
}
.form-card {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border-radius: 26px;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.70);
  box-shadow: 0 24px 62px rgba(16,63,38,.14), inset 0 1px 0 rgba(255,255,255,.58);
  backdrop-filter: blur(26px) saturate(145%);
  -webkit-backdrop-filter: blur(26px) saturate(145%);
}
.form-card::before {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(238,231,64,.72), transparent);
  opacity: .75;
  pointer-events: none;
  animation: ouvidoriaTopLine 6.8s ease-in-out infinite;
}
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.section-heading {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.section-heading > span {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(215,211,0,.15);
  color: var(--green);
  border: 1px solid rgba(215,211,0,.20);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.58);
  font-weight: 800;
  font-size: 12px;
}
.section-heading h2 { margin: 0; font-size: 20px; letter-spacing: -.02em; color: #163d28; }
.section-heading p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: 1fr 1fr; }
label { display: block; margin-bottom: 18px; }
label > span:first-child:not(.toggle-ui),
.attachment-label,
.attachment-meta b {
  display: block;
  color: #244231;
  font-size: 12px;
  font-weight: 700;
}
label > span:first-child:not(.toggle-ui) { margin-bottom: 8px; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.90);
  color: var(--text);
  border-radius: 12px;
  padding: 13px 14px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.62);
  transition: border .2s, box-shadow .2s, background .2s;
}
input:focus, select:focus, textarea:focus {
  border-color: rgba(18,139,80,.58);
  box-shadow: 0 0 0 4px rgba(18,139,80,.11), 0 10px 24px rgba(16,63,38,.06);
  background: #fff;
}
textarea { resize: vertical; min-height: 150px; line-height: 1.55; }
label small { display: block; text-align: right; font-size: 10px; color: #718078; margin-top: 7px; }
.divider { height: 1px; background: var(--line); margin: 14px 0 30px; }
.identity-box { padding-top: 7px; }
.identity-phone { width: calc(50% - 8px); margin-left: auto; margin-right: auto; }
.consent { display: flex; gap: 10px; align-items: flex-start; padding-top: 4px; }
.consent input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--green); }
.consent span { font-size: 11px; line-height: 1.55; color: var(--muted); }
.form-alert {
  padding: 12px 14px;
  border-radius: 12px;
  margin: 0 0 14px;
  background: #fff1f0;
  color: #9f2d28;
  font-size: 12px;
  border: 1px solid #ffd6d1;
}

input[type="date"] { height: 48px; min-height: 48px; padding-top: 0; padding-bottom: 0; line-height: normal; }
input[type="date"]::-webkit-date-and-time-value {
  min-height: 46px;
  display: flex;
  align-items: center;
  text-align: left;
  margin: 0;
  padding: 0;
}
input[type="date"]::-webkit-datetime-edit {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0;
}
input[type="date"]::-webkit-datetime-edit-fields-wrapper { display: flex; align-items: center; padding: 0; }
input[type="date"]::-webkit-calendar-picker-indicator { margin: 0; padding: 5px 0 5px 8px; }

.attachment-field { margin: 2px 0 22px; }
.attachment-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.attachment-heading p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.attachment-count {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(215,211,0,.15);
  color: #5f6500;
  border: 1px solid rgba(215,211,0,.20);
  font-size: 10px;
  font-weight: 800;
}
.attachment-dropzone {
  margin: 0;
  padding: 22px 18px;
  border: 1.5px dashed rgba(11,111,62,.20);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255,255,255,.86), rgba(231,238,232,.82));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.60);
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s, box-shadow .2s, transform .2s;
}
.attachment-dropzone:hover,
.attachment-dropzone.is-dragging {
  border-color: rgba(215,211,0,.56);
  background: linear-gradient(160deg, #fff, #f4f6dd);
  box-shadow: 0 0 0 4px rgba(215,211,0,.10), 0 14px 30px rgba(16,63,38,.08);
  transform: translateY(-1px);
}
.attachment-dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.attachment-dropzone .attachment-icon,
.attachment-file-icon,
.success-icon {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #f1ea49, #cfc900);
  color: #0a482c;
  box-shadow: 0 8px 18px rgba(86,112,30,.14), inset 0 1px 0 rgba(255,255,255,.52);
}
.attachment-dropzone .attachment-icon { width: 38px; height: 38px; margin: 0 auto 10px; border-radius: 12px; font-size: 23px; line-height: 1; }
.attachment-dropzone strong { display: block; font-size: 13px; color: var(--text); }
.attachment-dropzone > span:not(.attachment-icon) { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }
.attachment-dropzone small { display: block; margin-top: 10px; text-align: center; font-size: 10px; line-height: 1.45; color: #718078; }
.attachment-list { display: grid; gap: 8px; margin-top: 10px; }
.attachment-item { display: flex; align-items: center; gap: 10px; padding: 10px 11px; border: 1px solid rgba(9,83,48,.11); border-radius: 12px; background: rgba(255,255,255,.86); }
.attachment-file-icon { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 9px; font-size: 15px; }
.attachment-meta { min-width: 0; flex: 1; }
.attachment-meta b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.attachment-meta span { display: block; margin-top: 2px; font-size: 9px; color: #718078; }
.attachment-remove { flex: 0 0 auto; border: 0; background: transparent; color: #65756b; width: 30px; height: 30px; border-radius: 8px; font-size: 17px; line-height: 1; }
.attachment-remove:hover { background: #f3eee5; color: #9f2d28; }
.attachment-error { margin-top: 9px; padding: 10px 12px; border-radius: 10px; background: #fff1f0; border: 1px solid #ffd6d1; color: #9f2d28; font-size: 11px; line-height: 1.45; }

.primary-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  border: 1px solid rgba(8,95,53,.34);
  border-radius: 13px;
  padding: 15px 18px;
  background: linear-gradient(135deg, #0a7742 0%, #139657 56%, #1ead66 100%);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 14px 30px rgba(16,93,53,.20), inset 0 1px 0 rgba(255,255,255,.18);
  transition: transform .24s cubic-bezier(.2,.8,.2,1), box-shadow .24s ease, filter .24s ease;
}
.primary-button::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(145deg, rgba(255,255,255,.16), transparent 46%, rgba(255,255,255,.03)); pointer-events: none; }
.primary-button::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -42%;
  width: 30%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
  filter: blur(1px);
  opacity: 0;
  pointer-events: none;
  animation: premiumAutoSheen 7.2s ease-in-out infinite;
}
.primary-button:hover { background: linear-gradient(135deg, #0a7742 0%, #149655 56%, #22ad68 100%); transform: translateY(-2px); box-shadow: 0 20px 38px rgba(16,93,53,.25), inset 0 1px 0 rgba(255,255,255,.22); }
.primary-button:active { transform: scale(.988); }

footer {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: 0 0 30px;
  display: flex;
  justify-content: center;
  text-align: center;
  gap: 20px;
  color: var(--muted);
  font-size: 10px;
}
.developer-footer a { color: inherit; text-decoration: none; font-weight: 700; }
.developer-footer a:hover { text-decoration: underline; }

.success-dialog {
  width: min(92vw, 500px);
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 24px;
  padding: 34px;
  text-align: center;
  background: rgba(248,251,246,.96);
  color: var(--text);
  box-shadow: 0 30px 90px rgba(4,45,26,.30);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
}
.success-dialog::backdrop { background: rgba(6,47,29,.70); backdrop-filter: blur(7px); }
.success-icon { width: 52px; height: 52px; margin: 0 auto 18px; border-radius: 50%; font-size: 23px; font-weight: 900; }
.success-dialog h2 { margin: 8px 0; font-size: 26px; }
.success-dialog > p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.protocol { margin: 20px 0; padding: 16px; border-radius: 13px; background: linear-gradient(160deg, rgba(255,255,255,.84), rgba(231,238,232,.90)); border: 1px dashed rgba(11,111,62,.24); font-weight: 800; font-size: 20px; letter-spacing: .05em; color: var(--green); box-shadow: inset 0 1px 0 rgba(255,255,255,.64); }
.demo-warning { padding: 12px; background: rgba(215,211,0,.12); border-radius: 10px; color: #626500; font-size: 10px; }
.success-dialog .primary-button { margin-top: 18px; }
#copyProtocol { margin-top: 10px; background: rgba(247,250,245,.90); color: #0a6f3e; border: 1px solid rgba(9,83,48,.12); box-shadow: 0 8px 22px rgba(16,63,38,.07); }
#copyProtocol::after { background: linear-gradient(90deg, transparent, rgba(13,111,63,.11), transparent); }
#copyProtocol:hover { background: #f7f7dc; }

@keyframes premiumAutoSheen {
  0%, 58% { left: -42%; opacity: 0; }
  63% { opacity: .72; }
  79% { left: 118%; opacity: .20; }
  83%, 100% { left: 118%; opacity: 0; }
}
@keyframes ouvidoriaHeroGlow {
  0% { transform: translate3d(-2%, -1%, 0) scale(1); opacity: .72; }
  50% { transform: translate3d(2%, 1.5%, 0) scale(1.04); opacity: 1; }
  100% { transform: translate3d(-1%, 2%, 0) scale(1.02); opacity: .78; }
}
@keyframes ouvidoriaTopLine {
  0%, 100% { opacity: .35; transform: scaleX(.72); }
  50% { opacity: .9; transform: scaleX(1); }
}
@keyframes processStepCycle {
  0% { opacity: 0; transform: translateY(12px); }
  5%, 20% { opacity: 1; transform: translateY(0); }
  24%, 100% { opacity: 0; transform: translateY(-10px); }
}
@keyframes processProgress {
  0% { transform: scaleX(0); opacity: 1; }
  24% { transform: scaleX(1); opacity: 1; }
  25%, 100% { transform: scaleX(0); opacity: 0; }
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 36px 28px; }
  .hero-process { min-height: 205px; margin-top: 10px; padding-left: 24px; }
  .process-step p { max-width: 480px; }
}

@media (max-width: 620px) {
  body { background-attachment: scroll; }
  main, footer { width: calc(100% - 28px); }
  main { padding-top: 14px; padding-bottom: 38px; }
  .hero { border-radius: 22px; padding: 32px 22px; gap: 24px; }
  .hero::before { filter: blur(2px); animation-duration: 14s; }
  .hero h1 { font-size: 38px; }
  .hero-copy > p { font-size: 14px; }
  .hero-process { min-height: 190px; padding-left: 20px; }
  .process-step strong { font-size: 19px; }
  .form-card { padding: 24px 18px; border-radius: 20px; backdrop-filter: blur(14px) saturate(125%); -webkit-backdrop-filter: blur(14px) saturate(125%); }
  .grid.two { grid-template-columns: 1fr; gap: 0; }
  .identity-phone { width: 100%; }
  .form-card, .form-card .grid, .form-card label { width: 100%; max-width: 100%; min-width: 0; }
  .form-card label { margin-bottom: 14px; }
  .form-card input:not([type="checkbox"]):not([type="file"]),
  .form-card select {
    box-sizing: border-box;
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 50px;
    min-height: 50px;
    margin: 0;
    padding: 0 15px;
    border-radius: 13px;
    font-size: 16px;
    line-height: normal;
    text-align: left;
    background-color: rgba(255,255,255,.92);
    background-clip: padding-box;
  }
  .form-card select {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 48px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2365756b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 9 5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px 18px;
  }
  .form-card input[type="date"] {
    -webkit-appearance: none;
    appearance: none;
    height: 50px;
    min-height: 50px;
    padding: 0 48px 0 15px;
    overflow: hidden;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2365756b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 19px 19px;
  }
  .form-card input[type="date"]::-webkit-calendar-picker-indicator { opacity: 0; width: 0; height: 0; margin: 0; padding: 0; }
  .form-card input[type="date"]::-webkit-date-and-time-value { display: flex; align-items: center; width: 100%; height: 50px; min-height: 50px; margin: 0; padding: 0; text-align: left; }
  .form-card input[type="date"]::-webkit-datetime-edit { display: flex; align-items: center; min-width: 0; height: 50px; margin: 0; padding: 0; line-height: normal; }
  .form-card textarea { display: block; width: 100%; max-width: 100%; min-width: 0; min-height: 150px; margin: 0; padding: 15px; border-radius: 13px; font-size: 16px; }
  .form-card input::placeholder, .form-card textarea::placeholder { font-size: 16px; }
  .attachment-heading { gap: 10px; }
  .attachment-dropzone { transform: none !important; }
  footer { padding-bottom: 24px; flex-direction: column; gap: 5px; }
  .success-dialog { backdrop-filter: blur(16px) saturate(125%); -webkit-backdrop-filter: blur(16px) saturate(125%); }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .form-card::before,
  .primary-button::after,
  .process-step,
  .process-progress span::after { animation: none !important; }
  .process-step:first-child { opacity: 1; transform: none; }
  .process-progress span:first-child::after { transform: scaleX(1); opacity: 1; }
  .primary-button, .attachment-dropzone { transition: none; }
}
