.page-formulario {
  background: #20120b;
}

.page-formulario .site {
  background: #2b180e;
}

.form-page {
  position: relative;
  background: #2b180e;
}

.form-hero {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  isolation: isolate;
  background: #1f120c;
}

.form-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
  z-index: -3;
}

.form-hero__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(90deg,rgba(21,10,5,.82) 0%,rgba(21,10,5,.58) 33%,rgba(21,10,5,.16) 58%,rgba(21,10,5,.08) 100%),linear-gradient(180deg,rgba(10,5,2,.15),rgba(10,5,2,.28));
}

.form-hero__inner {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: center;
  width: min(calc(100% - 96px),1380px);
  margin-inline: auto;
}

.form-hero__copy {
  width: min(520px,43%);
  padding: 54px 6px 72px 4px;
  color: #fff7e8;
  text-shadow: 0 2px 16px rgba(0,0,0,.25);
}

.form-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem,5.25vw,5.35rem);
  font-weight: 400;
  line-height: .88;
  letter-spacing: -.035em;
  color: #fff0c8;
}

.form-title__line {
  display: block;
  white-space: nowrap;
}

.form-hero__copy>p:last-child {
  max-width: 470px;
  margin-top: 17px;
  font-size: clamp(1rem,1.35vw,1.28rem);
  line-height: 1.42;
  color: #fffaf0;
}

.form-hero__seal-wrap {
  position: absolute;
  z-index: 4;
  right: 22px;
  bottom: 10px;
  width: min(300px,22vw);
  pointer-events: none;
  transform: rotate(-2deg);
}

.form-hero__seal {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 14px 28px rgba(32,13,5,.26));
  opacity: 1;
}

.form-shell {
  position: relative;
  margin-top: -50px;
  padding: 0 0 18px;
  z-index: 4;
  background: linear-gradient(180deg,transparent 0 32px,#2b180e 32px);
}

.form-shell__container {
  position: relative;
  width: min(calc(100% - 96px),1400px);
  padding: 54px 54px 36px;
  border: 1px solid rgba(156,105,45,.35);
  border-radius: 34px 34px 26px 26px;
  background: #f4e5c9 url("../img/web/section-story-paper-full.webp") center top/cover no-repeat;
  box-shadow: 0 24px 65px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.55);
}

.form-shell__container::before,.form-shell__container::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
  width: 170px;
  height: 170px;
  opacity: .5;
  background: url("../img/icons/snowflake.svg") center/contain no-repeat;
  filter: sepia(1) saturate(.8);
}

.form-shell__container::before {
  top: 20px;
  right: 24px;
  transform: rotate(14deg);
  opacity: .08;
}

.form-shell__container::after {
  left: 18px;
  bottom: 70px;
  transform: rotate(-8deg);
  opacity: .06;
}

.form-progress,.santa-form {
  position: relative;
  z-index: 1;
}

.form-progress {
  margin: 0 0 36px;
  padding: 15px 18px;
  border: 1px solid rgba(157,102,44,.23);
  border-radius: 14px;
  background: rgba(255,250,240,.56);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

.form-progress__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 10px;
  font-family: var(--font-ui);
  font-size: .72rem;
  letter-spacing: .04em;
  color: #6e5845;
}

.form-progress__top strong {
  color: #9d1d20;
}

.form-progress__track {
  height: 6px;
  border-radius: 20px;
  background: rgba(123,84,44,.15);
  overflow: hidden;
}

.form-progress__track span {
  display: block;
  width: 14.28%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg,#97171c,#c58b35);
  transition: width .42s var(--ease-out);
}

.santa-form {
  color: #2f231c;
}

.form-step {
  position: relative;
  scroll-margin-top: 118px;
}

.step-head {
  display: grid;
  grid-template-columns: 58px 1fr 30px;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.step-head--compact {
  margin-bottom: 0;
}

.step-number {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(180deg,#c8111e,#a20510);
  color: #fffaf0;
  font-family: var(--font-display);
  font-size: 2rem;
  box-shadow: 0 7px 18px rgba(129,9,16,.18),inset 0 1px 0 rgba(255,255,255,.28);
}

.step-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem,2.25vw,2.65rem);
  font-weight: 400;
  line-height: 1;
  color: #a71218;
  letter-spacing: -.025em;
}

.step-head p {
  margin-top: 4px;
  font-size: .98rem;
  color: #5e4a3b;
}

