/* ==========================================================================
   Patient Information Page — East Dallas Primary Care
   Timeline, what-to-bring checklist, insurance grid, office policies
   ========================================================================== */

/* -----------------------------------------------------------------------
   Page Header Banner (Textured)
   Gradient banner with subtle topographic texture overlay
   ----------------------------------------------------------------------- */
.page-header--textured {
  position: relative;
  min-height: 25vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 5rem;
  background: linear-gradient(135deg, var(--hero-start), var(--hero-mid) 50%, var(--hero-end));
  overflow: hidden;
}

/* Content above the overlay */
.page-header--textured .container {
  position: relative;
  z-index: 2;
}

.page-header--textured h1 {
  font-family: var(--font-heading);
  font-size: var(--text-4xl); /* 32px mobile */
  font-weight: var(--weight-semibold);
  color: var(--white);
  margin: 0;
}

/* -----------------------------------------------------------------------
   New Patient Process — Visual Timeline
   Three-step horizontal timeline (desktop) / vertical (mobile)
   ----------------------------------------------------------------------- */
.patient-timeline {
  background-color: var(--white);
}

.patient-timeline__heading {
  font-family: var(--font-heading);
  color: var(--navy);
  text-align: center;
  margin-bottom: var(--space-12);
}

/* Timeline Container — vertical on mobile */
.timeline {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  position: relative;
  max-width: 480px;
  margin: 0 auto;
}

/* Individual Step */
.timeline__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

/* -----------------------------------------------------------------------
   Timeline Marker (Numbered Circle)
   48px circle, primary-blue background, white number
   ----------------------------------------------------------------------- */
.timeline__marker {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  margin-bottom: var(--space-6);
}

.timeline__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--primary-blue);
  color: var(--white);
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  line-height: 1;
}

/* -----------------------------------------------------------------------
   Connecting Line (Mobile — Vertical)
   Thin 2px line between step markers using ::after on steps 1 & 2
   ----------------------------------------------------------------------- */
.timeline__step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 48px; /* Below the 48px marker circle */
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: calc(var(--space-6) + 2px); /* Spans the gap between marker and card start area */
  background-color: var(--gray-300);
  z-index: 1;
}

/* -----------------------------------------------------------------------
   Timeline Card (Content Block)
   ----------------------------------------------------------------------- */
.timeline__card {
  background-color: var(--ice-blue);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  width: 100%;
}

.timeline__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-4);
  color: var(--primary-blue);
}

.timeline__icon svg {
  width: 28px;
  height: 28px;
}

.timeline__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-medium);
  color: var(--navy);
  margin-bottom: var(--space-3);
  line-height: var(--leading-tight);
}

.timeline__desc {
  font-size: var(--text-base);
  color: var(--charcoal);
  line-height: var(--leading-relaxed);
  margin: 0;
}

/* Phone link within timeline description */
.timeline__phone-link {
  color: var(--primary-blue);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  white-space: nowrap;
}

.timeline__phone-link:hover {
  color: var(--primary-blue-hover);
  text-decoration: underline;
}

.timeline__phone-link:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
  border-radius: var(--radius-sm);
}

/* -----------------------------------------------------------------------
   What to Bring Section
   Ice-blue card with check-square icon checklist
   ----------------------------------------------------------------------- */
.what-to-bring {
  background-color: var(--white);
  padding-top: 0; /* Visually connected to the timeline above */
}

.what-to-bring__card {
  background-color: var(--ice-blue);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  max-width: 640px;
  margin: 0 auto;
}

.what-to-bring__heading {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--weight-medium);
  color: var(--navy);
  margin-bottom: var(--space-6);
  line-height: var(--leading-tight);
}

.what-to-bring__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.what-to-bring__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-base);
  color: var(--charcoal);
  line-height: var(--leading-relaxed);
}

.what-to-bring__list li svg {
  flex-shrink: 0;
  color: var(--primary-blue);
  margin-top: 2px; /* Align icon with first line of text */
}

