/**
 * CCC Pools — Request Service conversion CTA (BEAD-CTA-001)
 */

:root {
  --ccc-heading-font: var(--ccc-font-display, "Playfair Display", Georgia, serif);
}

.ccc-request-cta {
  padding-block: clamp(4rem, 7vw, 7rem);
  background:
    radial-gradient(circle at top left, rgba(25, 182, 210, 0.1), transparent 30rem),
    linear-gradient(180deg, #fbfdff 0%, #f3f9fd 100%);
}

.ccc-request-cta .container {
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 3vw, 2rem);
  padding-right: clamp(1rem, 3vw, 2rem);
}

.ccc-request-cta__panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 4.5rem);
  border-radius: 34px;
  background:
    radial-gradient(circle at 85% 15%, rgba(25, 182, 210, 0.22), transparent 24rem),
    linear-gradient(135deg, #02172f 0%, #06264a 56%, #0b3d72 100%);
  color: #fff;
  box-shadow: 0 28px 80px rgba(6, 38, 74, 0.22);
}

.ccc-request-cta__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.07;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 54px 54px;
}

.ccc-request-cta__panel::after {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(1.5rem, 4vw, 3rem);
  width: min(12rem, 40%);
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #19b6d2, rgba(25, 182, 210, 0.2));
  z-index: 1;
}

.ccc-request-cta__content,
.ccc-request-cta__card {
  position: relative;
  z-index: 1;
}

.ccc-request-cta__eyebrow,
.ccc-request-cta .ccc-section-eyebrow {
  color: #70d6ea;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.85rem;
}

.ccc-request-cta__title {
  max-width: 760px;
  color: #fff;
  font-family: var(--ccc-heading-font);
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.ccc-request-cta__text {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.7;
  margin: 0 0 1.75rem;
}

.ccc-request-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  margin-bottom: 1rem;
}

.ccc-request-cta__note,
.ccc-request-cta__steps-note {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.ccc-request-cta__steps-note {
  margin-bottom: 0;
  font-size: 0.88rem;
}

.ccc-request-cta__card {
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.ccc-request-cta__card-title {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 1rem;
}

.ccc-request-cta__steps {
  display: grid;
  gap: 0.8rem;
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.ccc-request-cta__steps li {
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.55;
}

.ccc-request-cta__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding-top: 1.2rem;
  margin-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.ccc-request-cta__trust-item {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  font-weight: 700;
}

.ccc-request-cta__link {
  color: #70d6ea;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.ccc-request-cta__link:hover {
  color: #fff;
}

/* ——— Buttons scoped to this section ——— */
.ccc-request-cta .ccc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ccc-request-cta .ccc-btn--primary,
.ccc-request-cta .ccc-request-cta__btn-primary {
  background: linear-gradient(135deg, #0878c9, #1496d4);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 34px rgba(8, 120, 201, 0.34);
}

.ccc-request-cta .ccc-btn--primary:hover,
.ccc-request-cta .ccc-request-cta__btn-primary:hover {
  background: linear-gradient(135deg, #0a8fe0, #19b6d2);
  color: #fff;
  transform: translateY(-1px);
}

.ccc-request-cta .ccc-btn--light,
.ccc-request-cta .ccc-request-cta__btn-light {
  background: rgba(255, 255, 255, 0.94);
  color: #06264a;
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.ccc-request-cta .ccc-btn--light:hover,
.ccc-request-cta .ccc-request-cta__btn-light:hover {
  background: #fff;
  color: #0878c9;
}

.ccc-request-cta .ccc-btn:focus-visible,
.ccc-request-cta .ccc-request-cta__link:focus-visible {
  outline: 3px solid #70d6ea;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .ccc-request-cta .ccc-btn {
    transition: none;
  }

  .ccc-request-cta .ccc-btn--primary:hover,
  .ccc-request-cta .ccc-request-cta__btn-primary:hover {
    transform: none;
  }
}

@media (max-width: 991.98px) {
  .ccc-request-cta__panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .ccc-request-cta__panel {
    padding: 1.5rem;
    border-radius: 24px;
  }

  .ccc-request-cta__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ccc-request-cta__actions .ccc-btn {
    width: 100%;
  }

  .ccc-request-cta__link {
    justify-self: center;
  }
}

/* Homepage wrapper — remove legacy final-cta padding conflicts */
.ccc-section.ccc-final-cta:has(.ccc-request-cta) {
  padding: 0;
  background: transparent;
}

.ccc-section.ccc-final-cta .ccc-request-cta {
  padding-block: clamp(4rem, 7vw, 7rem);
}

.ccc-final-cta__inner:empty {
  display: none;
}

.mmp-story-page .mmp-story-section.mmp-story-final-cta {
  padding: 0;
  background: transparent;
}

.mmp-story-page .mmp-story-section.mmp-story-final-cta .ccc-request-cta {
  padding-block: clamp(4rem, 7vw, 7rem);
}
