/* Final expense product page — Mejor Vida brand (navy), product layout */

.fep-page {
  --fep-navy: #1a365d;
  --fep-blue: #0d47a1;
  --fep-soft: #e8f1fc;
  --fep-ink: #1f2937;
  --fep-muted: #475569;
  --fep-gold: #e8a317;
  --lic-navy: #1a365d;
  --lic-gold: #e8a317;
  --lic-muted: #475569;
  color: var(--fep-ink);
  background: #f7f9fc;
}

.fep-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--fep-navy);
  color: #fff;
  padding: 2.25rem 0 2.5rem;
}

.fep-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.fep-hero-media picture,
.fep-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Bus-stop couple hero: zoom out + keep faces in frame, subjects on the right */
.fep-hero:has(.fep-hero-media--couple) {
  min-height: clamp(22rem, 46vw, 30rem);
  padding: 2.75rem 0 3rem;
}

.fep-hero-media--couple picture,
.fep-hero-media--couple img {
  object-fit: cover;
  /* Favor upper portion so heads aren’t cropped; couple stays right for left text */
  object-position: 66% 12%;
  /* Slight zoom-out so more of the photo fits in the hero */
  transform: scale(0.88);
  transform-origin: 68% 18%;
}

@media (max-width: 768px) {
  .fep-hero:has(.fep-hero-media--couple) {
    min-height: clamp(18rem, 70vw, 24rem);
  }

  .fep-hero-media--couple picture,
  .fep-hero-media--couple img {
    object-position: 72% 10%;
    transform: scale(0.9);
    transform-origin: 75% 15%;
  }
}

.fep-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #1a365d 0%,
    #1a365d 26%,
    rgba(26, 54, 93, 0.9) 46%,
    rgba(13, 71, 161, 0.55) 68%,
    rgba(13, 71, 161, 0.2) 100%
  );
}

/* Bridge hero: size to copy (not a tall photo band); fade navy left → clear photo right */
.fep-hero:has(.fep-hero-media--bridge) {
  min-height: 0;
  padding: 1.75rem 0 1.9rem;
}

.fep-hero-media--bridge picture,
.fep-hero-media--bridge img {
  object-fit: cover;
  object-position: 78% 40%;
}

.fep-hero-media--bridge::after {
  background: linear-gradient(
    90deg,
    #1a365d 0%,
    #1a365d 20%,
    rgba(26, 54, 93, 0.92) 36%,
    rgba(13, 71, 161, 0.42) 56%,
    rgba(13, 71, 161, 0.1) 74%,
    transparent 90%
  );
}

@media (max-width: 768px) {
  .fep-hero:has(.fep-hero-media--bridge) {
    min-height: 0;
    padding: 1.45rem 0 1.6rem;
  }

  .fep-hero:has(.fep-hero-media--bridge) .fep-hero-media {
    opacity: 1;
  }

  .fep-hero-media--bridge picture,
  .fep-hero-media--bridge img {
    object-position: 70% 36%;
  }

  .fep-hero-media--bridge::after {
    background: linear-gradient(
      90deg,
      #1a365d 0%,
      rgba(26, 54, 93, 0.94) 28%,
      rgba(26, 54, 93, 0.55) 58%,
      rgba(13, 71, 161, 0.18) 78%,
      transparent 94%
    );
  }
}

.fep-hero .container {
  position: relative;
  z-index: 1;
  max-width: 1120px;
}

@media (max-width: 768px) {
  .fep-hero-media {
    opacity: 0.55;
  }

  .fep-hero-media::after {
    background: linear-gradient(
      180deg,
      rgba(26, 54, 93, 0.92) 0%,
      rgba(26, 54, 93, 0.88) 55%,
      rgba(26, 54, 93, 0.75) 100%
    );
  }
}

.fep-breadcrumb {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  opacity: 0.9;
}

.fep-breadcrumb a {
  color: #e2e8f0;
  text-decoration: none;
}

.fep-breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}

.fep-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
  max-width: 36rem;
}

.fep-hero-lead {
  margin: 0;
  max-width: 40rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
}

