/* Homepage matcher hero: presentation only. Calculator behavior remains in script.js. */
.home-seo-hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  grid-template-areas:
    "content calculator"
    "benefits calculator";
  align-items: center;
  column-gap: clamp(32px, 5vw, 72px);
  row-gap: 26px;
  margin: 0 auto 28px;
  padding: clamp(28px, 5vw, 64px);
  background: #f4f7fa;
  border: 0;
  border-radius: 24px;
  box-shadow: none;
}

.home-seo-hero__content {
  grid-area: content;
  display: block;
  min-width: 0;
}

.home-seo-hero__calculator {
  grid-area: calculator;
  display: block;
  min-width: 0;
  width: 100%;
}

.home-seo-hero__benefits {
  grid-area: benefits;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-seo-hero__benefits li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #32455d;
  font-size: 0.95rem;
  line-height: 1.35;
}

.home-seo-hero__benefits li::before {
  display: inline-grid;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  place-items: center;
  border-radius: 50%;
  background: #dcefe9;
  color: #096b65;
  content: "✓";
  font-size: 0.72rem;
  font-weight: 800;
}

.home-seo-hero__eyebrow {
  display: block;
  margin: 0 0 14px;
  color: #0b6f70;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.25;
  text-transform: uppercase;
}

.home-seo-hero__title {
  max-width: 10.5ch;
  margin: 0;
  color: #0c2947;
  font-size: clamp(2.35rem, 4.25vw, 4.2rem);
  font-weight: 750;
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-wrap: balance;
}

.home-seo-hero__copy {
  display: block;
  margin-top: 20px;
}

.home-seo-hero__subtitle {
  max-width: 39ch;
  margin: 0;
  color: #405268;
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.55;
}

.home-seo-hero__media-column,
.home-seo-hero__partner-logo,
.home-seo-desktop-tail {
  display: none !important;
}

.home-seo-calculator-card {
  margin: 0;
  min-height: 0;
  padding: clamp(24px, 3vw, 32px);
  overflow: hidden;
  border: 1px solid #dfe7ef;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(12, 41, 71, 0.1);
}

/* The existing form is retained; these rules only undo the old HERO's flex layout. */
.home-seo-calculator-card .form-section,
.home-seo-calculator-card #insurance-form {
  display: block;
  flex: none;
}

.home-seo-calculator__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 18px;
}

.home-seo-calculator__heading h2 {
  margin: 0;
  color: #0c2947;
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.home-seo-calculator__heading p {
  max-width: 30ch;
  margin: 7px 0 0;
  color: #5f6e80;
  font-size: 0.93rem;
  line-height: 1.45;
}

.home-seo-calculator-card .form-grid {
  display: grid;
  flex: none;
  justify-content: initial;
  gap: 18px 16px;
  margin-bottom: 0;
}

.home-seo-calculator-card .field label {
  margin-bottom: 7px;
  color: #193957;
  font-size: 0.9rem;
  font-weight: 750;
}

.home-seo-calculator-card input,
.home-seo-calculator-card select {
  height: 48px;
  border-color: #cfd9e5;
  border-radius: 10px;
  color: #18314f;
  font-size: 16px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.home-seo-calculator-card input:hover,
.home-seo-calculator-card select:hover {
  border-color: #9eb3c8;
}

.home-seo-calculator-card input:focus,
.home-seo-calculator-card select:focus {
  border-color: #087f7d;
  box-shadow: 0 0 0 3px rgba(8, 127, 125, 0.16);
}

.home-seo-calculator-card .destinations {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.home-seo-calculator-card .dest-toggle {
  min-height: 46px;
  padding: 8px 7px;
  border-color: #cfd9e5;
  border-radius: 10px;
  color: #27425d;
  font-size: 0.86rem;
}

.home-seo-calculator-card .dest-toggle:hover {
  border-color: #6f9d9d;
  background: #f1f8f7;
  transform: none;
}

.home-seo-calculator-card .dest-toggle.active {
  border-color: #087f7d;
  background: #087f7d;
  color: #fff;
}

.home-seo-calculator-card .dest-toggle:focus-visible {
  outline-color: rgba(8, 127, 125, 0.65);
}

.home-seo-calculator-card .submit-wrapper {
  gap: 9px;
  margin: 8px 0 0;
}

.home-seo-calculator-card .btn-cta {
  width: 100%;
  min-height: 52px;
  padding: 13px 20px;
  border-radius: 11px;
  background: #c86514;
  box-shadow: 0 10px 22px rgba(200, 101, 20, 0.2);
  font-size: 1rem;
}

.home-seo-calculator-card .btn-cta:hover:not(:disabled) {
  background: #aa530d;
  transform: translateY(-1px);
}

.home-seo-calculator-card .btn-cta:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
}

.home-seo-calculator-card .cta-microcopy {
  margin: 0;
  color: #697789;
  font-size: 0.8rem;
}

.home-seo-calculator-card #error-message {
  margin: 0;
  text-align: left;
}

@media (min-width: 1024px) {
  .home-seo-calculator-card .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  .home-seo-hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "content"
      "calculator"
      "benefits";
    max-width: 760px;
    row-gap: 24px;
  }

  .home-seo-hero__title,
  .home-seo-hero__subtitle {
    max-width: 100%;
  }

  .home-seo-hero__benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 767px) {
  .home-seo-hero {
    width: 100%;
    margin-bottom: 20px;
    padding: 28px 18px;
    border-radius: 18px;
  }

  .home-seo-hero__eyebrow {
    margin-bottom: 10px;
    font-size: 0.67rem;
  }

  .home-seo-hero__title {
    max-width: 12ch;
    font-size: clamp(2.1rem, 10vw, 3rem);
  }

  .home-seo-hero__copy {
    margin-top: 14px;
  }

  .home-seo-calculator-card {
    padding: 22px 16px;
    border-radius: 18px;
  }

  .home-seo-calculator__heading {
    display: block;
    margin-bottom: 20px;
  }

  .home-seo-calculator__heading p {
    margin-top: 6px;
  }

  .home-seo-calculator-card .form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .home-seo-calculator-card .destinations {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-seo-hero__benefits {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