/* -----------------------------------------------------------------------
   Insurance Accepted Section
   Two columns: accepted (green checks) / not accepted (red X)
   ----------------------------------------------------------------------- */
.insurance {
  background-color: var(--white);
}

.insurance__heading {
  font-family: var(--font-heading);
  color: var(--navy);
  text-align: center;
  margin-bottom: var(--space-10);
}

.insurance__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  max-width: 720px;
  margin: 0 auto;
}

.insurance__col-heading {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-medium);
  margin-bottom: var(--space-4);
  line-height: var(--leading-tight);
}

.insurance__col-heading--accepted {
  color: #27AE60;
}

.insurance__col-heading--not-accepted {
  color: #E74C3C;
}

.insurance__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.insurance__list li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-base);
  color: var(--charcoal);
  line-height: var(--leading-normal);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--gray-300);
}

.insurance__list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.insurance__list li:first-child {
  padding-top: 0;
}

.insurance__list li svg {
  flex-shrink: 0;
}

/* -----------------------------------------------------------------------
   Office Policies Section
   Off-white background, styled list with bold labels + descriptions
   ----------------------------------------------------------------------- */
.office-policies {
  background-color: var(--off-white);
}

.office-policies__heading {
  font-family: var(--font-heading);
  color: var(--navy);
  text-align: center;
  margin-bottom: var(--space-10);
}

.office-policies__list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.office-policies__list li {
  font-size: var(--text-base);
  color: var(--charcoal);
  line-height: var(--leading-relaxed);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--gray-300);
}

.office-policies__list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.office-policies__list strong {
  font-weight: var(--weight-semibold);
  color: var(--navy);
}

.office-policies__sep {
  margin: 0 var(--space-2);
  color: var(--gray-600);
}

/* -----------------------------------------------------------------------
   FAQ Section
   Definition list with bold questions and body-text answers
   ----------------------------------------------------------------------- */
.faq {
  background-color: var(--white);
}

.faq__heading {
  font-family: var(--font-heading);
  color: var(--navy);
  text-align: center;
  margin-bottom: var(--space-10);
}

.faq__list {
  max-width: 720px;
  margin: 0 auto;
}

.faq__item {
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--gray-300);
}

.faq__item:first-child {
  padding-top: 0;
}

.faq__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq__question {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-medium);
  color: var(--navy);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-3);
}

.faq__answer {
  font-size: var(--text-base);
  color: var(--charcoal);
  line-height: var(--leading-relaxed);
  margin: 0;
}

.faq__answer a {
  color: var(--primary-blue);
  font-weight: var(--weight-medium);
  text-decoration: none;
}

.faq__answer a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Responsive: Tablet (768px)
   ========================================================================== */
@media (min-width: 768px) {
  /* Page header grows taller */
  .page-header--textured {
    min-height: 28vh;
  }

  /* Insurance: two columns side by side */
  .insurance__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ==========================================================================
   Responsive: Desktop (1024px)
   ========================================================================== */
@media (min-width: 1024px) {
  .page-header--textured {
    min-height: 30vh;
  }

  .page-header--textured h1 {
    font-size: var(--text-6xl); /* 48px */
  }

  /* -----------------------------------------------------------------------
     Timeline: Horizontal layout on desktop
     ----------------------------------------------------------------------- */
  .timeline {
    flex-direction: row;
    align-items: flex-start;
    max-width: 100%;
    gap: 0;
  }

  .timeline__step {
    flex: 1;
    position: relative;
  }

  /* Connecting line — horizontal between markers */
  .timeline__step:not(:last-child)::after {
    top: 23px; /* Center of 48px marker = 24px, minus 1px for visual centering */
    left: calc(50% + 24px); /* Start at right edge of marker circle */
    transform: none;
    width: calc(100% - 48px); /* Span the gap between two marker circles */
    height: 2px;
  }

  /* Cards maintain centered alignment */
  .timeline__card {
    padding: var(--space-8);
    margin: 0 var(--space-3);
  }
}
