/* Patient Journey Styles */

:root {
  /* Inherit global theme colors from header.css */
  --pj-pink: var(--fl-primary);
  --pj-light-pink: var(--fl-primary-soft);
  --pj-border: var(--fl-primary-border);
  --pj-navy: var(--fl-foreground);
  --pj-text: var(--fl-section-text);
}

body {
  background-color: #ffffff;
}

/* ── Timeline Section ─────────────────────────────────────────────────── */
.journey-timeline-section {
  padding: 20px 0;
  background: #ffffff;
}

.journey-timeline-header {
  text-align: center;
  margin-bottom: 70px;
}

.journey-timeline-tag {
  color: var(--pj-pink);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.journey-timeline-title {
  font-family: var(--fl-font-family);
  color: var(--pj-navy);
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
}

.journey-timeline-subtitle {
  color: var(--pj-text);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.journey-timeline {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  padding-left: 60px; /* Space for the vertical line and numbers */
}

/* The continuous vertical line */
.journey-timeline::before {
  content: "";
  position: absolute;
  top: 30px;
  bottom: 30px; 
  left: 18px; /* Aligns with center of the 36px number circle */
  width: 2px;
  background: linear-gradient(to bottom, rgba(235,77,128,0) 0%, #ffe1eb 15%, #ffe1eb 85%, rgba(235,77,128,0) 100%);
  z-index: 1;
}

.journey-step {
  display: flex;
  align-items: center;
  gap: 35px;
  margin-bottom: 25px;
  position: relative;
  z-index: 2;
  background: #ffffff;
  padding: 20px 30px;
  border-radius: 24px;
  box-shadow: 0 15px 50px rgba(235, 77, 128, 0.08);
  border: 1px solid #ffe1eb;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
}
.journey-step:last-child {
  margin-bottom: 0;
}
.journey-step:hover {
  transform: translateX(10px);
  box-shadow: 0 15px 50px rgba(235, 77, 128, 0.08);
  border-color: #ffe1eb;
}

.journey-step-number {
  position: absolute;
  left: -60px; /* Aligns center with the vertical line at 18px */
  top: 50%;
  margin-top: -18px; /* Vertically center */
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pj-pink) 0%, #d43b6b 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(235, 77, 128, 0.4), 0 0 0 6px #ffffff;
  z-index: 3;
}

.journey-step-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff0f5 0%, #ffffff 100%);
  border: 1px solid #ffe1eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 10px 20px rgba(235, 77, 128, 0.05);
}
.journey-step-icon svg {
  width: 36px;
  height: 36px;
  stroke: var(--pj-pink);
  stroke-width: 1.5;
  fill: none;
  filter: drop-shadow(0 2px 4px rgba(235, 77, 128, 0.2));
}

.journey-step-icon i {
  font-size: 32px;
  color: var(--pj-pink);
  filter: drop-shadow(0 2px 4px rgba(235, 77, 128, 0.2));
}

.journey-step-content {
  flex: 1;
}

.journey-step-title {
  color: var(--pj-pink);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.journey-step-desc {
  color: var(--pj-text);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.journey-step-image {
  flex-shrink: 0;
  width: 280px;
  height: 160px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  border: 3px solid #ffffff;
}
.journey-step-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.journey-step:hover .journey-step-image img {
  transform: scale(1.08);
}

/* ── Support Section ──────────────────────────────────────────────────── */
.journey-support-section {
  padding: 50px 0;
}

.journey-support-banner-box {
    background: linear-gradient(135deg, #ffffff 0%, #fff4f7 100%);
    border-radius: 24px;
    padding: 60px;
    margin-bottom: 20px;
    box-shadow: 0 20px 50px rgb(140 79 98 / 68%), 0 4px 10px rgb(0 0 0 / 78%);
    border: 1px solid #ffe1eb;
    position: relative;
    overflow: hidden;
}

.journey-support-banner-box::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -50px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(235, 77, 128, 0.08) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.journey-support-top {
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

.journey-support-title {
  font-family: var(--fl-font-headings);
  font-size: 2rem;
  font-weight: 600;
  color: var(--fl-foreground);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.journey-support-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--fl-primary) 0%, rgba(235, 77, 128, 0.2) 100%);
  margin-bottom: 20px;
  border-radius: 3px;
}

.journey-support-desc {
  font-size: 1.05rem;
  color: var(--fl-section-text);
  max-width: 850px;
  line-height: 1.7;
  margin: 0;
}

.journey-support-features {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.journey-support-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
  padding: 0 24px;
  border-right: 1px solid rgba(235, 77, 128, 0.15);
  transition: transform 0.3s ease;
}

.journey-support-feature:first-child {
  padding-left: 0;
}

.journey-support-feature:last-child {
  padding-right: 0;
  border-right: none;
}

.journey-support-icon {
  flex-shrink: 0;
  color: var(--fl-primary);
  display: flex;
  align-items: flex-start;
  margin-top: 2px;
}

.journey-support-icon svg {
  width: 44px;
  height: 44px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  transition: transform 0.3s ease;
}

.journey-support-icon i {
  font-size: 38px;
  color: currentColor;
  transition: transform 0.3s ease;
}

.journey-support-feature:hover .journey-support-icon svg,
.journey-support-feature:hover .journey-support-icon i {
  transform: translateY(-3px) scale(1.08);
}

.journey-support-text h4 {
  font-family: var(--fl-font-headings);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--fl-foreground);
  margin-bottom: 6px;
  line-height: 1.3;
}

.journey-support-text p {
  font-size: 0.95rem;
  color: var(--fl-section-text);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 1199px) {
  .journey-support-banner-box {
    padding: 50px 40px;
  }
}

@media (max-width: 991px) {
  .journey-support-features {
    flex-wrap: wrap;
    gap: 40px 20px;
  }
  .journey-support-feature {
    flex: 0 0 calc(50% - 10px);
    padding: 0;
  }
  .journey-support-feature::after {
    display: none;
  }
}

@media (max-width: 767px) {
  .journey-support-feature {
    flex: 0 0 100%;
  }
}

/* ── Enhanced Theme-Compliant CTA Banner ────────────────────────────── */
.journey-cta-section .fl-newsletter-banner {
  background: linear-gradient(135deg, #ffffff 0%, var(--fl-primary-soft, #fff0f5) 100%);
  border-radius: 20px;
  padding: 40px 50px;
  min-height: 140px;
  box-shadow: 0 20px 40px rgba(235, 77, 128, 0.08), 0 5px 15px rgba(0,0,0,0.02);
  border: 2px solid #ffffff;
  position: relative;
  overflow: visible;
}

.journey-cta-section .fl-newsletter-left {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 30px;
}

.journey-cta-section .fl-newsletter-img {
  width: 180px;
  margin-top: -60px;
  margin-bottom: -30px;
  filter: drop-shadow(0 15px 25px rgba(235, 77, 128, 0.15));
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.journey-cta-section .fl-newsletter-banner:hover .fl-newsletter-img {
  transform: translateY(-5px) scale(1.03);
}

.journey-cta-section .fl-newsletter-text h4 {
  font-family: var(--fl-font-headings);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--fl-foreground);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.journey-cta-section .fl-newsletter-text p {
  color: var(--fl-section-text);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  max-width: 500px;
}

.journey-cta-btns {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

@media (max-width: 1199px) {
  .journey-cta-section .fl-newsletter-img {
    width: 150px;
    margin-top: -50px;
  }
}

@media (max-width: 991px) {
  .journey-cta-section .fl-newsletter-banner {
    flex-direction: column;
    padding: 30px;
    text-align: center;
  }
  .journey-cta-section .fl-newsletter-left {
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
  }
  .journey-cta-section .fl-newsletter-img {
    margin-top: -50px;
    margin-bottom: 0;
  }
  .journey-cta-btns {
    justify-content: center !important;
  }
}



/* ── CTA Banner ─────────────────────────────────────────────────────── */
.journey-cta-section {
  padding: 60px 0 100px;
}
.journey-cta-banner {
  background: #fff6f8;
  border-radius: 20px;
  padding: 30px 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--pj-border);
}

.journey-cta-illustration {
  width: 120px;
  margin-right: 30px;
  flex-shrink: 0;
}

.journey-cta-text {
  flex: 1;
}
.journey-cta-text h3 {
  font-family: var(--fl-font-family);
  color: var(--pj-navy);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.journey-cta-text p {
  color: var(--pj-text);
  font-size: 0.95rem;
  margin: 0;
}

.journey-cta-buttons {
  display: flex;
  gap: 15px;
  flex-shrink: 0;
  margin-left: 30px;
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .journey-timeline::before {
    display: none;
  }
  .journey-step {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .journey-step-image {
    width: 100%;
    height: auto;
  }
  .journey-support-grid {
    flex-wrap: wrap;
    gap: 40px 20px;
  }
  .journey-support-item {
    flex: 0 0 calc(50% - 10px);
    padding-right: 0;
  }
  .journey-support-item:nth-child(2)::after,
  .journey-support-item:last-child::after {
    display: none;
  }
  .journey-cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 40px 30px;
  }
  .journey-cta-illustration {
    margin: 0 0 20px 0;
  }
  .journey-cta-buttons {
    margin: 30px 0 0 0;
    flex-direction: column;
    width: 100%;
  }
}

@media (max-width: 767px) {
  .journey-support-item {
    flex: 0 0 100%;
  }
  .journey-support-item::after {
    display: none !important;
  }
}