.step-status {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #265944;
  color: #fff;
  font: 700 .83rem/1 var(--font-ui);
  opacity: 0;
  transform: scale(.72);
  transition: opacity .25s ease,transform .25s var(--ease-out);
}

.form-step.is-complete .step-status {
  opacity: 1;
  transform: scale(1);
}

.field-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 22px;
}

.field-grid--4 {
  grid-template-columns: repeat(4,minmax(0,1fr));
}

.field-grid--2 {
  grid-template-columns: repeat(2,minmax(0,1fr));
}

.field-grid--3 {
  grid-template-columns: 1fr 1fr 1.7fr;
}

.field {
  display: grid;
  gap: 8px;
  min-width: 0;
  font-size: .94rem;
}

.field>span {
  line-height: 1.25;
  color: #33271f;
}

.field b {
  color: #b7181e;
}

.field input,.field select,.field textarea {
  width: 100%;
  border: 1px solid rgba(132,94,58,.28);
  border-radius: 8px;
  background: rgba(255,255,255,.64);
  color: #241b16;
  outline: 0;
  box-shadow: inset 0 1px 2px rgba(85,49,24,.045);
  transition: border-color .2s ease,box-shadow .2s ease,background .2s ease,transform .2s ease;
}

.field input,.field select {
  height: 52px;
  padding: 0 15px;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 48px;
  background-color: rgba(255,255,255,.72);
  background-image: linear-gradient(45deg,transparent 50%,#8f1a20 50%),linear-gradient(135deg,#8f1a20 50%,transparent 50%),linear-gradient(to right,rgba(148,104,63,.18),rgba(148,104,63,.18));
  background-position: calc(100% - 22px) 22px,calc(100% - 16px) 22px,calc(100% - 46px) 9px;
  background-size: 6px 6px,6px 6px,1px 34px;
  background-repeat: no-repeat;
  cursor: pointer;
  font-family: var(--font-ui);
  font-weight: 600;
  color: #33251d;
  box-shadow: 0 4px 12px rgba(73,42,20,.04),inset 0 1px 0 rgba(255,255,255,.72);
}

.field select:hover {
  border-color: rgba(164,108,48,.55);
  background-color: #fffaf2;
}

.field select:focus {
  background-image: linear-gradient(135deg,transparent 50%,#8f1a20 50%),linear-gradient(45deg,#8f1a20 50%,transparent 50%),linear-gradient(to right,rgba(148,104,63,.18),rgba(148,104,63,.18));
  background-position: calc(100% - 22px) 19px,calc(100% - 16px) 19px,calc(100% - 46px) 9px;
}

.field textarea {
  min-height: 168px;
  padding: 15px;
  resize: vertical;
  line-height: 1.45;
}

.field input::placeholder,.field textarea::placeholder {
  color: #9b9188;
}

.field input:focus,.field select:focus,.field textarea:focus {
  border-color: #b38239;
  background: #fffdf8;
  box-shadow: 0 0 0 3px rgba(190,143,64,.14),0 5px 18px rgba(80,48,25,.06);
}

.field.has-error input,.field.has-error select,.field.has-error textarea {
  border-color: #b7181e;
  box-shadow: 0 0 0 3px rgba(183,24,30,.1);
}

.field--solo {
  width: 100%;
}

.form-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 22px;
  color: #b8863b;
}

.form-divider::before,.form-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg,transparent,rgba(159,105,48,.38));
}

.form-divider::after {
  background: linear-gradient(90deg,rgba(159,105,48,.38),transparent);
}

.form-divider span {
  font-size: .8rem;
}

.split-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
}

.split-steps .form-step:first-child::after {
  content: "";
  position: absolute;
  right: -22px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(151,99,49,.22);
}

.animal-row {
  display: grid;
  grid-template-columns: auto minmax(230px,1fr) minmax(280px,.9fr) minmax(230px,.9fr);
  gap: 22px;
  align-items: end;
}

.animal-row .step-head {
  grid-template-columns: 58px minmax(230px,1fr) 0;
  gap: 18px;
}

.animal-select {
  align-self: end;
}

.pet-choice {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 28px;
  min-width: 0;
  height: 52px;
  margin: 0;
  padding: 0 0 11px;
  border: 0;
}

.pet-choice legend {
  position: absolute;
  transform: translateY(-37px);
  font-size: .94rem;
}

