@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --d-blue: #0a1d37;
  --green: #0a9295;
  --clr-text: #4b5563;
  --clr-text-dark: #374151;
  --clr-border: #e5e7eb;
  --clr-input-bg: #fcfdfd;
  --clr-bg-soft: #f4f7f6;
  --clr-muted: #94a3b8;

  --ff-display: "Sora", sans-serif;
  --ff-primary: "Inter", sans-serif;
}

body {
  margin: 0;
  padding: 0 !important;
  font-family: var(--ff-primary), sans-serif;
  font-weight: normal;
  font-style: normal;
  font-size: 16px;
  color: var(--clr-text-dark);
  overflow-x: hidden !important;
  text-wrap: balance;
}

a {
  text-decoration: none;
}

a:hover {
  color: #000000;
}

#section-ads {
  display: flex;
  justify-content: center;
  width: 100%;
}

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

.custom-container {
  --max-width: 1240px;
  --padding: clamp(20px, 6.94vw, 100px);
  width: min(var(--max-width), 100% - (2 * var(--padding)));
  margin: 0 auto;
}

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

/* Brand / logo, shared by the mobile site header and the desktop hero */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand__mark {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

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

.brand__name {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(18px, 1.8vw, 26px);
  line-height: 1.1;
  color: var(--d-blue);
}

.brand__name span {
  display: block;
  color: var(--green);
}

/* Mobile-only top header bar (desktop keeps the logo inline in the hero) */
.site-header {
  display: none;
  background: #fff;
  border-bottom: 1px solid var(--clr-border);
  padding: 16px 20px;
}

.site-header .brand {
  justify-content: center;
}

.site-header .brand__mark {
  width: 40px;
  height: 40px;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  background: var(--clr-bg-soft);
  overflow: hidden;
  padding-block: 50px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__bg img {
  position: absolute;
  left: 30.8%;
  top: -2.6%;
  width: 43.1%;
  height: auto;
  aspect-ratio: 1273 / 2000;
}

.hero__container {
  position: relative;
  z-index: 1;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 500px) 380px;
  justify-content: space-between;
  column-gap: 60px;
  row-gap: 20px;
  align-items: start;
  grid-template-areas:
    "logo       form"
    "badge      form"
    "title      form"
    "subtitle   form"
    "rating     form"
    "benefits   form"
    "disclaimer form";
}

.hero__logo {
  grid-area: logo;
  margin-bottom: 20px;
}

.hero__badge {
  width: fit-content;
  grid-area: badge;
  display: inline-flex;
  background: var(--d-blue);
  color: #fff;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 5px;
}

.hero__title {
  grid-area: title;
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(26px, 3.1vw, 44px);
  line-height: 1.1;
  color: var(--d-blue);
  margin: 0;
}

.hero__title-accent {
  color: var(--green);
}

.hero__subtitle {
  grid-area: subtitle;
  margin: 0;
  color: var(--clr-text);
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.4;
  max-width: 380px;
}

.hero__rating {
  grid-area: rating;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero__avatars {
  display: flex;
}

.hero__avatars img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  margin-right: -10px;
  border: 2px solid #fff;
}

.hero__stars {
  display: flex;
  align-items: center;
  gap: 3px;
}

.hero__stars img {
  width: 12px;
  height: 12px;
}

.hero__stars-value {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--d-blue);
  margin-left: 2px;
}

.hero__rating-caption {
  margin: 2px 0 0;
  color: var(--clr-text);
  font-size: 12px;
}

.hero__benefits {
  grid-area: benefits;
  display: flex;
  gap: 16px;
}

.benefit-card {
  background: #fff;
  border-radius: 20px;
  padding: 15px;
  flex: 1;
  min-width: 0;
  box-shadow: 0 0 7.5px rgba(10, 29, 55, 0.15);
}

.benefit-card__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
}

.benefit-card__title {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--d-blue);
  margin: 0 0 4px;
  line-height: 1.1;
}

.benefit-card__text {
  font-size: 12px;
  color: var(--clr-text);
  margin: 0;
  line-height: 1.1;
}

.hero__disclaimer {
  grid-area: disclaimer;
  font-size: 11px;
  color: var(--clr-text);
  line-height: 1.4;
  margin: 0;
}

.hero__form {
  grid-area: form;
}

/* ============ QUOTE FORM (multi-step card) ============ */
.quote-form {
  background: #fff;
  border-radius: 30px;
  padding: 30px;
  box-shadow: 0 0 7.5px rgba(10, 29, 55, 0.15);
}

.quote-form__step {
  display: none;
}

.quote-form__step.active {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.quote-form__title {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--d-blue);
  margin: 0 0 6px;
}

.quote-form__step-label {
  font-family: var(--ff-primary);
  font-weight: 700;
  font-size: 12px;
  color: var(--d-blue);
  margin: 0 0 6px;
}

.quote-form__progress {
  height: 12px;
  border-radius: 34px;
  background: var(--clr-border);
  overflow: hidden;
}

.quote-form__progress-fill {
  height: 100%;
  background: var(--green);
  border-radius: 34px;
  box-shadow: 0 0 30px 0 #fff;
}

.quote-form__fields {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.quote-form__field {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 50px;
  padding: 0 16px;
  background: var(--clr-input-bg);
  border: 1px solid var(--clr-border);
  border-radius: 8px;
}

.quote-form__field img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.quote-form__field input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  font-family: var(--ff-primary);
  font-size: 14px;
  color: var(--d-blue);
}

