/* How It Works Page Styles */

/* Hero Section */
.hero-section {
  background: var(--gradient-primary);
  color: #ffffff;
  padding: 80px 0 100px;
  text-align: center;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 1;
  color: #ffffff !important;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Timeline Preview in Hero */
.hero-timeline-preview {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.timeline-mini {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.timeline-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.day-label {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.8;
}

.day-action {
  font-size: 0.875rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 12px;
  border-radius: 20px;
}

.timeline-connector {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  min-width: 20px;
}

/* Overview Section */
.overview-section {
  padding: 64px 0;
  text-align: center;
  background: #fefdfb;
}

.overview-text {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Steps Section */
.steps-section {
  padding: 80px 0;
  background: #f8f7f5;
}

.process-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  margin-bottom: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid #e2e0dc;
}

.process-step:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.step-indicator {
  display: flex;
  justify-content: center;
}

.step-number {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--color-primary-pink) 0%, var(--color-primary-purple) 100%);
  color: #ffffff;
  font-size: 1.75rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(123, 63, 157, 0.3);
}

.step-content {
  flex: 1;
}

.step-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 12px;
}

.step-description {
  font-size: 1.0625rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Step Details */
.step-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.detail-block {
  background: #ffffff;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #e2e0dc;
}

.detail-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 16px;
}

.detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.detail-list li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, var(--color-primary-pink) 0%, var(--color-primary-purple) 100%);
  border-radius: 50%;
}

.detail-list.checklist li::before {
  background: #10b981;
}

/* Timeline Block */
.timeline-block {
  text-align: center;
}

.timeline-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary-purple);
  margin-bottom: 8px;
}

.timeline-note {
  font-size: 0.875rem;
  color: #718096;
}

/* Outcomes Block */
.outcomes-block {
  margin-top: 24px;
}

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.outcome {
  padding: 20px;
  border-radius: 12px;
  text-align: center;
}

.outcome.approved {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.outcome.questions {
  background: #fffbeb;
  border: 1px solid #fde68a;
}

.outcome.not-approved {
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.outcome-status {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 8px;
}

.outcome.approved .outcome-status { color: #059669; }
.outcome.questions .outcome-status { color: #d97706; }
.outcome.not-approved .outcome-status { color: #dc2626; }

.outcome-desc {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

/* Callout Block */
.callout-block {
  background: linear-gradient(135deg, rgba(233, 30, 140, 0.1) 0%, rgba(123, 63, 157, 0.1) 100%);
  border-left: 4px solid var(--color-primary-purple);
  padding: 20px 24px;
  border-radius: 0 12px 12px 0;
  margin-top: 24px;
}

.callout-text {
  margin: 0;
  color: #1a1a2e;
  font-size: 1rem;
}

/* Package Visual */
.package-visual { margin-top: 24px; }

.package-illustration { max-width: 300px; }

.package-box {
  background: #ffffff;
  border: 2px solid #e2e0dc;
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  position: relative;
}

.package-box::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: #e2e0dc;
  transform: translateY(-50%);
}

.package-label {
  font-weight: 700;
  color: var(--color-primary-purple);
  font-size: 1.25rem;
  margin-bottom: 8px;
  position: relative;
  background: #ffffff;
  display: inline-block;
  padding: 0 12px;
}

.package-temp {
  font-size: 0.75rem;
  color: var(--color-primary-blue);
  background: #e0f2fe;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
  position: relative;
}

/* Ongoing Support Section */
.ongoing-section {
  padding: 80px 0;
  background: #fefdfb;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a2e;
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.support-card {
  background: #ffffff;
  border: 1px solid #e2e0dc;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.support-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.support-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 12px;
}

.support-desc {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* FAQ Section */
.faq-section {
  padding: 80px 0;
  background: #fefdfb;
}

.faq-list {
  max-width: 700px;
  margin: 48px auto 0;
}

.faq-item {
  background: #ffffff;
  border: 1px solid #e2e0dc;
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
}

.faq-question {
  padding: 20px 24px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #1a1a2e;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-primary-purple);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 24px 20px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.faq-answer p { margin: 0; }

/* CTA Section */
.cta-section {
  padding: 100px 0;
  background: var(--gradient-primary);
  text-align: center;
  color: #ffffff;
}

.cta-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn-primary {
  background: #ffffff;
  color: var(--color-primary-purple);
  font-size: 1.125rem;
  padding: 16px 40px;
}

.cta-section .btn-primary:hover {
  background: #f8f7f5;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.cta-note {
  margin-top: 16px;
  font-size: 0.875rem;
  opacity: 0.8;
}

/* ── Responsive ── */
@media (max-width: 992px) {
  .hero-title { font-size: 2.25rem; }

  .timeline-mini {
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
  }

  .timeline-connector { display: none; }

  .timeline-day {
    flex: 0 0 calc(33.333% - 8px);
  }

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

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

@media (max-width: 768px) {
  .hero-section { padding: 60px 0 80px; }
  .hero-title { font-size: 1.875rem; }
  .hero-subtitle { font-size: 1.0625rem; }

  .hero-timeline-preview {
    padding: 16px;
  }

  .process-step {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .step-indicator { justify-content: flex-start; }

  .step-number {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }

  .step-title { font-size: 1.375rem; }

  .step-details { grid-template-columns: 1fr; }

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

  .section-title { font-size: 1.625rem; }

  .cta-title { font-size: 1.75rem; }

  .cta-section { padding: 64px 0; }
}

@media (max-width: 576px) {
  .hero-section { padding: 48px 0 64px; }
  .hero-title { font-size: 1.625rem; }

  /* Timeline: 2-col grid on small phones */
  .timeline-day {
    flex: 0 0 calc(50% - 6px);
  }

  .timeline-day:last-child {
    flex: 0 0 100%;
  }

  .day-action {
    font-size: 0.8125rem;
    padding: 5px 10px;
  }

  .detail-block { padding: 16px; }

  .faq-question {
    padding: 16px 20px;
    font-size: 1rem;
  }

  .faq-answer { padding: 0 20px 16px; }

  .support-card { padding: 24px 20px; }

  .cta-title { font-size: 1.5rem; }
  .cta-section { padding: 48px 0; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.5rem; }

  .process-step {
    margin-bottom: 48px;
    padding-bottom: 48px;
  }
}