.pet-choice label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.pet-choice input,.choice-card input,.no-photo input {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  flex: 0 0 auto;
  background: #fffdf8;
  border: 1.5px solid #b58a59;
  box-shadow: inset 0 1px 2px rgba(65,39,22,.06),0 1px 0 rgba(255,255,255,.75);
  cursor: pointer;
  transition: background .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}

.pet-choice input:hover,.choice-card input:hover,.no-photo input:hover {
  border-color: #b71922;
  box-shadow: 0 0 0 3px rgba(183,25,34,.08);
}

.pet-choice input {
  width: 23px;
  height: 23px;
  border-radius: 50%;
}

.pet-choice input:checked {
  border-color: #b71922;
  background: radial-gradient(circle at center,#b71922 0 5px,#fffdf8 6px 100%);
}

.pet-choice input:checked::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px solid rgba(183,25,34,.18);
}

.pet-name {
  transition: opacity .25s ease;
}

.pet-name.is-disabled {
  opacity: .45;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(6,minmax(0,1fr));
  gap: 12px;
}

.choice-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 10px 13px;
  border: 1px solid rgba(141,91,41,.25);
  border-radius: 9px;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  text-align: center;
  font-size: .84rem;
  line-height: 1.25;
  transition: border-color .2s ease,background .2s ease,transform .2s ease,box-shadow .2s ease;
}

.choice-card:hover {
  transform: translateY(-1px);
  border-color: rgba(156,104,44,.55);
  box-shadow: 0 7px 18px rgba(80,48,25,.05);
}

.choice-card:has(input:checked) {
  border-color: #b71922;
  background: #fff5ef;
  box-shadow: 0 0 0 2px rgba(183,25,34,.07);
}

.choice-card input {
  width: 23px;
  height: 23px;
  border-radius: 6px;
}

.choice-card input:checked,.no-photo input:checked {
  border-color: #b71922;
  background: #b71922;
}

.choice-card input:checked::after,.no-photo input:checked::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font: 800 15px/1 Arial,sans-serif;
}

.choice-card.is-disabled {
  opacity: .42;
  cursor: not-allowed;
}

.choice-help {
  margin-top: 10px;
  text-align: right;
  font: 600 .68rem/1.2 var(--font-ui);
  color: #7b6655;
}

.final-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 28px;
  align-items: stretch;
}

.form-step--photos {
  padding: 18px 20px 20px;
  border: 1.4px solid #c51d22;
  border-radius: 18px;
  background: rgba(255,245,239,.58);
}

.form-step--photos .step-head {
  margin-bottom: 16px;
}

.upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.upload-card {
  position: relative;
  display: flex;
  min-height: 150px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 9px;
  padding: 16px;
  border: 1px dashed rgba(180,31,35,.54);
  border-radius: 11px;
  background: rgba(255,255,255,.48);
  text-align: center;
  cursor: pointer;
  transition: background .2s ease,border-color .2s ease,transform .2s ease;
}

.upload-card:hover,.upload-card.is-dragover {
  background: #fff9f3;
  border-color: #b71922;
  transform: translateY(-1px);
  box-shadow: 0 0 0 3px rgba(183,25,34,.06);
}

.upload-card input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-icon {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex: 0 0 auto;
}

.upload-card strong {
  font-size: .9rem;
  font-weight: 400;
}

.upload-card em {
  font-size: .67rem;
  color: #76645a;
  font-style: normal;
  line-height: 1.2;
}

.upload-card .upload-hint {
  font-size: .66rem;
  color: #9b6f50;
}

.upload-card small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 7px;
  background: linear-gradient(180deg,#c91c24,#a80811);
  color: #fff;
  font: 650 .7rem/1 var(--font-ui);
}

.upload-card.has-file {
  border-style: solid;
  border-color: #2f7659;
  background: #f8fff9;
}

.upload-card.has-file small {
  background: #2f7659;
}

.no-photo {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 13px;
  font-size: .74rem;
  line-height: 1.35;
  cursor: pointer;
}

.no-photo input {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  margin-top: 0;
}

.form-submit-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}

.form-submit {
  min-width: min(100%,420px);
  min-height: 58px;
  border-radius: 12px;
  font-size: .83rem;
}

.form-submit svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.autosave-note {
  font: 500 .68rem/1.3 var(--font-ui);
  color: #786250;
}