.fep-layout {
  max-width: 1160px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.fep-main {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.35rem 1.35rem 1.75rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.fep-main h2 {
  margin: 1.75rem 0 0.65rem;
  color: var(--fep-navy);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.3;
}

.fep-main h2:first-child {
  margin-top: 0;
}

.fep-main p,
.fep-main li {
  color: var(--fep-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.fep-main ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.2rem;
}

.fep-main a {
  color: var(--fep-blue);
  font-weight: 600;
}

.fep-callout {
  margin: 1.1rem 0;
  padding: 1rem 1.1rem;
  border-radius: 0.65rem;
  background: var(--fep-soft);
  border: 1px solid #c9daf0;
}

.fep-callout strong {
  display: block;
  color: var(--fep-navy);
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.fep-callout p {
  margin: 0;
  color: var(--fep-navy);
}

.fep-faq details {
  border-top: 1px solid #e2e8f0;
  padding: 0.75rem 0;
}

.fep-faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--fep-navy);
  list-style: none;
}

.fep-faq summary::-webkit-details-marker {
  display: none;
}

.fep-faq details[open] summary {
  margin-bottom: 0.4rem;
}

.fep-rate-block {
  margin: 1.15rem 0 0.35rem;
}

.fep-rate-block .lic-face-tabs {
  margin-top: 0.35rem;
}

.fep-rate-block .lic-rate-wrap {
  max-width: min(100%, 36rem);
}

.fep-rate-block .lic-rate-table {
  max-width: none;
  width: 100%;
}

.fep-carrier-chart {
  margin: 1rem 0 1.25rem;
}

.fep-carrier-chart .sc-carrier-table-wrap {
  margin: 0;
}

.fep-page .sc-carrier-section-container {
  padding: 0;
}

/* No-waiting-period product page extras */
.fep-takeaways {
  margin: 0 0 1.25rem;
  padding: 1.1rem 1.15rem 1rem;
  background: #f1f5f9;
  border: 1px solid #dbe3ee;
  border-radius: 0.65rem;
}

.fep-takeaways-title {
  margin: 0 0 0.55rem !important;
  font-size: 0.78rem !important;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--fep-navy);
}

.fep-takeaways ul {
  margin: 0;
  padding-left: 1.15rem;
}

.fep-takeaways li {
  margin-bottom: 0.35rem;
  color: var(--fep-ink);
}

.fep-grade-bars {
  margin: 1rem 0 1.25rem;
  display: grid;
  gap: 0.55rem;
  max-width: 28rem;
}

.fep-grade-row {
  display: grid;
  grid-template-columns: 3.5rem 1fr 2.75rem;
  align-items: center;
  gap: 0.5rem;
}

.fep-grade-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--fep-navy);
}

.fep-grade-track {
  height: 0.65rem;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.fep-grade-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--fep-navy), var(--fep-blue));
  border-radius: 999px;
}

.fep-grade-pct {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--fep-navy);
  text-align: right;
}

.fep-example-tabs {
  margin: 1rem 0 1.25rem;
}

.fep-example-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.fep-example-tab {
  appearance: none;
  border: 1px solid #c9daf0;
  background: #eef4fb;
  color: var(--fep-navy);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.45rem 0.7rem;
  border-radius: 0.4rem;
  cursor: pointer;
}

.fep-example-tab.is-active {
  background: var(--fep-navy);
  border-color: var(--fep-navy);
  color: #fff;
}

.fep-example-caption {
  margin-bottom: 0.5rem;
  color: var(--fep-ink);
}

.fep-example-table {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.fep-example-table th {
  background: #f8fafc;
  color: var(--fep-navy);
  font-weight: 700;
}

.fep-carrier-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1rem 0 1.25rem;
}

.fep-carrier-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1rem 0.95rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.65rem;
  background: #fff;
  color: inherit;
  cursor: pointer;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.fep-carrier-card:hover,
.fep-carrier-card:focus-visible {
  border-color: #93b4e0;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.fep-carrier-card:focus-visible {
  outline: 2px solid var(--fep-blue);
  outline-offset: 2px;
}

.fep-carrier-card img {
  display: block;
  max-width: 100%;
  height: 2rem;
  width: auto;
  object-fit: contain;
  object-position: left center;
}

.fep-carrier-card img.fep-carrier-card-logo--wide {
  height: 2.9rem;
  max-width: 15rem;
}

.fep-carrier-card p {
  margin: 0;
  flex: 1;
  font-size: 0.86rem !important;
  color: var(--fep-muted) !important;
  font-weight: 400 !important;
}

.fep-carrier-card span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--fep-blue);
}

@media (max-width: 767.98px) {
  .fep-carrier-cards {
    grid-template-columns: 1fr;
  }
}

