/* ========================================================================== */
/* Thank You Page Styles                                                      */
/* ========================================================================== */

/* Hero Section */
.thank-you-hero {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
  background: linear-gradient(135deg, #f0f4ff 0%, #f5f5f7 100%);
}

.thank-you-hero__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.thank-you-hero__icon {
  width: 160px;
  height: 160px;
  margin-bottom: var(--space-8);
  animation: bounce 0.8s ease-in-out;
}

.thank-you-hero__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.thank-you-hero__content h1 {
  font-size: var(--font-size-4xl);
  line-height: var(--line-height-tight);
  margin: 0 0 var(--space-4) 0;
  color: var(--color-text);
}

.thank-you-hero__subtitle {
  font-size: var(--font-size-xl);
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: var(--space-8);
}

.thank-you-hero__message {
  background: var(--color-surface);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--color-primary);
  margin-bottom: var(--space-12);
}

.thank-you-hero__message p {
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: var(--color-text);
  margin: 0 0 var(--space-4) 0;
}

.thank-you-hero__message p:last-child {
  margin-bottom: 0;
}

.thank-you-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}

.stat-item {
  padding: var(--space-6);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid var(--color-border-subtle);
  transition: all var(--transition-base);
}

.stat-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.stat-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: var(--space-2);
}

.stat-item p {
  font-size: var(--font-size-sm);
  color: var(--color-text);
  margin: 0;
  line-height: var(--line-height-snug);
}

.stat-item strong {
  color: var(--color-primary);
}

.thank-you-hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.thank-you-hero__media {
  width: 100%;
  height: auto;
}

.thank-you-animation {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.08));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Steps Section */
.thank-you-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-12);
  position: relative;
}

.step-item {
  padding: var(--space-12);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 2px solid var(--color-border-subtle);
  text-align: center;
  position: relative;
  transition: all var(--transition-base);
}

.step-item--active {
  border-color: var(--color-primary);
  background: linear-gradient(135deg, var(--color-primary-soft) 0%, var(--color-surface) 100%);
  box-shadow: var(--shadow-md);
}

.step-item__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin: 0 auto var(--space-6);
}

.step-item--active .step-item__number {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  box-shadow: 0 4px 12px rgba(75, 108, 183, 0.3);
}

.step-item h3 {
  font-size: var(--font-size-lg);
  margin: 0 0 var(--space-4) 0;
  color: var(--color-text);
}

.step-item p {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin: 0;
  line-height: var(--line-height-normal);
}

/* FAQ Section */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-12);
}

.faq-item {
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  background: var(--color-surface);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.faq-item__title {
  margin: 0;
}

.faq-item__trigger {
  width: 100%;
  padding: var(--space-6);
  background: transparent;
  border: none;
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  transition: all var(--transition-base);
}

.faq-item__trigger:hover {
  color: var(--color-primary);
  background: var(--color-surface-subtle);
}

.faq-item__trigger svg {
  transition: transform var(--transition-base);
  color: var(--color-primary);
  flex-shrink: 0;
}

.faq-item__trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.faq-item__content {
  max-height: 0;
  overflow: hidden;
  transition: all var(--transition-base);
  padding: 0 var(--space-6);
}

.faq-item__content.open {
  max-height: 500px;
  padding: 0 var(--space-6) var(--space-6);
}

.faq-item__content p {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin: 0;
  line-height: var(--line-height-normal);
}

.faq-item__content a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}

.faq-item__content a:hover {
  text-decoration: underline;
}

/* CTA Section */
.thank-you-cta {
  text-align: center;
  padding: var(--space-12);
}

.thank-you-cta h2 {
  font-size: var(--font-size-4xl);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-6);
  color: var(--color-text);
}

.thank-you-cta p {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-12);
  line-height: var(--line-height-relaxed);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.thank-you-cta__actions {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .thank-you-hero__layout {
    grid-template-columns: 1fr;
  }

  .thank-you-hero__stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .thank-you-hero__content h1 {
    font-size: var(--font-size-3xl);
  }
}

@media (max-width: 768px) {
  .thank-you-hero {
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
  }

  .thank-you-hero__content h1 {
    font-size: var(--font-size-2xl);
  }

  .thank-you-hero__stats {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .thank-you-hero__actions {
    flex-direction: column;
  }

  .thank-you-hero__actions .btn {
    width: 100%;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .thank-you-cta h2 {
    font-size: var(--font-size-2xl);
  }

  .thank-you-cta p {
    font-size: var(--font-size-base);
  }

  .thank-you-cta__actions {
    gap: var(--space-4);
  }

  .thank-you-cta__actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .thank-you-hero__content h1 {
    font-size: var(--font-size-xl);
  }

  .thank-you-hero__icon {
    width: 120px;
    height: 120px;
  }

  .thank-you-hero__stats {
    grid-template-columns: 1fr;
  }

  .stat-item {
    padding: var(--space-4);
  }

  .stat-icon {
    font-size: 1.5rem;
  }

  .thank-you-steps {
    gap: var(--space-6);
  }

  .step-item {
    padding: var(--space-6);
  }

  .thank-you-cta h2 {
    font-size: var(--font-size-xl);
  }
}