.autosave-note span {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  margin-right: 5px;
  border-radius: 50%;
  background: #2f7659;
  color: #fff;
  font-size: .65rem;
}

.form-closing {
  position: relative;
  height: clamp(260px,26vw,470px);
  margin-top: -12px;
  overflow: hidden;
  background: #2b180e;
}

.form-closing picture,.form-closing img {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: auto;
}

.form-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 2000;
  max-width: min(92vw,520px);
  padding: 13px 18px;
  border-radius: 12px;
  background: #1f3628;
  color: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
  font: 600 .78rem/1.3 var(--font-ui);
  opacity: 0;
  transform: translate(-50%,18px);
  pointer-events: none;
  transition: opacity .25s ease,transform .25s ease;
}

.form-toast.is-visible {
  opacity: 1;
  transform: translate(-50%,0);
}

@media (max-width:1180px) {
  .field-grid--4,.field-grid--2 {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .choice-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }

  .animal-row {
    grid-template-columns: 1fr 1fr;
  }

  .animal-row .step-head {
    grid-column: 1/-1;
  }

  .pet-choice {
    justify-content: flex-start;
  }

  .form-shell__container {
    padding-inline: 34px;
  }
}

@media (max-width:900px) {
  .form-hero {
    min-height: 540px;
  }

  .form-hero__inner {
    min-height: 540px;
    align-items: flex-end;
    width: min(calc(100% - 48px),760px);
  }

  .form-hero__bg {
    object-position: 65% center;
  }

  .form-hero__shade {
    background: linear-gradient(180deg,rgba(16,8,4,.1) 20%,rgba(16,8,4,.78) 75%,rgba(16,8,4,.93) 100%);
  }

  .form-hero__copy {
    width: min(100%,620px);
    padding: 0 0 74px;
  }

  .form-hero h1 {
    font-size: clamp(3rem,9.5vw,5rem);
  }

  .form-hero__seal-wrap {
    right: 10px;
    bottom: 12px;
    width: 168px;
  }

  .form-shell {
    margin-top: -34px;
  }

  .form-shell__container {
    width: min(calc(100% - 28px),760px);
    padding: 36px 24px 26px;
    border-radius: 26px;
  }

  .split-steps,.final-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .split-steps .form-step:first-child::after {
    display: none;
  }

  .field-grid--3 {
    grid-template-columns: 1fr 1fr;
  }

  .field-grid--3 .field:last-child {
    grid-column: 1/-1;
  }
}

