:root {
  --clr-navy: #092a5a;
  --clr-teal: #089ca5;
  --clr-teal-light: #ebf1f1;
  --clr-border: #d1d3d7;
  --clr-muted: #afafaf;
  --clr-bg: #f8f8f8;
  --clr-white: #ffffff;
  --clr-error: #e5484d;

  --ff-display: "Goldplay", "Poppins", sans-serif;
  --ff-primary: "Typold", "Poppins", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  margin: 0;
  padding: 0 !important;
  font-family: var(--ff-primary), sans-serif;
  font-weight: normal;
  font-style: normal;
  font-size: 16px;
  color: #000;
  background: var(--clr-bg);
  overflow-x: hidden !important;
  text-wrap: balance;
}

a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  color: var(--clr-teal);
}

.custom-container {
  --max-width: 1440px;
  --padding: 2rem;
  width: min(var(--max-width), 100% - (2 * var(--padding)));
  margin: 0 auto;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s,
    transform 0.6s;
}

html.has-js .reveal {
  opacity: 0;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Funnel (multi-step form) */

.funnel {
  padding-top: 30px;
  background: var(--clr-bg);
}

.funnel__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 50px;
  padding: 37px 0;
}

.funnel[data-step="1"] .funnel__stage {
  position: relative;
  z-index: 0;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.funnel__logo {
  display: block;
  width: 100px;
}

.funnel[data-step="1"] .funnel__logo {
  display: none;
}

.funnel__logo img {
  display: block;
  width: 100%;
  height: auto;
}

.funnel__panel {
  position: relative;
  width: 100%;
  max-width: 750px;
}

.funnel[data-step="1"] .funnel__panel {
  max-width: 600px;
  background: var(--clr-white);
  box-shadow: 0 0 30px rgba(9, 35, 94, 0.12);
  border-radius: 30px;
  padding: 40px;
}

.funnel[data-step="1"] .funnel__panel::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -260px;
  width: 655px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--clr-teal-light);
  z-index: -1;
  pointer-events: none;
}

.funnel__form {
  display: flex;
  flex-direction: column;
  gap: 35px;
  width: 100%;
}

/* Hero (step 1 only) */
.hero {
  display: none;
  position: relative;
  min-width: 0;
}

.funnel[data-step="1"] .hero {
  display: block;
}

.hero__copy {
  position: relative;
  max-width: 380px;
}

.hero__logo {
  display: block;
  width: 161px;
  margin-bottom: 50px;
}

.hero__logo img {
  display: block;
  width: 100%;
  height: auto;
}

.hero__title {
  font-family: var(--ff-display), sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 3.4vw, 50px);
  line-height: 1.1;
  color: var(--clr-navy);
  margin: 0;
}

.hero__title span {
  color: var(--clr-teal);
}

.hero__figure {
  position: absolute;
  top: 100%;
  left: 200px;
  width: min(60vw, 525px);
  margin-top: -20px;
}

.hero__figure img {
  display: block;
  width: 100%;
  height: auto;
}

/* Progress bar (namespaced as .step-progress: Bootstrap already ships a .progress-bar class) */

.step-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.step-progress__track {
  display: flex;
  gap: 11px;
  flex: 1;
  max-width: 570px;
}

.step-progress__segment {
  height: 8px;
  border-radius: 4px;
  flex: 1;
  background: var(--clr-teal-light);
}

.step-progress__segment.is-filled {
  background: var(--clr-teal);
}

.step-progress__label {
  font-size: 16px;
  color: var(--clr-navy);
  white-space: nowrap;
  margin-left: 16px;
}

/* Step title + info box */

.step-title {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.step-title__heading {
  font-family: var(--ff-display), sans-serif;
  font-weight: 700;
  font-size: clamp(20px, 2vw, 25px);
  color: var(--clr-navy);
  margin: 0;
}

.step-title__hint {
  font-size: 14px;
  color: #000;
  margin: 0;
}

.step-title__info {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--clr-teal-light);
  border-radius: 10px;
  padding: 10px 20px;
  margin-top: 12px;
}

