:root {
  --ink: #172033;
  --ink-soft: #5b6678;
  --blue: #173f5c;
  --blue-2: #245f82;
  --blue-soft: #eaf2f7;
  --gold: #b88a4a;
  --gold-soft: #f8f1e7;
  --paper: #fff;
  --canvas: #f3f6f8;
  --line: #d9e2e9;
  --danger: #a62929;
  --radius: 22px;
  --shadow: 0 20px 55px -38px rgba(23, 63, 92, .55);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

button, input, select { font: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  position: relative;
  z-index: 20;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(217, 226, 233, .9);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(1160px, calc(100% - 40px));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand img { display: block; width: 176px; height: auto; max-height: 55px; object-fit: contain; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: .94rem;
  font-weight: 700;
  text-decoration: none;
}

.back-link:hover { color: var(--blue-2); }

.hero {
  min-height: 340px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 25%, rgba(255, 255, 255, .12), transparent 24%),
    linear-gradient(120deg, #102f47, #1c5576 66%, #367693);
  color: white;
}

.hero-photo {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: auto;
  height: 100%;
  aspect-ratio: 16 / 9;
  transform: translateX(-50%);
  background:
    linear-gradient(90deg,
      rgba(16, 47, 71, .72),
      rgba(16, 47, 71, .2) 28%,
      rgba(22, 70, 96, .16) 72%,
      rgba(30, 91, 122, .7)),
    linear-gradient(180deg, rgba(8, 32, 49, .12), rgba(8, 32, 49, .3)),
    url("sala-casamentos.jpeg") center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 76%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 76%, transparent 100%);
  pointer-events: none;
}

.hero-inner {
  width: min(1160px, calc(100% - 40px));
  min-height: 340px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 680px) 420px;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 54px;
  background: linear-gradient(178deg, transparent 48%, var(--canvas) 50%);
  z-index: 2;
}

.hero-content {
  width: 100%;
  justify-self: start;
  margin-left: 0;
  padding: 52px 18px 76px 0;
  position: relative;
  z-index: 2;
}

.eyebrow, .section-kicker {
  color: #cdb17d;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 10px 0 12px;
  max-width: 650px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.55rem, 4.65vw, 4.65rem);
  line-height: .98;
  letter-spacing: -.045em;
}

