/* Homepage brokerage section and its coverage availability note. */
.carrier-section {
  --brokerage-surface: #efe8df;
  --brokerage-heading: #365f78;
  --brokerage-copy: #403d38;
  --brokerage-divider: #c9beb0;
  padding: 64px 0 32px;
  background: var(--brokerage-surface);
  color: var(--brokerage-copy);
}

:root[data-theme="dark"] .carrier-section {
  --brokerage-surface: #302d29;
  --brokerage-heading: #aac4d1;
  --brokerage-copy: #e6e2d9;
  --brokerage-divider: #5b554d;
  background: var(--brokerage-surface);
}

.brokerage-heading h2 {
  margin: 0 0 24px;
  color: var(--brokerage-heading);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 4.2vw, 54px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.brokerage-copy > p {
  max-width: 860px;
  margin: 0 0 18px;
  font-size: 17px;
  line-height: 1.7;
}

.brokerage-copy .brokerage-intro {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.6;
}

.brokerage-illustration {
  position: relative;
  margin: 32px 0 28px;
  padding: 24px 0 0;
  border-top: 1px solid var(--brokerage-divider);
}

.brokerage-connection {
  position: absolute;
  top: 24px;
  left: 48px;
  width: calc(66.666667% + 32px);
  height: 96px;
  overflow: hidden;
  pointer-events: none;
}

.brokerage-wave {
  transform-box: view-box;
}

.brokerage-illustration.is-flowing .brokerage-wave {
  animation: brokerage-flow-right 22s linear infinite normal;
  animation-play-state: paused;
}

.brokerage-illustration.is-running .brokerage-wave {
  animation-play-state: running;
}

.brokerage-connection-line {
  fill: none;
  stroke: var(--brokerage-heading);
  stroke-width: 1.5px;
  stroke-opacity: 0.35;
  vector-effect: non-scaling-stroke;
}

.brokerage-connection-accent {
  fill: var(--terracotta-dark);
}

.brokerage-priorities {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.brokerage-priorities li {
  min-width: 0;
  margin: 0;
  padding: 0;
}

.brokerage-priority-icon {
  display: block;
  width: 96px;
  height: 96px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--brokerage-surface);
  color: var(--brokerage-heading);
}

.brokerage-icon-accent {
  stroke: var(--terracotta-dark);
}

.brokerage-priority-copy {
  min-width: 0;
}

.brokerage-priorities h3 {
  margin: 0 0 8px;
  color: var(--brokerage-heading);
  font-family: inherit;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
}

.brokerage-priorities p {
  max-width: 30ch;
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

.carrier-section .brokerage-action,
:root[data-theme="dark"] .carrier-section .brokerage-action {
  max-width: 100%;
  background: #a95139;
  color: #fff;
  text-align: center;
}

.carrier-section .brokerage-action:hover,
:root[data-theme="dark"] .carrier-section .brokerage-action:hover {
  background: #8c402c;
  color: #fff;
}

.carrier-section .brokerage-medicare-notice {
  margin: 32px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--brokerage-divider);
  font-size: 16px;
  line-height: 1.65;
}

.brokerage-medicare-notice a,
.carrier-note-reference a,
.carrier-note-marker {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.carrier-note-reference {
  margin-left: 2px;
  font-size: 0.75em;
  line-height: 0;
}

.carrier-availability {
  max-width: 88ch;
  margin: 24px 0 0;
  color: inherit;
  font-size: 14px;
  line-height: 1.65;
  scroll-margin-top: 24px;
}

.carrier-availability .carrier-note-marker {
  color: inherit;
}

.carrier-section a:focus-visible,
.carrier-availability a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

@keyframes brokerage-flow-right {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brokerage-illustration.is-flowing .brokerage-wave {
    animation: none;
  }
}

@media (max-width: 600px) {
  .carrier-section {
    padding: 40px 0 28px;
  }

  .brokerage-heading h2 {
    margin-bottom: 20px;
  }

  .brokerage-copy > p {
    font-size: 16px;
  }

  .brokerage-copy .brokerage-intro {
    font-size: 19px;
  }

  .brokerage-illustration {
    margin-top: 28px;
  }

  .brokerage-connection {
    display: none;
  }

  .brokerage-priorities {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .brokerage-priorities li {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    gap: 20px;
  }

  .brokerage-priority-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 0;
  }
}