/* No-waiting-period product extras */
.fep-takeaways {
  margin: 0 0 1.25rem;
  padding: 1.1rem 1.15rem 1.15rem;
  border-radius: 0.65rem;
  background: linear-gradient(180deg, #eef4fc 0%, #f7f9fc 100%);
  border: 1px solid #c9daf0;
}

.fep-takeaways h2 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
}

.fep-takeaways ul {
  margin: 0;
  padding-left: 1.15rem;
}

.fep-takeaways li {
  margin: 0.35rem 0;
  color: var(--fep-navy);
}

.fep-tip {
  border-left: 4px solid var(--fep-gold);
  background: #fff8e8;
  border-color: #f0d78a;
}

.fep-tip strong {
  color: #7a5200;
}

.fep-tip p {
  color: #5c4508;
}

.fep-graded {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0 1.25rem;
}

.fep-graded-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr auto;
  gap: 0.65rem;
  align-items: center;
}

.fep-graded-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--fep-navy);
}

.fep-graded-track {
  height: 0.85rem;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.fep-graded-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1a365d, #0d47a1);
}

.fep-graded-pct {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--fep-navy);
  min-width: 2.75rem;
  text-align: right;
}

.fep-sample-tables {
  display: grid;
  gap: 1rem;
  margin: 1rem 0 1.25rem;
}

@media (min-width: 768px) {
  .fep-sample-tables {
    grid-template-columns: repeat(3, 1fr);
  }
}

.fep-sample-card {
  border: 1px solid #e2e8f0;
  border-radius: 0.65rem;
  padding: 0.9rem 0.95rem 1rem;
  background: #fff;
}

.fep-sample-card h3 {
  margin: 0 0 0.45rem;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--fep-navy);
}

.fep-sample-card p {
  margin: 0 0 0.55rem;
  font-size: 0.86rem;
}

.fep-sample-card table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.fep-sample-card th,
.fep-sample-card td {
  border-top: 1px solid #e2e8f0;
  padding: 0.35rem 0.2rem;
  text-align: left;
  color: var(--fep-muted);
}

.fep-sample-card th {
  color: var(--fep-navy);
  font-weight: 700;
}

.fep-carrier-cards {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 1.25rem;
}

@media (min-width: 640px) {
  .fep-carrier-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .fep-carrier-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.fep-carrier-card {
  display: block;
  color: inherit;
  cursor: pointer;
  text-decoration: none !important;
  border: 1px solid #e2e8f0;
  border-radius: 0.65rem;
  padding: 0.95rem 1rem;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.fep-carrier-card:hover,
.fep-carrier-card:focus-visible {
  border-color: #9bb8de;
  box-shadow: 0 6px 18px rgba(26, 54, 93, 0.08);
  transform: translateY(-2px);
}

.fep-carrier-card:focus-visible {
  outline: 2px solid var(--fep-blue);
  outline-offset: 2px;
}

.fep-carrier-card strong {
  display: block;
  color: var(--fep-navy);
  font-size: 0.98rem;
  margin-bottom: 0.3rem;
}

.fep-carrier-card-logo {
  display: block;
  height: 2rem;
  width: auto;
  max-width: 11rem;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 0.55rem;
}

.fep-carrier-card img.fep-carrier-card-logo--wide {
  height: 2.9rem;
  max-width: 15rem;
}

.fep-carrier-card span {
  display: block;
  color: var(--fep-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  font-weight: 500;
}

.fep-elig-wrap {
  overflow-x: auto;
  margin: 1rem 0 0.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.65rem;
}

.fep-elig-table {
  width: 100%;
  min-width: 28rem;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.fep-elig-table th,
.fep-elig-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: top;
}

.fep-elig-table th {
  background: var(--fep-soft);
  color: var(--fep-navy);
  font-weight: 800;
}

.fep-elig-table td {
  color: var(--fep-muted);
}

.fep-elig-table tr:last-child td {
  border-bottom: 0;
}

.fep-cta {
  margin: 1.75rem 0 0.5rem;
  padding: 1.25rem 1.2rem;
  border-radius: 0.75rem;
  background: var(--fep-navy);
  color: #fff;
}

.fep-cta h2 {
  margin: 0 0 0.5rem;
  color: #fff;
}

.fep-cta p {
  margin: 0 0 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.fep-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.fep-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.05rem;
  border-radius: 0.5rem;
  font-weight: 700;
  text-decoration: none !important;
}

.fep-cta-primary {
  background: var(--fep-gold);
  color: #1a365d !important;
}

.fep-cta-secondary {
  background: transparent;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.55);
}