.quote-form__field input::placeholder {
  color: var(--clr-text);
}

.quote-form__field.is-error {
  border-color: #dc2626;
}

.quote-form__error {
  color: #dc2626;
  font-size: 11px;
  margin: -10px 0 0;
}

.quote-form__label {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--d-blue);
  margin: 0;
}

.quote-form__options {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

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

.quote-form__option {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--clr-border);
  background: var(--clr-input-bg);
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--clr-text);
  cursor: pointer;
  padding: 4px;
}

.quote-form__options--income .quote-form__option {
  font-size: 11px;
}

.quote-form__option.is-selected {
  background: var(--d-blue);
  border-color: var(--d-blue);
  color: #fff;
  font-weight: 800;
}

.quote-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.quote-form__checkbox {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 4px;
  border: 1px solid var(--clr-border);
  background: var(--clr-input-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.quote-form__checkbox img {
  width: 12px;
  height: 12px;
  display: none;
}

.quote-form__checkbox.is-checked {
  background: var(--green);
  border-color: var(--green);
}

.quote-form__checkbox.is-checked img {
  display: block;
}

.quote-form__consent-text {
  font-size: 11px;
  line-height: 1.4;
  color: var(--d-blue);
  margin: 0;
}

.quote-form__consent-text a {
  color: var(--green);
  text-decoration: underline;
}

.quote-form__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}

.quote-form__submit:hover {
  filter: brightness(0.95);
}

.quote-form__security {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quote-form__security img {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.quote-form__security p {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--d-blue);
}

/* ============ WHY CHOOSE ============ */
.why-choose {
  background: #fff;
  padding: 60px 0;
}

.why-choose__title {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(22px, 1.7vw, 24px);
  color: var(--d-blue);
  text-align: center;
  margin: 0 0 30px;
}

.why-choose__grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.why-choose__item {
  flex: 1;
  min-width: 240px;
  display: flex;
  gap: 16px;
}

.why-choose__icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

.why-choose__item-title {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--d-blue);
  margin: 0 0 4px;
}

.why-choose__item-text {
  font-size: 13px;
  line-height: 1.1;
  color: var(--clr-text);
  margin: 0;
}

/* ============ FINAL CTA ============ */
.final-cta {
  background: var(--d-blue);
  padding: 40px 0;
}

.final-cta__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 100px;
  flex-wrap: wrap;
}

.final-cta__content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.final-cta__icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

.final-cta__title {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 22px;
  color: #fff;
  margin: 0 0 4px;
}

.final-cta__text {
  font-size: 14px;
  color: var(--clr-border);
  margin: 0;
}

.final-cta__button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 28px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

.final-cta__button img {
  width: 20px;
  height: 20px;
}

.final-cta__button:hover {
  color: #fff;
  filter: brightness(0.95);
}

.welcome__text {
  min-height: 60vh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 8px;
  font-family: var(--ff-display);
  color: var(--d-blue);
}

/* RESPONSIVE  */
@media (max-width: 991px) {
  .hero__benefits {
    flex-direction: column;
    gap: 8px;
  }
  .benefit-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 8px 15px;
  }
  .benefit-card__icon {
    margin-bottom: 0;
    height: 25px;
    width: 25px;
  }
}
@media (max-width: 850px) {
  .site-header {
    display: block;
  }

  .hero {
    padding-block: 32px;
  }

  .hero__bg img {
    left: 43.5%;
    top: 5%;
    width: 74%;
    height: auto;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    row-gap: 24px;
    grid-template-areas:
      "badge"
      "title"
      "subtitle"
      "rating"
      "form"
      "benefits"
      "disclaimer";
  }

  .hero__logo {
    display: none;
  }

  .hero__subtitle {
    max-width: none;
  }

  .hero__benefits {
    flex-direction: column;
  }

  .benefit-card {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--clr-border);
    box-shadow: none;
    border-radius: 16px;
  }

  .benefit-card__icon {
    margin-bottom: 0;
  }

  .why-choose__grid {
    gap: 10px;
  }

  .why-choose__item {
    min-width: calc(50% - 5px);
    flex-direction: column;
    gap: 5px;
    background: #fff;
    border: 1px solid var(--clr-border);
    border-radius: 12px;
    padding: 10px;
  }

  .final-cta__inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .final-cta__content {
    flex-direction: column;
    text-align: center;
  }
  .hero__subtitle {
    max-width: 70%;
  }
  .hero__title {
    max-width: 80%;
  }
  .hero__rating {
    grid-area: rating;
    display: flex;
    align-items: flex-start;
    gap: 2px;
    flex-direction: column;
  }
  .benefit-card {
    padding: 15px;
  }

}
@media (max-width: 480px) {
  .hero__subtitle {
    max-width: 50%;
  }
  .hero__title {
    max-width: 60%;
  }
}

@media (max-width: 390px) {
  .hero__bg {
    display: none;
  }
  .hero__subtitle,
  .hero__title {
    max-width: 100%;
    text-align: center;
  }
  .hero__rating {
    align-items: center;
  }
  .hero__stars {
    justify-content: center;
  }
  .hero__badge {
    margin-inline: auto;
  }
}