.hero h1 em { color: #e0c79b; font-weight: 600; }

.hero-content > p { max-width: 540px; margin: 0; color: rgba(255, 255, 255, .82); font-size: 1.06rem; }

.hero-notes {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-note {
  width: fit-content;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .09);
  color: rgba(255, 255, 255, .9);
  font-size: .88rem;
}

.hero-note span { color: #e0c79b; margin-right: 7px; }

.hero-art {
  width: 420px;
  min-height: 300px;
  position: relative;
  z-index: 1;
  justify-self: end;
  display: grid;
  place-items: center;
}

.wedding-illustration {
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 20px 24px rgba(5, 29, 44, .2));
}

.wedding-illustration__rings circle {
  stroke: #d7ae61;
  stroke-width: 11;
}

.wedding-illustration__rings .wedding-illustration__ring-back {
  stroke: #c79743;
  stroke-width: 9;
}

.wedding-illustration__diamond path:first-child {
  fill: rgba(255, 255, 255, .92);
  stroke: #f2dfb8;
  stroke-width: 3;
  stroke-linejoin: round;
}

.wedding-illustration__diamond path:last-child {
  fill: none;
  stroke: rgba(31, 93, 122, .52);
  stroke-width: 1.5;
}

.wedding-illustration__couple,
.wedding-illustration__small-rings {
  stroke: rgba(255, 255, 255, .96);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wedding-illustration__small-rings { stroke-width: 2.4; }
.wedding-illustration__sparkles { fill: rgba(255, 255, 255, .94); }

.shell { width: min(1120px, calc(100% - 40px)); margin: -18px auto 0; position: relative; z-index: 3; }

.flash-list { display: grid; gap: 10px; margin: 0 0 18px; }
.flash { padding: 14px 17px; border-radius: 14px; border: 1px solid; font-weight: 600; }
.flash--error { color: #842020; background: #fff1f1; border-color: #f1c7c7; }

.stepper {
  display: grid;
  grid-template-columns: 1fr 72px 1fr 72px 1fr;
  align-items: center;
  margin: 0 auto 26px;
  padding: 14px 20px;
  border: 1px solid rgba(217, 226, 233, .9);
  border-radius: 20px;
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow);
}

.stepper-item {
  min-width: 0;
  padding: 7px;
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #8a94a2;
  text-align: left;
  cursor: default;
}

.stepper-item > span:first-child {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid #cdd7de;
  border-radius: 50%;
  font-weight: 700;
  background: white;
}

.stepper-item > span:last-child { display: grid; min-width: 0; }
.stepper-item b { color: inherit; font-size: .92rem; }
.stepper-item small { font-size: .78rem; color: #919aa8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stepper-item.is-active { color: var(--blue); }
.stepper-item.is-active > span:first-child { color: white; border-color: var(--blue); background: var(--blue); }
.stepper-item.is-complete { color: var(--blue-2); cursor: pointer; }
.stepper-item.is-complete > span:first-child { color: var(--blue); border-color: #a9c4d5; background: var(--blue-soft); }
.step-line { height: 1px; background: #d8e1e7; }

.step-panel {
  margin-bottom: 34px;
  padding: clamp(25px, 5vw, 58px);
  border: 1px solid #e1e8ed;
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 30px 70px -55px rgba(20, 54, 77, .65);
}

.step-panel[hidden] { display: none; }

.panel-intro { max-width: 760px; margin-bottom: 30px; }
.panel-intro h2 { margin: 5px 0 8px; font-family: "Playfair Display", Georgia, serif; color: var(--blue); font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.08; letter-spacing: -.025em; }
.panel-intro p { margin: 0; color: var(--ink-soft); font-size: 1.02rem; }

.competence-note, .privacy-box {
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid #cadde9;
  border-radius: 17px;
  background: var(--blue-soft);
}

.competence-note strong { color: var(--blue); }
.competence-note p, .privacy-box p { margin: 2px 0 0; color: #42566a; }
.note-icon, .privacy-box > span { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--blue); font-family: Georgia, serif; font-weight: 700; }

.content-title { margin: 34px 0 14px; color: var(--blue); font-family: "Playfair Display", Georgia, serif; font-size: 1.45rem; }
.info-grid { display: grid; gap: 14px; }
.info-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.info-card { min-height: 220px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #fbfcfd; }
.card-number { color: var(--gold); font-size: .83rem; font-weight: 700; letter-spacing: .12em; }
.info-card h4, .regime-guide h4 { margin: 16px 0 7px; color: var(--blue); font-size: 1.03rem; }
.info-card p, .regime-guide p { margin: 0; color: var(--ink-soft); font-size: .92rem; }

.split-content, .orientation-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin-top: 16px; }
.check-card { padding: 22px; border-radius: 18px; background: #eef5f8; border: 1px solid #d3e4eb; }
.check-card--warm { background: var(--gold-soft); border-color: #ead9bd; }
.check-card h3, .soft-card h3 { margin: 0 0 12px; color: var(--blue); font-size: 1.05rem; }
.check-card ul, .soft-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.check-card li, .soft-card li { position: relative; padding-left: 20px; color: #465568; font-size: .92rem; }
.check-card li::before, .soft-card li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

.regime-guide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: 18px; }
.regime-guide article { padding: 20px; }
.regime-guide article + article { border-left: 1px solid var(--line); }
.regime-guide h4 { margin-top: 0; }
.legal-note { margin: 12px 0 0; color: #718096; font-size: .84rem; }

.confirm-box {
  margin-top: 30px;
  padding: 17px 19px;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  border: 1px solid #cbd9e2;
  border-radius: 15px;
  background: #f8fafc;
  cursor: pointer;
}

.confirm-box input, .final-confirm input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); flex: 0 0 auto; }
.confirm-box span { display: grid; }
.confirm-box small { color: var(--ink-soft); font-size: .82rem; }

.panel-actions { margin-top: 28px; display: flex; justify-content: space-between; gap: 12px; }
.panel-actions--end { justify-content: flex-end; }
.button { min-height: 48px; padding: 11px 19px; border: 1px solid transparent; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-1px); }
.button--primary { color: white; background: var(--blue); box-shadow: 0 12px 25px -18px rgba(23, 63, 92, .8); }
.button--primary:hover { background: var(--blue-2); }
.button--secondary { color: var(--blue); border-color: #c9d6df; background: white; }
.button--secondary:hover { border-color: #9fb8c8; background: #f8fafc; }
.button--submit { min-width: 250px; }

.orientation-list { border-top: 1px solid var(--line); }
.orientation-list article { display: grid; grid-template-columns: 54px 1fr; gap: 15px; padding: 21px 0; border-bottom: 1px solid var(--line); }
.orientation-list article > span { color: var(--gold); font-size: .82rem; font-weight: 700; letter-spacing: .1em; }
.orientation-list h3 { margin: -4px 0 5px; color: var(--blue); font-size: 1.05rem; }
.orientation-list p { margin: 0; color: var(--ink-soft); }
.soft-card { min-height: 230px; padding: 23px; border: 1px solid #dfd5c4; border-radius: 18px; background: #fbf7f0; }
.soft-card + .soft-card { border-color: #d3e1e8; background: #f0f6f8; }
.soft-card p { color: var(--ink-soft); }
.soft-icon { display: block; margin-bottom: 10px; color: var(--gold); font-size: 1.45rem; }

.form-card { margin-top: 18px; padding: clamp(20px, 3.7vw, 32px); border: 1px solid var(--line); border-radius: var(--radius); background: #fcfdfe; }
.form-card + .form-card { margin-top: 22px; }
.card-heading { margin-bottom: 23px; }
.card-heading h3 { margin: 4px 0 5px; color: var(--blue); font-family: "Playfair Display", Georgia, serif; font-size: 1.8rem; }
.card-heading p { margin: 0; color: var(--ink-soft); }

.form-grid { display: grid; gap: 16px 14px; }
.form-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { min-width: 0; display: grid; align-content: start; gap: 7px; color: #334155; font-size: .9rem; font-weight: 600; }
.field b, .choice-title b, .upload-box b { color: var(--danger); }
.field small { color: #7b8795; font-size: .78rem; font-weight: 400; }
.field--wide { grid-column: span 2; }
.field--small { max-width: 170px; }

.field input, .field select {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #cbd6df;
  border-radius: 11px;
  outline: 0;
  color: var(--ink);
  background: white;
  font-size: 1rem;
  font-weight: 400;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.field select {
  appearance: none;
  padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, #66788a 50%), linear-gradient(135deg, #66788a 50%, transparent 50%);
  background-position: calc(100% - 18px) 21px, calc(100% - 12px) 21px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.field input:focus, .field select:focus { border-color: #6698b6; box-shadow: 0 0 0 4px rgba(76, 134, 169, .12); }
.field input:user-invalid, .field select:user-invalid { border-color: #d78686; }
.field input:disabled { color: #788594; border-color: #d7dfe5; background: #eef2f5; cursor: not-allowed; }

.field-label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.field-label-row > label:first-child { color: #334155; font-weight: 600; }
.no-email-toggle { display: inline-flex; align-items: center; gap: 6px; color: #526377; font-size: .8rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.no-email-toggle input { width: 17px; min-height: 17px; height: 17px; padding: 0; margin: 0; accent-color: var(--blue); box-shadow: none; }
.no-email-toggle input:focus { box-shadow: 0 0 0 3px rgba(76, 134, 169, .14); }
.cep-status { min-height: 1.15em; color: #4b7289 !important; }
.cep-status.is-error { color: var(--danger) !important; }

.choice-block { margin-top: 22px; }
.choice-title { display: block; margin-bottom: 9px; color: #334155; font-size: .9rem; font-weight: 700; }
.choice-help { margin: -5px 0 10px; color: #728094; font-size: .84rem; }
.option-grid { display: grid; gap: 11px; }
.option-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.option-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.option-card { position: relative; min-height: 86px; cursor: pointer; }
.option-card input { position: absolute; opacity: 0; pointer-events: none; }
.option-card span { height: 100%; padding: 15px 16px; display: grid; align-content: center; border: 1px solid #d0dae2; border-radius: 13px; background: white; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.option-card b { color: var(--blue); font-size: .94rem; }
.option-card small { color: #748194; font-size: .8rem; }
.option-card input:checked + span { border-color: #5685a1; background: #eef6fa; box-shadow: inset 0 0 0 1px #5685a1; }
.option-card input:focus-visible + span { outline: 3px solid rgba(59, 130, 246, .25); outline-offset: 2px; }

.inline-choices { display: flex; flex-wrap: wrap; gap: 9px; }
.mini-choice { position: relative; cursor: pointer; }
.mini-choice input { position: absolute; opacity: 0; }
.mini-choice span { min-height: 40px; padding: 8px 15px; display: grid; place-items: center; border: 1px solid #cbd6df; border-radius: 999px; color: #46576a; background: white; font-size: .9rem; font-weight: 600; }
.mini-choice input:checked + span { color: white; border-color: var(--blue); background: var(--blue); }
.mini-choice input:focus-visible + span { outline: 3px solid rgba(59, 130, 246, .25); outline-offset: 2px; }

.conditional-field { display: none; margin-top: 13px; max-width: 600px; }
.conditional-field.is-visible { display: grid; }
.field--instagram { margin-top: 18px; max-width: 420px; }
.input-prefix { display: flex; align-items: center; border: 1px solid #cbd6df; border-radius: 11px; overflow: hidden; background: white; }
.input-prefix > span { padding-left: 13px; color: #6a7786; font-size: 1rem; }
.input-prefix input { border: 0; box-shadow: none !important; }

.name-change-row { margin-top: 22px; display: grid; grid-template-columns: max-content minmax(320px, 600px); align-items: end; gap: 20px 28px; }
.name-change-row .choice-block, .parent-situation.choice-block { margin-top: 0; }
.name-change-field { margin-top: 0; max-width: none; }

.parents-grid { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 24px; }
.parent-card { min-width: 0; padding: 18px; border: 1px solid #dbe3e9; border-radius: 16px; background: white; }
.parent-card legend { padding: 0 8px; color: var(--blue); font-weight: 700; }
.parent-summary-grid { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(390px, 1.35fr); align-items: end; gap: 14px 22px; }
.parent-card .form-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.parent-details { margin-top: 17px; padding-top: 17px; border-top: 1px solid #e4eaf0; }
.parent-details[hidden], .parent-ignored[hidden] { display: none; }
.parent-address-heading { grid-column: 1 / -1; margin-top: 6px; padding-top: 15px; display: grid; gap: 4px; border-top: 1px solid #e4eaf0; color: var(--blue); }
.parent-address-heading small { color: #7b8795; font-size: .8rem; font-weight: 400; }
.parent-card [data-parent-name]:read-only { color: #536273; border-color: #d7dfe5; background: #eef2f5; }
.copy-address-toggle, .unknown-date-toggle { width: fit-content; margin-top: 8px; display: inline-flex; align-items: center; gap: 7px; color: #40576a; font-size: .84rem; font-weight: 700; cursor: pointer; }
.copy-address-toggle input, .field .unknown-date-toggle input { width: 18px; min-height: 18px; height: 18px; padding: 0; margin: 0; accent-color: var(--blue); box-shadow: none; }
.copy-address-status { min-height: 1em; color: #4b7289 !important; }
.death-date-field { grid-column: span 2; }
.parent-ignored { margin-top: 17px; padding: 16px 18px; display: grid; gap: 3px; border: 1px solid #d9e4eb; border-radius: 12px; color: #607083; background: #f4f7f9; }
.parent-ignored strong { color: var(--blue); font-size: .95rem; }
.parent-ignored span { font-size: .84rem; }

.date-entry-wrap { position: relative; }
.field .date-entry { padding-right: 48px; border-color: #c4d9e7; background: linear-gradient(180deg, #fbfdff 0%, #f1f7fc 100%); color: #1e3342; font-weight: 600; letter-spacing: .01em; }
.field .date-entry:hover { border-color: #abc7dc; }
.date-entry-btn { position: absolute; top: 50%; right: 8px; width: 30px; height: 30px; min-height: 30px; padding: 0; transform: translateY(-50%); border: 1px solid #c3d8e6; border-radius: 8px; background: rgba(122, 183, 214, .22); cursor: pointer; }
.date-entry-btn::before { content: ""; display: block; width: 14px; height: 14px; margin: 0 auto; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232b3f59' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M16 2v4'/%3E%3Crect width='18' height='18' x='3' y='4' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; }
.date-entry-btn:hover { background: rgba(122, 183, 214, .34); }
.date-entry-btn:disabled { opacity: .5; cursor: not-allowed; }

.date-picker-popover { position: absolute; z-index: 1200; width: min(296px, calc(100vw - 24px)); padding: 10px; border: 1px solid #c8d9e6; border-radius: 14px; background: white; box-shadow: 0 26px 48px -32px rgba(12, 24, 36, .55); }
.date-picker-popover[hidden] { display: none !important; }
.date-picker-header { margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.date-picker-header strong { color: #23455a; font-size: .9rem; text-transform: capitalize; }
.date-picker-nav { width: 30px; height: 30px; min-height: 30px; padding: 0; border: 1px solid #cfe0eb; border-radius: 8px; color: #305368; background: #f5fbff; font-size: 1.05rem; line-height: 1; cursor: pointer; }
.date-picker-nav:hover { background: #eaf5ff; }
.date-picker-weekdays, .date-picker-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.date-picker-weekdays { margin-bottom: 6px; }
.date-picker-weekdays span { color: #7a8ea1; font-size: .7rem; font-weight: 700; text-align: center; }
.date-picker-grid { gap: 4px; }
.date-cell { width: 100%; height: 32px; min-height: 32px; padding: 0; border: 1px solid transparent; border-radius: 8px; color: #2c4659; background: white; font-size: .82rem; cursor: pointer; }
.date-cell:hover { border-color: #c9deeb; background: #f2f8fd; }
.date-cell.is-muted { color: #a0b2c1; }
.date-cell.is-today { border-color: #8cb8d5; color: #254f73; font-weight: 700; }
.date-cell.is-selected { border-color: #173f5c; color: white; background: var(--blue); font-weight: 700; }
.date-cell:disabled { color: #bdc8d1; background: #f7f9fa; cursor: not-allowed; }
.date-picker-footer { margin-top: 8px; display: flex; justify-content: space-between; gap: 8px; }
.date-picker-footer button { min-height: 30px; padding: 0 10px; border: 1px solid #cfe0eb; border-radius: 8px; color: #3f5b71; background: #f7fbff; font-size: .72rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; cursor: pointer; }
.date-picker-footer button:hover { background: #ecf6ff; }

.upload-box {
  margin-top: 24px;
  padding: 17px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 16px;
  border: 1px dashed #9fb9c8;
  border-radius: 15px;
  background: #f1f7fa;
}

.upload-box strong { color: var(--blue); }
.upload-box p { margin: 3px 0 0; color: #607083; font-size: .84rem; }
.upload-button { cursor: pointer; }
.upload-button input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-button span { min-height: 42px; padding: 9px 14px; display: grid; place-items: center; border: 1px solid #aec4d1; border-radius: 10px; color: var(--blue); background: white; font-size: .88rem; font-weight: 700; }
.upload-button input:focus-visible + span { outline: 3px solid rgba(59, 130, 246, .25); outline-offset: 2px; }
.file-status { grid-column: 1 / -1; color: #637386; font-size: .8rem; }
.upload-box--optional { background: #f8fafc; }

.section-divider { margin: 42px 0 16px; text-align: center; }
.section-divider::before { content: ""; display: block; height: 1px; margin-bottom: -15px; background: var(--line); }
.section-divider span { position: relative; padding: 0 18px; color: var(--blue); background: white; font-family: "Playfair Display", Georgia, serif; font-size: 1.65rem; font-weight: 700; }
.section-divider p { margin: 12px 0 0; color: var(--ink-soft); }
.witness-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.witness-card { margin-top: 0 !important; }
.witness-card > legend { padding: 0 8px; color: var(--blue); font-family: "Playfair Display", Georgia, serif; font-size: 1.25rem; font-weight: 700; }
.witness-card .form-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.witness-card .field--wide { grid-column: span 2; }
.privacy-box { margin-top: 25px; }
.final-confirm { margin-top: 17px; display: flex; align-items: flex-start; gap: 10px; color: #425268; font-weight: 600; cursor: pointer; }
.validation-target { scroll-margin: 120px; animation: validationPulse 1.3s ease; }
@keyframes validationPulse {
  0%, 100% { box-shadow: none; }
  25%, 70% { box-shadow: 0 0 0 5px rgba(185, 66, 66, .16); }
}

footer { padding: 28px 20px 40px; display: grid; justify-items: center; color: #7a8795; text-align: center; font-size: .84rem; }
footer img { width: 130px; opacity: .72; }
footer p { margin: 7px 0 0; }

.trap-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.sending-overlay { position: fixed; inset: 0; z-index: 1500; padding: 20px; place-items: center; background: rgba(12, 31, 45, .78); backdrop-filter: blur(8px); }
.sending-overlay:not([hidden]) { display: grid; }
.sending-card { width: min(440px, 100%); padding: 34px; border-radius: 22px; background: white; text-align: center; }
.sending-card h2 { margin: 15px 0 5px; color: var(--blue); font-family: "Playfair Display", Georgia, serif; font-size: 1.65rem; }
.sending-card p { margin: 0; color: var(--ink-soft); }
.spinner { width: 42px; height: 42px; display: inline-block; border: 4px solid #d9e5ec; border-top-color: var(--blue); border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.confirmation-overlay {
  position: fixed;
  inset: 0;
  z-index: 1400;
  padding: 20px;
  place-items: center;
  background: rgba(12, 31, 45, .76);
  backdrop-filter: blur(8px);
}
.confirmation-overlay:not([hidden]) { display: grid; }
.confirmation-card { width: min(520px, 100%); padding: 32px; border-radius: 22px; background: white; box-shadow: 0 28px 70px rgba(5, 23, 36, .32); text-align: center; }
.confirmation-mark { width: 48px; height: 48px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--blue); font-size: 1.25rem; font-weight: 800; }
.confirmation-card h2 { margin: 0 0 9px; color: var(--blue); font-family: "Playfair Display", Georgia, serif; font-size: 1.75rem; }
.confirmation-card p { margin: 0; color: #43566a; font-size: 1rem; line-height: 1.55; }
.confirmation-actions { margin-top: 24px; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.modal-open { overflow: hidden; }

.noscript-note { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 200; padding: 12px; border-radius: 10px; color: white; background: #8a3f18; text-align: center; }

.success-page { min-height: 100vh; padding: 30px 20px; display: grid; place-items: center; background: radial-gradient(circle at 50% 0, #e3eff4, transparent 44%), var(--canvas); }
.success-shell { width: min(660px, 100%); padding: clamp(28px, 6vw, 58px); border: 1px solid var(--line); border-radius: 28px; background: white; box-shadow: var(--shadow); text-align: center; }
.success-logo { width: 170px; margin-bottom: 28px; }
.success-mark { width: 64px; height: 64px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--blue); font-size: 1.8rem; }
.success-shell h1 { margin: 5px 0 12px; color: var(--blue); font-family: "Playfair Display", Georgia, serif; font-size: clamp(2rem, 5vw, 3.4rem); }
.success-shell > p { color: var(--ink-soft); }
.success-note { margin: 24px 0; padding: 17px; display: grid; gap: 4px; border-radius: 15px; background: var(--blue-soft); color: #43566a; text-align: left; }
.success-note b { color: var(--blue); }
.success-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }

@media (max-width: 1100px) and (min-width: 901px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; }
  .hero-art { width: 340px; }
}

@media (max-width: 900px) {
  .hero-photo {
    left: 30%;
    background:
      linear-gradient(90deg, rgba(16, 47, 71, .94), rgba(20, 64, 90, .78)),
      linear-gradient(180deg, rgba(8, 32, 49, .12), rgba(8, 32, 49, .36)),
      url("sala-casamentos.jpeg") center / cover no-repeat;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-content { justify-self: center; margin-left: 0; padding-right: 0; }
  .hero-art { display: none; }
  .info-grid--3, .regime-guide, .option-grid--3 { grid-template-columns: 1fr; }
  .regime-guide article + article { border-left: 0; border-top: 1px solid var(--line); }
  .parents-grid, .witness-grid { grid-template-columns: 1fr; }
  .stepper { grid-template-columns: 1fr 36px 1fr 36px 1fr; padding: 12px; }
  .stepper-item { justify-content: center; }
  .stepper-item > span:last-child { display: none; }
}

@media (max-width: 680px) {
  .header-inner, .shell { width: min(100% - 24px, 1120px); }
  .header-inner { min-height: 70px; }
  .brand img { width: 145px; }
  .back-link { font-size: .86rem; }
  .hero { min-height: 315px; }
  .hero-inner { width: calc(100% - 32px); min-height: 315px; }
  .hero-content { width: calc(100% - 32px); padding: 45px 0 68px; }
  .hero h1 { font-size: clamp(2.45rem, 13vw, 3.6rem); }
  .hero-content > p { font-size: .98rem; }
  .step-panel { padding: 24px 17px; border-radius: 21px; }
  .split-content, .orientation-columns, .form-grid--3, .form-grid--2, .option-grid--2 { grid-template-columns: 1fr; }
  .name-change-row, .parent-summary-grid { grid-template-columns: 1fr; align-items: stretch; }
  .name-change-row { gap: 15px; }
  .field--wide { grid-column: auto; }
  .field--small { max-width: none; }
  .parent-card .form-grid--3, .witness-card .form-grid--3 { grid-template-columns: 1fr; }
  .parent-card .field--wide, .witness-card .field--wide { grid-column: auto; }
  .upload-box { grid-template-columns: 1fr; }
  .file-status { grid-column: auto; }
  .upload-button span { width: 100%; }
  .panel-actions { flex-direction: column-reverse; }
  .panel-actions--end { flex-direction: column; }
  .panel-actions .button { width: 100%; }
  .confirmation-card { padding: 26px 18px; }
  .confirmation-actions { flex-direction: column-reverse; }
  .confirmation-actions .button { width: 100%; }
  .orientation-list article { grid-template-columns: 38px 1fr; }
  .competence-note, .privacy-box { align-items: flex-start; padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
