/* Onboarding Flow Styles */
.onboarding-wrapper {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  font-family: 'Quicksand', 'Fredoka', Arial, sans-serif;
}

.onboarding-container {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  width: 100%;
  overflow: hidden;
  position: relative;
}

/* Back Button - Top Left */
.back-button {
  position: static;
  margin-right: 1rem;
  flex-shrink: 0;
  background: none;
  border: none;
  color: #6b7280;
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.back-button:hover {
  background: #f3f4f6;
  color: #374151;
}

.back-button:first-child {
  display: none; /* Hide back button on first step */
}

/* Hide navigation elements during onboarding */
/* Hide immediately when onboarding-wrapper is present (before JS runs) */
body:has(.onboarding-wrapper) header,
body:has(.onboarding-wrapper) .navbar,
body:has(.onboarding-wrapper) .nav-container,
body:has(.onboarding-wrapper) .nav-cta,
body:has(.onboarding-wrapper) footer {
  display: none !important;
}

/* Also hide when onboarding-active class is added (for consistency) */
.onboarding-active header,
.onboarding-active .navbar,
.onboarding-active .nav-container,
.onboarding-active .nav-cta,
.onboarding-active footer {
  display: none !important;
}

/* Progress Bar */
.progress-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 2rem 1rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  position: relative;
}

.progress-bar {
  flex: 1 1 auto;
  width: auto;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2bb673, #4ade80);
  border-radius: 4px;
  transition: width 0.3s ease;
  width: 20%;
}

.progress-text {
  margin-left: 1rem;
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
  white-space: nowrap;
}

/* Step Content */
.onboarding-step {
  display: none;
  padding: 2rem;
}

.onboarding-step.active {
  display: block;
}

.step-content {
  text-align: center;
}

.step-image {
  margin-bottom: 2rem;
}

.step-image img {
  width: 100%;
  max-width: 300px;
}

.step-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
  font-family: 'Fredoka', 'Quicksand', Arial, sans-serif;
}

.step-description {
  font-size: 1.1rem;
  color: #64748b;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Input Styles */
.input-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.input-group label {
  display: block;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.form-input {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s ease;
  background: white;
}

.form-input:focus {
  outline: none;
  border-color: #2bb673;
  box-shadow: 0 0 0 3px rgba(43, 182, 115, 0.1);
}

.input-error {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: none;
}

/* Button Styles */
.step-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.step-btn {
  margin: 2rem auto 0;
  display: block;
  width: 100%;
  max-width: 300px;
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn {
  padding: 0.875rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: inherit;
  min-width: 120px;
}

.btn-primary {
  background: #2bb673;
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background: #249c62;
  transform: translateY(-1px);
}

.btn-primary:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
}

.btn-outline {
  background: transparent;
  color: #6b7280;
  border: 2px solid #e5e7eb;
}

.btn-outline:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

/* Grade Options */
.grade-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.grade-option {
  padding: 1.5rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  background: white;
}

.grade-option:hover {
  border-color: #2bb673;
  transform: translateY(-2px);
}

.grade-option.selected {
  border-color: #2bb673;
  background: #f0fdf4;
  box-shadow: 0 4px 12px rgba(43, 182, 115, 0.15);
}

.grade-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.grade-option span {
  font-weight: 600;
  color: #374151;
}

/* Skills Options */
.skills-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.skill-option {
  padding: 1.5rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  background: white;
}

.skill-option:hover {
  border-color: #2bb673;
  transform: translateY(-2px);
}

.skill-option.selected {
  border-color: #2bb673;
  background: #f0fdf4;
  box-shadow: 0 4px 12px rgba(43, 182, 115, 0.15);
}

.skill-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.skill-option span {
  font-weight: 600;
  color: #374151;
}

/* Learning Options */
.learning-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.learning-option {
  padding: 1.5rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  background: white;
}

.learning-option:hover {
  border-color: #2bb673;
  transform: translateY(-2px);
}

.learning-option.selected {
  border-color: #2bb673;
  background: #f0fdf4;
  box-shadow: 0 4px 12px rgba(43, 182, 115, 0.15);
}

.learning-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.learning-option h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.learning-option p {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.4;
}

/* Motivation Options */
.motivation-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.motivation-option {
  padding: 1.5rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  background: white;
}

.motivation-option:hover {
  border-color: #2bb673;
  transform: translateY(-2px);
}

.motivation-option.selected {
  border-color: #2bb673;
  background: #f0fdf4;
  box-shadow: 0 4px 12px rgba(43, 182, 115, 0.15);
}

.motivation-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.motivation-option h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.motivation-option p {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.4;
}

/* Commitment Options */
.commitment-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.commitment-option {
  padding: 1.5rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  background: white;
}

.commitment-option:hover {
  border-color: #2bb673;
  transform: translateY(-2px);
}

.commitment-option.selected {
  border-color: #2bb673;
  background: #f0fdf4;
  box-shadow: 0 4px 12px rgba(43, 182, 115, 0.15);
}

.commitment-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.commitment-option h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.commitment-option p {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.4;
}

/* Email Notice */
.email-notice {
  display: block;
  padding: 1.5rem;
  background: #f0f9ff;
  border: 1px solid #0ea5e9;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.notice-content {
  text-align: left;
}

.notice-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #0c4a6e;
  margin-bottom: 0.75rem;
  display: block;
  vertical-align: middle;
  text-align: left;
}

.notice-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem 0;
}

