/* =========================
  CDT PARTNER OPTIONS
========================= */

:root {
  --brand: #809634;
  --brand-light: #8AD492;
  --brand-dark: #67782B;
  --brand-soft: #a9CE90;

  --ink: #0c1f2f;
  --muted: #5b6b78;
  --line: #dce6d7;
  --bg: #f5f8f3;
  --card: #ffffff;
  --shadow: 0 18px 40px rgba(38, 55, 28, 0.14);
}

/* Base */
.partner-options [hidden] {
  display: none !important;
}

* {
  box-sizing: border-box;
}

/* Layout */
.partner-options {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

/* Intro */
.section-intro {
  max-width: 720px;
  margin-bottom: 28px;
}

.eyebrow,
.details-kicker {
  margin: 0 0 8px;
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-intro h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  color: var(--ink);
}

.section-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* Option Cards */
.option-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  align-items: stretch;
}

.option-card {
  position: relative;
  min-height: 265px;
  padding: 30px 22px 24px;
  border: 1px solid transparent;
  border-top: 5px solid transparent;
  background: var(--card);
  color: var(--ink);
  text-align: center;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.option-card:hover,
.option-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--line);
  outline: none;
}

.option-card.is-active {
  transform: translateY(-6px);
  border-color: var(--line);
  border-top-color: var(--brand);
  box-shadow: var(--shadow);
}

.option-card::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -11px;
  width: 22px;
  height: 22px;
  background: var(--card);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transform: translateX(-50%) rotate(45deg) scale(0);
  transition: transform 180ms ease;
}

.option-card.is-active::after {
  transform: translateX(-50%) rotate(45deg) scale(1);
}

/* Recommended Card */
.featured-option {
  border-color: rgba(128, 150, 52, 0.35);
  border-top-color: var(--brand);
  background:
    linear-gradient(180deg, rgba(169, 206, 144, 0.22), rgba(255, 255, 255, 0) 46%),
    var(--card);
}

.featured-option:hover,
.featured-option.is-active {
  border-top-color: var(--brand-dark);
  box-shadow: 0 22px 48px rgba(103, 120, 43, 0.2);
}

.option-badge {
  display: inline-flex;
  margin: -12px auto 16px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(138, 212, 146, 0.28);
  color: var(--brand-dark);
  font-size: 0.75rem;
  font-weight: 800;
}

/* Icons */
.option-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  color: var(--brand-dark);
}

.option-icon svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.featured-option .option-icon {
  color: var(--brand);
}

/* Card Text */
.option-card h3 {
  margin: 0 0 14px;
  font-size: 1.38rem;
  line-height: 1.15;
  font-weight: 700;
  color: var(--ink);
}

.option-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.option-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  color: var(--brand-dark);
  font-weight: 800;
  font-size: 0.9rem;
}

.option-cta::after {
  content: "↓";
  transition: transform 180ms ease;
}

.option-card:hover .option-cta::after,
.option-card.is-active .option-cta::after {
  transform: translateY(3px);
}

/* Details Panel */
.option-details {
  position: relative;
  margin-top: 28px;
  padding: 34px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(38, 55, 28, 0.1);
}

.details-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.details-close:hover,
.details-close:focus-visible {
  background: rgba(169, 206, 144, 0.22);
  transform: rotate(90deg);
  outline: none;
}

.details-copy {
  max-width: 830px;
  padding-right: 44px;
}

.details-copy h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.08;
}

.details-copy p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* Timeline */
.timeline-wrap {
  margin-top: 34px;
}

.option-details h4 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 1rem;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--steps), minmax(0, 1fr));
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  top: 59px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-light), var(--brand), var(--brand-dark));
  z-index: 1;
}

.timeline li {
  position: relative;
  min-width: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
  text-align: left;
}

.timeline-date {
  display: block;
  min-height: 2.5em;
  padding-right: 12px;
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.25;
}

.timeline-track {
  position: relative;
  height: 42px;
  margin: 8px 0 10px;
  z-index: 2;
}

.timeline-point {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 4px solid var(--brand);
  border-radius: 50%;
  background: #fff;
  color: var(--brand-dark);
  font-size: 0.8rem;
  font-weight: 850;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.timeline-point:hover,
.timeline-point:focus-visible,
.timeline-point.is-open {
  transform: scale(1.1);
  border-color: var(--brand-dark);
  box-shadow: 0 0 0 7px rgba(169, 206, 144, 0.38);
  outline: none;
}

.timeline li:first-child .timeline-point {
  animation: pulseContact 1.8s ease-in-out infinite;
}

@keyframes pulseContact {
  0% {
    box-shadow: 0 0 0 0 rgba(138, 212, 146, 0.65);
  }

  70% {
    box-shadow: 0 0 0 13px rgba(138, 212, 146, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(138, 212, 146, 0);
  }
}

.timeline-title {
  display: block;
  padding-right: 14px;
  color: var(--ink);
  font-weight: 750;
}

.timeline-tooltip {
  position: absolute;
  z-index: 8;
  left: 0;
  top: 102px;
  width: min(240px, 85vw);
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  box-shadow: 0 16px 34px rgba(38, 55, 28, 0.16);
  font-size: 0.86rem;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.timeline-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.timeline-tooltip::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 12px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  transform: rotate(45deg);
}

/* Benefit Lists */
.details-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 34px;
}

.details-lists > div {
  padding: 24px;
  border: 1px solid var(--line);
  background: #fbfdf8;
}

.details-lists ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.details-lists li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  line-height: 1.5;
}

.details-lists li::before {
  content: "";
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 9px;
  height: 9px;
  background: var(--brand);
  transform: rotate(45deg);
}

/* Contact Button */
.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
  padding: 13px 20px;
  border-radius: 4px;
  background: var(--brand-dark);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}

.contact-button:hover,
.contact-button:focus-visible {
  background: var(--brand);
  transform: translateY(-2px);
  outline: none;
}

/* Responsive */
@media (max-width: 1050px) {
  .option-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .option-card {
    min-height: 230px;
  }
}

@media (max-width: 720px) {
  .partner-options {
    width: min(100% - 22px, 1180px);
    padding: 36px 0;
  }

  .option-grid,
  .details-lists {
    grid-template-columns: 1fr;
  }

  .option-details {
    padding: 24px 18px;
  }

  .details-copy {
    padding-right: 44px;
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .timeline::before {
    left: 17px;
    right: auto;
    top: 44px;
    bottom: 22px;
    width: 6px;
    height: auto;
  }

  .timeline li {
    display: grid;
    grid-template-columns: 88px 44px 1fr;
    column-gap: 12px;
    align-items: start;
  }

  .timeline-date {
    min-height: 0;
    padding-right: 0;
    padding-top: 7px;
  }

  .timeline-track {
    height: 44px;
    margin: 0;
  }

  .timeline-title {
    padding-top: 7px;
    padding-right: 0;
  }

  .timeline-tooltip {
    left: 144px;
    top: 42px;
  }
}