/* Shared visual tokens and dimensions from CBC's established offer page. */
:root {
  --navy: #004561;
  --teal: #5cd4f5;
  --muted: #477385;
  --light: #f8fafc;
  --border: #cbd5e1;
  --gradient: linear-gradient(135deg, #5cd4f5 0%, #004561 100%);
  --shadow: 0 18px 50px rgba(15, 23, 43, 0.09);
  --radius: 1.5rem;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--navy);
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

h1 {
  font-size: clamp(44px, 5vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.045em;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}

h3 {
  font-size: 20px;
  line-height: 1.3;
  margin-bottom: 10px;
}

.eyebrow {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: capitalize;
}

.btn {
  min-height: 62px;
  padding: 4px 28px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.btn.primary {
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 10px 26px rgba(0, 133, 174, 0.22);
}

.hero-quote-button {
  max-width: 100%;
  text-align: center;
}

.btn.primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 133, 174, 0.3);
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: auto;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(203, 213, 225, 0.55);
}

.head {
  min-height: 78px;
}

.head-actions {
  gap: 16px;
}

.header-contact {
  gap: 8px;
}

.header-phone {
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
}

.head-actions > .btn {
  min-height: 42px;
  padding: 8px 24px;
  font-size: 14px;
  font-weight: 600;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 74px 0 56px;
}

.hero::after {
  position: absolute;
  z-index: 0;
  top: -170px;
  right: -140px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: rgba(206, 252, 242, 0.68);
  content: "";
}

.hero-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 52px;
}

.hero-copy > p {
  max-width: 650px;
  margin-bottom: 28px;
  font-size: 20px;
  line-height: 28px;
}

.hero-copy > .hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.hero-note-icon {
  width: 14px;
  height: 14px;
  flex: none;
  fill: none;
  stroke: #007eb8;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-size: 16px;
  font-weight: 700;
}

.hero-contact-row a {
  display: inline-flex;
  align-items: center;
  color: inherit;
  white-space: nowrap;
}

.hero-contact-row svg {
  width: 16px;
  height: 16px;
  flex: none;
  fill: #007eb8;
  stroke: none;
}

.visual {
  height: 540px;
  min-height: 540px;
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
}

.offer-card {
  left: -28px;
  bottom: 28px;
  width: 250px;
  padding: 24px;
  border: 1px solid rgba(203, 213, 225, 0.6);
  border-radius: 24px;
  /* Enlarge the whole card without replacing the bounce's animated transform. */
  scale: 1.2;
  transform-origin: left bottom;
  max-width: calc((100% - 36px) / 1.2);
  animation: offer-card-bounce 3s infinite;
}

.offer-card span {
  line-height: 1.1;
}

.offer-card .offer-quote-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.offer-card .offer-quote-link:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

@keyframes offer-card-bounce {
  0%,
  100% {
    transform: translateY(-12.5%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }

  50% {
    transform: none;
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

.trust {
  padding: 28px 0 54px;
}

.stat,
.moment,
.option,
.step {
  border-color: rgba(203, 213, 225, 0.5);
  border-radius: var(--radius);
}

.stat,
.step {
  padding: 22px;
}

.steps .step {
  background-color: #fff;
}

article.stat {
  background: var(--light);
  box-shadow:
    0 0 0 0 rgba(0, 69, 97, 0),
    0 0 0 0 rgba(0, 69, 97, 0);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

article.stat:hover {
  border-color: rgba(0, 69, 97, 0.2);
  box-shadow:
    0 20px 25px -5px rgba(0, 69, 97, 0.1),
    0 8px 10px -6px rgba(0, 69, 97, 0.1);
}

article.stat .stat-icon {
  transform: scale(1);
  transition: transform 0.3s ease;
}

article.stat:hover .stat-icon {
  transform: scale(1.1);
}

.stat h3 {
  font-size: 20px;
}

.gift {
  background: var(--light);
}

.gift-graphic {
  margin-inline: 24px;
  transform: scale(1.25);
}

.gift-copy h2 {
  font-size: clamp(28px, 3vw, 38px);
  margin-bottom: 8px;
}

.gift-graphic strong {
  padding-right: 5px;
  font-size: 68px;
  text-shadow: 0 2px 4px rgba(0, 69, 97, 0.35);
}

.lump-sum-section,
.how-section {
  background: var(--light);
}

.options {
  background: #fff;
}

.option .footnote-marker {
  font-size: 0.5em;
  line-height: 0;
}

.form-section {
  background: #fff;
}

.section-divider {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  border: 0;
  border-top: 1px solid #e4eaed;
}

.form-card {
  padding: 40px;
  border-color: rgba(203, 213, 225, 0.5);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.form-card h3 {
  font-size: 28px;
}

input,
select {
  min-height: 52px;
  height: auto;
  padding: 14px 15px;
  border-radius: 14px;
}

.pending-consents {
  background: #fff;
}

.pending-consents input {
  min-height: 16px;
  padding: 0;
  border-radius: 3px;
}

.pending-terms {
  border-color: rgba(203, 213, 225, 0.7);
  background: var(--light);
  color: var(--muted);
}

.pending-terms strong {
  color: var(--navy);
}

.pending-terms {
  border-left: 4px solid var(--teal);
}

.legal {
  background: #fff;
  border-top: 0;
}

footer {
  padding: 56px 0 54px;
}

.footer .brand-logo {
  filter: brightness(0) invert(1);
}

@media (min-width: 640px) {
  .container {
    padding-right: 24px;
    padding-left: 24px;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-right: 32px;
    padding-left: 32px;
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .visual {
    height: 440px;
    min-height: 440px;
  }

  .offer-card {
    left: 18px;
  }

  .stats,
  .moments {
    grid-template-columns: repeat(2, 1fr);
  }

  .how-grid,
  .form-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .container {
    padding-right: 16px;
    padding-left: 16px;
  }

  .section {
    padding: 72px 0;
  }

  .head {
    min-height: 68px;
  }

  .head .btn {
    display: none;
  }

  .header-phone {
    gap: 6px;
    font-size: 13px;
  }

  .hero {
    padding: 52px 0 30px;
  }

  .hero-grid {
    gap: 38px;
  }

  h1 {
    font-size: clamp(34px, 10.5vw, 42px);
    line-height: 1.08;
    letter-spacing: -0.035em;
  }

  .hero-copy > p {
    max-width: 100%;
    font-size: 18px;
    line-height: 1.55;
  }

  .hero-contact-row {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px 12px;
    font-size: 15px;
  }

  .visual {
    height: 400px;
    min-height: 400px;
  }

  .offer-card {
    left: 18px;
    bottom: 18px;
    width: 250px;
    padding: 19px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .form-grid,
  .fields {
    grid-template-columns: 1fr;
  }

  .full {
    grid-column: auto;
  }

  .form-card {
    padding: 28px;
  }

  .gift-copy {
    flex-direction: column;
    align-items: stretch;
    gap: 30px;
  }

  .gift-copy > div:last-child {
    text-align: center;
  }

  .gift-graphic {
    width: 210px;
    height: 105px;
    flex: none;
    padding: 10px 14px;
    margin-inline: 0;
    align-self: center;
  }

  .gift-graphic strong {
    padding-right: 5px;
    font-size: 68px;
  }

  .gift-graphic span {
    font-size: 8px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

}