.notice-content li {
  font-size: 0.95rem;
  color: #0369a1;
  margin-bottom: 0.25rem;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.6;
  display: flex;
  align-items: center;
}

.notice-content li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #0ea5e9;
  font-weight: bold;
  font-size: 1.1rem;
}

.notice-content li:last-child {
  margin-bottom: 0;
}

.account-benefit {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: #0c4a6e;
  font-weight: 600;
  background: #e0f2fe;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  display: inline-block;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* OTP Container */
.otp-container {
  margin-bottom: 2rem;
}

.otp-inputs {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.otp-input {
  width: 60px;
  height: 60px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  background: white;
  transition: all 0.2s ease;
}

.otp-input:focus {
  outline: none;
  border-color: #2bb673;
  box-shadow: 0 0 0 3px rgba(43, 182, 115, 0.1);
}

.otp-input.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.otp-error {
  color: #ef4444;
  font-size: 0.875rem;
  text-align: center;
  margin-bottom: 1.5rem;
  display: none;
}

.otp-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

/* Email Form */
.email-form {
  width: 100%;
}

/* Account Summary */
.account-summary {
  background: #f8fafc;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  text-align: left;
}

.account-summary h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 1rem;
  text-align: center;
}

.profile-details {
  display: grid;
  gap: 0.5rem;
}

.profile-detail {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.profile-detail:last-child {
  border-bottom: none;
}

.profile-label {
  font-weight: 500;
  color: #64748b;
}

.profile-value {
  font-weight: 600;
  color: #374151;
}

/* Responsive Design */
@media (max-width: 640px) {
  .onboarding-container {
    margin: 1rem;
    border-radius: 16px;
  }
  
  .onboarding-step {
    padding: 1.5rem;
  }
  
  .step-title {
    font-size: 1.5rem;
  }
  
  .step-description {
    font-size: 1rem;
  }
  
  .grade-options {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .motivation-options {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .commitment-options {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .learning-options {
    grid-template-columns: 1fr;
  }
  
  .step-btn {
    width: 100%;
    max-width: none;
  }
  
  .progress-container {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 1rem 0.5rem 0.5rem;
  }
  .back-button {
    align-self: flex-start;
    margin-bottom: 0.5rem;
    margin-right: 0;
  }
  .progress-bar {
    margin-bottom: 0.25rem;
  }
  .progress-text {
    margin-left: 0;
    margin-top: 0.25rem;
  }
}

/* Animation for step transitions */
.onboarding-step {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading state for buttons */
.btn-loading {
  position: relative;
  color: transparent;
}

.btn-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Achievements List */
.achievements-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.achievement-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 12px;
  border-left: 4px solid #2bb673;
}

.achievement-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.achievement-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.achievement-content p {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.4;
  margin: 0;
}

/* Achievements List */
.achievement-title-left {
  text-align: left;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #374151;
}

/* Trial Subscription Step */
.trial-container {
  background: #fff;
  color: #23275a;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(24,28,58,0.12);
  max-width: 540px;
  margin: 2.5rem auto 0 auto;
  padding: 2.2rem 1rem 2rem 1rem;
  text-align: center;
  position: relative;
  border: 1px solid #e2e8f0;
}

.trial-title {
  color: #23275a;
  font-size: 2rem;
  font-weight: 700;
}

.trial-subtitle {
  color: #64748b;
  font-size: 1.08rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.trial-timeline {
  margin-bottom: 2.8rem;
}

.timeline-step {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 90px;
}

.timeline-step.active .timeline-icon {
  background: #2bb673;
  color: #fff;
}

.timeline-icon {
  width: 44px;
  height: 44px;
  background: #23275a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 0.5rem;
  color: #2bb673;
  border: 2px solid #2bb673;
}

.timeline-bar {
  width: 32px;
  height: 4px;
  background: #2bb673;
  align-self: center;
  border-radius: 2px;
  margin: 0 0.2rem;
}

.timeline-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
}

.timeline-label {
  color: #23275a;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.05rem;
  text-align: left;
}

.timeline-desc {
  color: #64748b;
  font-size: 0.98rem;
  font-weight: 400;
  margin: 0 0 1.1rem 0;
  text-align: left;
}

.trial-card {
  margin: 1.5rem auto 1.5rem auto;
  padding: 1.5rem 1rem 0.5rem 1rem;
  box-shadow: 0 2px 12px rgba(24,28,58,0.10);
  background: #fff;
  color: #23275a;
  border-radius: 16px;
  max-width: 340px;
  position: relative;
  text-align: left;
}

.trial-badge {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  background: #2bb673;
  color: #fff;
  font-size: 0.90rem;
  font-weight: 700;
  border-radius: 12px;
  padding: 0.4rem 1.2rem;
  box-shadow: 0 2px 8px rgba(43,182,115,0.10);
  letter-spacing: 0.01em;
  z-index: 2;
}

.trial-details {
  margin-top: 1.2rem;
}

.trial-plan {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.trial-price {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2bb673;
  margin-bottom: 0.2rem;
}

.trial-month {
  font-size: 0.98rem;
  color: #23275a;
  font-weight: 400;
  margin-left: 0.2rem;
}

.trial-note {
  font-size: 0.95rem;
  color: #6b7280;
  margin-top: 0.2rem;
}

.trial-cta {
  display: block;
  width: 100%;
  max-width: 340px;
  margin: 1.5rem auto 0.7rem auto;
  font-size: 1.15rem;
  padding: 1.1rem 0;
  border-radius: 12px;
  background: linear-gradient(90deg, #2bb673 60%, #4ade80 100%);
  color: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(43,182,115,0.10);
  transition: background 0.2s;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  line-height: 1.2;
  vertical-align: middle;
}

.trial-cta:hover {
  background: linear-gradient(90deg, #249c62 60%, #2bb673 100%);
}

.trial-links {
  display: flex;
  justify-content: space-between;
  margin-top: 1.2rem;
  font-size: 0.98rem;
}

.trial-link {
  color: #b3b8d0;
  text-decoration: underline;
  transition: color 0.2s;
}

.trial-link:hover {
  color: #2bb673;
}

@media (max-width: 600px) {
  .trial-timeline {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
  .timeline-step {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 0.2rem;
    margin-bottom: 1.2rem;
  }
  .timeline-bar {
    width: 4px;
    height: 32px;
    margin: 0;
    background: #2bb673;
  }
  .trial-container {
    padding: 1.2rem 0.5rem 1.2rem 0.5rem;
    max-width: 98vw;
    background: #fff;
    box-shadow: 0 8px 32px rgba(24,28,58,0.12);
    border-radius: 16px;
    border: 1px solid #e2e8f0;
  }
  .trial-card {
    max-width: 100%;
    padding: 1.2rem 0.5rem 0.5rem 0.5rem;
    margin: 0 auto 1.5rem auto;
  }
  .trial-timeline {
    padding-left: 0;
    margin-bottom: 2.2rem;
  }
  .timeline-step {
    min-height: 72px;
  }
  .timeline-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    z-index: 1;
    margin-right: 0px;
  }
  .trial-cta {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .trial-skip {
    display: block;
    margin: 0.5rem auto 0 auto;
    text-align: center;
    width: auto;
  }
}

.timeline-step:last-child .timeline-desc {
  margin-bottom: 0;
}

/* Modern Timeline Styles */
.timeline {
  position: relative;
  margin: 2.5rem 0 1rem 0;
  padding-left: 0;
  max-width: 600px;
}
/*
  The .timeline-line gradient is:
  - Solid purple (#667eea) from start to just after Day 7 (85%)
  - Fades to button green (#2bb673) at 92%
  - Fades out to gray (#e2e8f0) at 100%
  This ensures the line is solid between Day 5 and Day 7, then fades out in a theme color.
*/
.timeline-line {
  position: absolute;
  left: 32px;
  top: 0;
  bottom: 0;
  width: 56px;
  border-top-right-radius: 28px;
  border-top-left-radius: 28px;
  /* Blue to green, then fade to transparent */
  background: linear-gradient(
    to bottom,
    #22b6f7 0%,      /* blue */
    #22b6f7 72%,     /* blue */
    #7be495 72%,     /* green */
    rgba(123, 228, 149, 0.0) 100% /* transparent */
  );
  z-index: 0;
}
.timeline-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-bottom: 2.2rem;
  z-index: 1;
  min-height: 56px;
}
.timeline-step:last-child {
  margin-bottom: 0;
}
.timeline-icon {
  position: absolute;
  left: 32px;
  top: 0;
  transform: none;
  width: 56px;
  height: 56px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(24,28,58,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  z-index: 2;
  border: 2px solid #e2e8f0;
}
.timeline-content {
  margin-left: 112px;
  text-align: left;
  min-height: 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.timeline-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: #23275a;
  margin-bottom: 0.2rem;
}
.timeline-desc,
.timeline-desc b {
  font-size: 1.08rem;
  color: #64748b;
  font-weight: 400;
  line-height: 1.5;
}
@media (max-width: 600px) {
  .timeline {
    position: relative;
    margin: 1.5rem 0 1.5rem 0;
    padding-left: 0;
  }
  .timeline-line {
    position: absolute;
    left: 18px;
    width: 36px;
    top: 0;
    bottom: 0;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background: linear-gradient(
      to bottom,
      #22b6f7 0%,
      #22b6f7 72%,
      #7be495 72%,
      rgba(123, 228, 149, 0.0) 100%
    );
    z-index: 0;
  }
  .timeline-step {
    display: block !important;
    position: relative;
    min-height: 56px;
    margin-bottom: 2.2rem;
  }
  .timeline-icon {
    position: absolute;
    left: 16px;
    top: 0;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    z-index: 1;
    margin-right: 0px;
  }
  .timeline-content {
    margin-left: 72px;
    min-height: 40px;
    text-align: left;
    display: block;
  }
  .timeline-title {
    font-size: 1rem;
    font-weight: 700;
    color: #23275a;
    margin-bottom: 0.2rem;
    text-align: left;
  }
  .timeline-desc {
    font-size: 0.98rem;
    color: #64748b;
    text-align: left;
    margin-bottom: 0;
  }
}

.timeline-spacer {
  height: 2px;
}

.trial-skip {
  display: block;
  margin: 0.5rem auto 0 auto;
  color: #6b7280;
  background: none;
  border: none;
  font-size: 1rem;
  text-decoration: underline;
  cursor: pointer;
  font-family: inherit;
  box-shadow: none;
  padding: 0;
  outline: none;
  transition: color 0.2s, opacity 0.2s;
  text-align: center;
}
.trial-skip:hover {
  color: #23275a;
  text-decoration: underline;
}
.trial-skip:disabled,
.trial-skip.loading {
  color: #9ca3af;
  cursor: not-allowed;
  text-decoration: none;
  animation: pulse-loading 1.5s ease-in-out infinite;
}

@keyframes pulse-loading {
  0%, 100% {
    opacity: 0.7;
  }
  50% {
    opacity: 0.4;
  }
}

@media (max-width: 600px) {
  .trial-skip {
    display: block;
    margin: 0.5rem auto 0 auto;
    text-align: center;
    width: auto;
  }
}