.step-title__info img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.step-title__info p {
  margin: 0;
  font-size: clamp(12px, 1.1vw, 13px);
  color: #000;
}

/* Step content (fields) */

.step {
  display: none;
  flex-direction: column;
  gap: 13px;
  width: 100%;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.step.is-active {
  display: flex;
}

.step.is-active.is-visible {
  opacity: 1;
  transform: none;
}

/* Radio options */

.option {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 50px;
  padding: 10px 20px;
  border: 1px solid var(--clr-border);
  border-radius: 10px;
  background: var(--clr-white);
  cursor: pointer;
  transition: border-color 0.2s;
}

.option:has(.option__input:checked) {
  border-color: var(--clr-teal);
}

.option__input {
  appearance: none;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin: 0;
  border: 1.5px solid var(--clr-border);
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.option__input:checked {
  border-color: var(--clr-teal);
}

.option__input:checked::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--clr-teal);
}

.option__text {
  font-size: 16px;
  color: #000;
}

/* Text inputs */

.field {
  position: relative;
  width: 100%;
}

.field__icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.field__input {
  width: 100%;
  height: 50px;
  border: 1px solid var(--clr-border);
  border-radius: 10px;
  background: var(--clr-white);
  padding: 0 44px;
  font-family: var(--ff-primary), sans-serif;
  font-size: 16px;
  color: #000;
}

.field__input::placeholder {
  color: var(--clr-muted);
}

.field__input:focus {
  outline: none;
  border-color: var(--clr-teal);
}

.field.is-valid .field__input {
  border-color: var(--clr-teal);
}

.field--postal .field__icon {
  width: 24px;
  height: 24px;
}

.field--postal .field__input {
  padding-left: 54px;
}

.field--no-icon .field__input {
  padding-left: 20px;
}

/* Terms checkbox */

.terms {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}

.terms__input {
  appearance: none;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin: 0;
  border: 1.5px solid var(--clr-border);
  border-radius: 5px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.terms__input:checked {
  background: var(--clr-teal);
  border-color: var(--clr-teal);
}

.terms__input:checked::after {
  content: "\2713";
  color: var(--clr-white);
  font-size: 13px;
  line-height: 1;
}

.terms__text {
  font-size: 14px;
  color: #000;
}

.terms__text a {
  color: var(--clr-teal);
  text-decoration: underline;
}

/* Form validation errors (jQuery Validate) */

label.error {
  display: block;
  width: 100%;
  margin-top: -4px;
  font-size: 13px;
  color: var(--clr-error);
}

.field__input.error,
input.error {
  border-color: var(--clr-error) !important;
}

.option:has(.option__input.error) {
  border-color: var(--clr-error);
}

/* Actions (buttons + security note) */

.step-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  margin-top: 15px;
}

.step-actions__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 20px;
}

.funnel[data-step="1"] .step-actions__row {
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 15px;
  height: 60px;
  padding: clamp(8px, 2vw, 9px) clamp(16px, 4vw, 30px);
  border-radius: 5px;
  border: none;
  font-family: var(--ff-primary), sans-serif;
  font-weight: 700;
  font-size: clamp(14px, 3.2vw, 18px);
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}

.btn--primary {
  background: var(--clr-navy);
  color: var(--clr-white);
  transition: background-color 0.2s;
}

.btn--primary:hover {
  background: var(--clr-teal);
  color: var(--clr-white);
}

.funnel[data-step="1"] .btn--primary {
  width: 100%;
}

.btn--outline {
  background: transparent;
  color: var(--clr-navy);
  border: 1px solid var(--clr-navy);
  flex-shrink: 0;
  transition:
    color 0.2s,
    border-color 0.2s;
}

.btn--outline:hover {
  color: var(--clr-teal);
  border-color: var(--clr-teal);
}