@media (max-width:640px) {
  .page-formulario .site-header {
    position: sticky;
  }

  .form-hero {
    min-height: 470px;
  }

  .form-hero__inner {
    min-height: 470px;
  }

  .form-hero__bg {
    object-position: 66% 50%;
  }

  .form-hero__copy {
    padding-bottom: 58px;
  }

  .form-hero h1 {
    max-width: 340px;
    font-size: clamp(2.65rem,13vw,4rem);
  }

  .form-hero__copy>p:last-child {
    max-width: 320px;
    font-size: .95rem;
  }

  .form-hero__seal-wrap {
    width: 126px;
    right: 4px;
    bottom: 14px;
  }

  .form-shell {
    margin-top: -24px;
    background: linear-gradient(180deg,transparent 0 20px,#2b180e 20px);
  }

  .form-shell__postmark {
    right: 10px;
    top: -36px;
    width: 104px;
  }

  .form-shell__container {
    width: calc(100% - 24px);
    padding: 28px 14px 22px;
    border-radius: 20px;
  }

  .form-progress {
    margin-bottom: 26px;
    padding: 12px 13px;
  }

  .step-head {
    grid-template-columns: 50px 1fr 24px;
    gap: 12px;
    margin-bottom: 17px;
  }

  .step-number {
    width: 50px;
    height: 50px;
    font-size: 1.75rem;
  }

  .step-head h2 {
    font-size: clamp(1.55rem,7vw,2rem);
  }

  .step-head p {
    font-size: .87rem;
  }

  .field-grid--4,.field-grid--3,.field-grid--2,.animal-row {
    grid-template-columns: 1fr;
  }

  .field-grid {
    gap: 15px;
    margin-bottom: 16px;
  }

  .field-grid--3 .field:last-child {
    grid-column: auto;
  }

  .animal-row .step-head {
    grid-column: auto;
    grid-template-columns: 50px 1fr 24px;
  }

  .animal-select {
    margin-top: -4px;
  }

  .pet-choice {
    height: auto;
    justify-content: flex-start;
    padding: 26px 3px 4px;
    gap: 26px;
  }

  .pet-choice legend {
    transform: translateY(-28px);
  }

  .choice-grid {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .choice-card {
    justify-content: flex-start;
    min-height: 62px;
    padding: 9px 10px;
    text-align: left;
    font-size: .78rem;
  }

  .final-grid {
    gap: 18px;
  }

  .form-step--photos {
    padding: 16px 12px 15px;
  }

  .upload-grid {
    grid-template-columns: 1fr;
  }

  .upload-card {
    min-height: 128px;
  }

  .form-divider {
    margin: 15px 0 18px;
  }

  .form-submit {
    min-width: 100%;
    padding-inline: 15px;
    font-size: .74rem;
  }

  .form-closing {
    height: clamp(290px,90vw,380px);
    margin-top: -2px;
  }

  .form-closing img {
    width: 100%;
    max-width: none;
  }
}

@media (max-width:390px) {
  .choice-grid {
    grid-template-columns: 1fr;
  }

  .form-hero__seal-wrap {
    width: 104px;
  }
}

@media (max-width:820px) {
  .form-hero {
    min-height: 650px;
    background: #f2dfbd;
    overflow: visible;
  }

  .form-hero__bg {
    inset: 0 0 auto;
    height: 360px;
    object-position: 64% 34%;
  }

  .form-hero__shade {
    height: 360px;
    background: linear-gradient(180deg,rgba(12,6,3,.05) 0%,rgba(12,6,3,.10) 60%,rgba(12,6,3,.28) 100%);
  }

  .form-hero__inner {
    min-height: 650px;
    width: 100%;
    display: block;
    padding: 0;
  }

  .form-hero__copy {
    position: absolute;
    left: 0;
    right: 0;
    top: 360px;
    width: 100%;
    padding: 42px 26px 58px;
    text-align: center;
    color: #3b281d;
    text-shadow: none;
    background: #f4e5c9 url("../img/web/section-story-paper-full.webp") center/cover no-repeat;
  }

  .form-hero h1 {
    max-width: 520px;
    margin: 0 auto;
    color: #a71218;
    font-size: clamp(2.6rem,10vw,4.2rem);
    line-height: .92;
    letter-spacing: -.035em;
  }

  .form-title__line {
    white-space: normal;
  }

  .form-hero__copy>p:last-child {
    max-width: 500px;
    margin: 16px auto 0;
    color: #3e2d24;
    font-size: 1rem;
    line-height: 1.38;
  }

  .form-hero__seal-wrap {
    right: 18px;
    top: 310px;
    bottom: auto;
    width: 148px;
    z-index: 7;
    transform: rotate(-4deg);
  }

  .form-shell {
    margin-top: -8px;
    padding-top: 0;
    background: #2b180e;
  }

  .form-shell__container {
    width: calc(100% - 28px);
    padding: 30px 20px 24px;
    border-radius: 24px;
  }
}

@media (max-width:560px) {
  .form-hero {
    min-height: 620px;
  }

  .form-hero__bg,.form-hero__shade {
    height: 325px;
  }

  .form-hero__bg {
    object-position: 67% 32%;
  }

  .form-hero__inner {
    min-height: 620px;
  }

  .form-hero__copy {
    top: 325px;
    padding: 38px 20px 52px;
  }

  .form-hero h1 {
    max-width: 360px;
    font-size: clamp(2.55rem,12.2vw,3.6rem);
  }

  .form-hero__copy>p:last-child {
    max-width: 330px;
    font-size: .94rem;
  }

  .form-hero__seal-wrap {
    top: 285px;
    right: 10px;
    width: 122px;
  }

  .form-shell {
    margin-top: -4px;
  }

  .form-shell__container {
    width: calc(100% - 20px);
    padding: 26px 14px 22px;
    border-radius: 20px;
  }
}

/* Campos específicos dos três formulários */

.conditional-field {
  display: none;
  margin-top: 12px;
}

.conditional-field.is-visible {
  display: grid;
}

.choice-grid--2 {
  grid-template-columns: repeat(2,minmax(0,1fr));
}

.choice-grid--3 {
  grid-template-columns: repeat(3,minmax(0,1fr));
}

.choice-grid--4 {
  grid-template-columns: repeat(4,minmax(0,1fr));
}

.choice-grid--auto {
  grid-template-columns: repeat(auto-fit,minmax(190px,1fr));
}

.choice-card--radio input {
  border-radius: 50%;
}

.choice-card--radio input:checked {
  background: radial-gradient(circle at center,#b71922 0 5px,#fffdf8 6px 100%);
}

.choice-card--radio input:checked::after {
  display: none;
}

.field-note {
  font-size: .72rem;
  line-height: 1.35;
  color: #7d6858;
}

.calculated-note {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 9px;
  background: rgba(255,255,255,.45);
  font: 600 .72rem/1.35 var(--font-ui);
  color: #6c5848;
}

.upload-grid--3 {
  grid-template-columns: repeat(3,minmax(0,1fr));
}

.section-note {
  margin: -8px 0 16px 76px;
  font-size: .78rem;
  color: #745e4d;
}

.inline-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.inline-choice .choice-card {
  min-width: 120px;
  flex: 1 1 120px;
}

.small-textarea textarea {
  min-height: 110px;
}

.field input[type="number"] {
  appearance: textfield;
}

.field input[type="number"]::-webkit-outer-spin-button,.field input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

@media (max-width:900px) {
  .choice-grid--4,.choice-grid--3,.upload-grid--3 {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media (max-width:640px) {
  .choice-grid--4,.choice-grid--3,.choice-grid--2,.upload-grid--3 {
    grid-template-columns: 1fr;
  }

  .section-note {
    margin: -6px 0 14px 62px;
  }
}

/* v1.99.22 — Formulário Criança: hero mobile igual à composição Ricco.
 * Em telemóvel a fotografia fica como bloco superior e o texto passa para
 * uma folha de papel a toda a largura, com o selo a sobrepor a transição.
 * Desktop/tablet não são alterados.
 */
@media (max-width:640px) {
  body.page-formulario .form-hero {
    display:block !important;
    min-height:0 !important;
    overflow:visible !important;
    background:#f4e5c9 !important;
  }

  body.page-formulario .form-hero__bg {
    position:relative !important;
    inset:auto !important;
    z-index:0 !important;
    display:block !important;
    width:100% !important;
    height:clamp(270px,78vw,325px) !important;
    object-fit:cover !important;
    object-position:center 48% !important;
  }

  body.page-formulario .form-hero__shade {
    display:none !important;
  }

  body.page-formulario .form-hero__inner {
    position:relative !important;
    z-index:2 !important;
    display:block !important;
    width:100% !important;
    min-height:0 !important;
    margin:0 !important;
    padding:0 !important;
    background-color:#f4e5c9 !important;
    background-image:url("../img/web/section-story-paper-full.webp") !important;
    background-position:center top !important;
    background-size:cover !important;
    background-repeat:no-repeat !important;
  }

  body.page-formulario .form-hero__copy {
    box-sizing:border-box !important;
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:30px 22px 38px !important;
    color:#34251d !important;
    text-align:center !important;
    text-shadow:none !important;
  }

  body.page-formulario .form-hero h1 {
    width:100% !important;
    max-width:none !important;
    margin:0 auto !important;
    font-size:clamp(2.65rem,12.8vw,3.45rem) !important;
    line-height:.88 !important;
    letter-spacing:-.035em !important;
    color:#b10d18 !important;
    text-shadow:none !important;
  }

  body.page-formulario .form-title__line {
    display:inline !important;
    white-space:normal !important;
  }

  body.page-formulario .form-title__line + .form-title__line::before {
    content:" " !important;
  }

  body.page-formulario .form-hero__copy > p:last-child {
    max-width:330px !important;
    margin:22px auto 0 !important;
    font-size:.94rem !important;
    line-height:1.45 !important;
    color:#3c2a21 !important;
    text-shadow:none !important;
  }

  body.page-formulario .form-hero__seal-wrap {
    position:absolute !important;
    z-index:5 !important;
    top:-42px !important;
    right:12px !important;
    bottom:auto !important;
    width:118px !important;
    transform:rotate(-5deg) !important;
  }

  body.page-formulario .form-hero__seal {
    width:100% !important;
    height:auto !important;
    filter:drop-shadow(0 8px 13px rgba(54,29,12,.22)) !important;
  }
}