.btn__icon {
  display: inline-block;
  width: 20px;
  height: 14px;
  background-color: currentColor;
  -webkit-mask-image: url(/img/arrow.svg);
  mask-image: url(/img/arrow.svg);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.btn--outline .btn__icon {
  transform: scaleX(-1);
}

.security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.security-note img {
  width: 14px;
  height: 18px;
  flex-shrink: 0;
}

.security-note p {
  margin: 0;
  font-size: 12px;
  color: var(--clr-navy);
  text-align: center;
}

.funnel[data-step="5"] .security-note {
  display: none;
}

/* ADS footer */

#section-ads {
  display: flex;
  justify-content: center;
  width: 100%;
  flex-shrink: 0;
  margin-top: auto;
  background: var(--clr-white);
  padding: 33px 0;
}

#section-ads a {
  width: unset;
  padding: 20px;
}

/* Outcome pages (agradecimento / particular) */

.outcome {
  padding-top: 30px;
  background: var(--clr-bg);
}

.outcome__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.outcome__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 0 0 50px;
  text-align: center;
}

.outcome__logo {
  width: 100px;
}

.outcome__logo img {
  display: block;
  width: 100%;
  height: auto;
}

.outcome__icon {
  width: 100px;
  height: 100px;
}

.outcome__title {
  font-family: var(--ff-display), sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 2.8vw, 40px);
  color: var(--clr-navy);
  margin: 0;
}

.outcome__subtitle {
  font-family: var(--ff-primary), sans-serif;
  font-weight: 700;
  font-size: clamp(18px, 1.8vw, 25px);
  color: var(--clr-teal);
  margin: 12px 0 0;
  max-width: 700px;
}

.outcome__text {
  font-size: clamp(14px, 1.4vw, 16px);
  color: #000;
  max-width: 480px;
  margin: 0 auto;
}

.outcome__text strong {
  color: var(--clr-teal);
}

.outcome__features {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 40px;
  max-width: 1058px;
  margin: 0 auto;
  padding: 40px 60px;
  background: var(--clr-teal-light);
  border-radius: 30px;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 260px;
  padding: 20px 0;
  text-align: center;
}

.feature__icon {
  width: 70px;
  height: 70px;
}

.feature__title {
  font-weight: 700;
  font-size: 18px;
  color: var(--clr-navy);
  margin: 0;
}

.feature__text {
  font-size: clamp(14px, 1.4vw, 16px);
  color: #000;
  margin: 0;
}

.feature-divider {
  width: 1px;
  background: var(--clr-border);
}

.outcome__security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 50px 0;
}

.outcome__security img {
  width: 14px;
  height: 18px;
  flex-shrink: 0;
}

.outcome__security p {
  margin: 0;
  font-size: 12px;
  line-height: 1.2;
  color: var(--clr-navy);
}

@media (max-width: 1300px) {
  .hero__figure {
    left: 0;
    margin: 0;
  }
}
@media (max-width: 1200px) {
  .hero__figure {
    margin-top: 100px;
    width: 400px;
  }
}
@media (max-width: 992px) {
  .funnel[data-step="1"] .funnel__stage {
    flex-direction: column;
  }

  .funnel[data-step="1"] .funnel__panel,
  .funnel__panel {
    max-width: 450px;
  }

  .outcome__features {
    flex-wrap: wrap;
    padding: 30px;
  }

  .feature-divider {
    display: none;
  }
  .hero__copy {
    max-width: 100%;
    width: 100%;
    text-align: center;
  }
  .funnel[data-step="1"] .hero {
    display: block;
    width: 100%;
  }
  .hero__logo {
    margin-inline: auto;
  }
  .hero__title br {
    display: none;
  }
  .hero__title {
    max-width: 500px;
  }
  .hero__copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .funnel__panel {
    margin-inline: auto;
  }
  .hero__figure {
    display: none;
  }
}

@media (max-width: 576px) {
  .feature {
    width: 100%;
    max-width: 300px;
    padding: 10px;
  }
  .option__text {
    font-size: 15px;
    line-height: 1.2;
  }
}
