/* === Chrono Projet Timeline Styles === */
.chrono-header {
  text-align: center;
  padding: 2rem 1rem 1.5rem;
}
.chrono-header-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, hsl(231, 47%, 40%) 0%, var(--exam-calendar-purple) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin: 0 auto 0.875rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
}
.chrono-title {
  color: var(--exam-calendar-primary);
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
}
.chrono-subtitle {
  color: rgba(0, 0, 0, 0.75);
  font-size: 0.875rem;
  max-width: 380px;
  margin: 0 auto;
  line-height: 1.5;
}
.chrono-date-picker-wrapper {
  padding: 0 1rem 2rem;
}

/* Responsive grid for pickers */
.chrono-picker-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.chrono-picker-item {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.chrono-date-picker-label {
  display: block;
  font-weight: 600;
  color: #000;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  text-align: left;
}

.chrono-date-picker-label i {
  color: var(--exam-calendar-primary);
  margin-right: 0.375rem;
}

.chrono-date-picker {
  width: 100%;
  padding: 0.875rem 1.125rem;
  border: 2px solid #e0e4f2;
  border-radius: 0.625rem;
  font-size: 0.9375rem;
  color: #1a1a1a;
  background: white;
  cursor: pointer;
  font-weight: 500;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23374294'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  background-size: 1.25rem;
  padding-right: 2.5rem;
  transition: all 0.25s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.chrono-date-picker:hover:not(:disabled) {
  border-color: var(--exam-calendar-primary);
  box-shadow: 0 2px 6px rgba(55, 66, 148, 0.12);
  transform: translateY(-1px);
}

.chrono-date-picker:focus {
  outline: none;
  border-color: var(--exam-calendar-primary);
  box-shadow:
    0 0 0 4px rgba(55, 66, 148, 0.15),
    0 2px 6px rgba(55, 66, 148, 0.12);
}

.chrono-date-picker:disabled {
  background: #f7f8fa;
  color: #9ca3af;
  cursor: not-allowed;
  border-color: #e5e7eb;
  box-shadow: none;
}

.chrono-date-picker option {
  padding: 0.5rem;
  font-weight: 500;
}
.chrono-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 0 2rem;
}
.chrono-card {
  background: var(--exam-calendar-bg);
  border: 1px solid var(--exam-calendar-border);
  border-radius: 0.5rem;
  border-top: 3px solid var(--exam-calendar-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.chrono-steps {
  position: relative;
  padding: 1.25rem;
  padding-left: 3.5rem;
  padding-bottom: 3rem; /* Extra space for step 7 to trigger */
}
.chrono-steps::before {
  content: '';
  position: absolute;
  left: 2.25rem;
  top: 2.5rem;
  bottom: 2.5rem;
  width: 2px;
  background: var(--exam-calendar-border);
  border-radius: 1px;
  z-index: 0;
}
.chrono-progress-line {
  position: absolute;
  left: 2.25rem;
  top: 2.5rem;
  width: 2px;
  height: 0;
  background: linear-gradient(180deg, var(--exam-calendar-primary) 0%, var(--exam-calendar-purple) 100%);
  border-radius: 1px;
  z-index: 1;
  transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.chrono-step {
  display: flex;
  gap: 1rem;
  position: relative;
  padding-bottom: 1.25rem;
  z-index: 2;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}
.chrono-step.visible {
  opacity: 1;
  transform: translateY(0);
}
.chrono-step:last-child {
  padding-bottom: 0;
}
.chrono-step:nth-child(even) .chrono-step-content {
  background: var(--exam-calendar-light);
}
.chrono-step:nth-child(odd) .chrono-step-content {
  background: var(--exam-calendar-bg);
}
.chrono-step:hover .chrono-step-content {
  background: linear-gradient(90deg, hsl(231, 47%, 40%, 0.08) 0%, hsl(260, 50%, 45%, 0.06) 100%) !important;
  transform: translateX(4px);
}
.chrono-marker {
  position: absolute;
  left: -2.375rem;
  top: 0.25rem;
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--exam-calendar-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: rgba(0, 0, 0, 0.75);
  z-index: 2;
  box-shadow: 0 0 0 4px white;
  transition: all 0.4s ease;
}
.chrono-step.visible .chrono-marker {
  border-color: var(--exam-calendar-primary);
  color: var(--exam-calendar-primary);
  background: white;
}
.chrono-step.active .chrono-marker {
  background: var(--exam-calendar-primary);
  border-color: var(--exam-calendar-primary);
  color: white;
  box-shadow:
    0 0 0 4px white,
    0 0 0 7px rgba(55, 66, 148, 0.15);
  transform: scale(1.1);
}
.chrono-step.completed .chrono-marker {
  background: hsl(142.1, 76.2%, 36.3%);
  border-color: hsl(142.1, 76.2%, 36.3%);
  color: white;
}
.chrono-step-content {
  flex: 1;
  padding: 0.875rem 1rem;
  border-radius: 0.375rem;
  border: 1px solid var(--exam-calendar-border);
  min-width: 0;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}
.chrono-step-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.chrono-step-title {
  font-weight: 600;
  font-size: 0.9375rem;
  color: #000;
  line-height: 1.3;
}
.chrono-step-duration {
  font-size: 0.6875rem;
  color: white;
  background: linear-gradient(135deg, var(--exam-calendar-primary) 0%, var(--exam-calendar-purple) 100%);
  padding: 0.1875rem 0.5rem;
  border-radius: 9999px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.chrono-step-date {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--exam-calendar-primary);
  font-weight: 600;
  margin-bottom: 0.375rem;
}
.chrono-step-date i {
  font-size: 0.75rem;
  opacity: 0.8;
}
.chrono-step-description {
  font-size: 0.8125rem;
  color: rgba(0, 0, 0, 0.75);
  line-height: 1.5;
}
.chrono-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 9999px;
  padding: 0.1875rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 500;
  margin-top: 0.5rem;
}
.chrono-badge i {
  font-size: 0.625rem;
}
.chrono-badge.success {
  background: hsl(142.1, 76.2%, 36.3%, 0.12);
  color: hsl(142.1, 70%, 35%);
  border: 1px solid hsl(142.1, 76.2%, 36.3%, 0.25);
}
.chrono-badge.info {
  background: hsl(231, 47%, 40%, 0.12);
  color: var(--exam-calendar-primary);
  border: 1px solid hsl(231, 47%, 40%, 0.25);
}
.chrono-footnote {
  margin: 0 1.25rem 3rem; /* Extra bottom margin for scroll space */
  padding: 0.75rem 1rem;
  background: var(--exam-calendar-muted);
  border-radius: 0.375rem;
  font-size: 0.75rem;
  color: rgba(0, 0, 0, 0.75);
  border-left: 3px solid var(--exam-calendar-primary);
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}
.chrono-footnote.visible {
  opacity: 1;
  transform: translateY(0);
}
.chrono-footnote strong {
  color: var(--exam-calendar-primary);
}
@media (min-width: 768px) {
  /* Responsive grid: side-by-side on larger screens */
  .chrono-picker-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
  }

  .chrono-date-picker-wrapper {
    padding: 0 1.5rem 2.5rem;
  }

  .chrono-header {
    padding: 2.5rem 1rem 1.5rem;
  }
  .chrono-header-icon {
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1.5rem;
  }
  .chrono-title {
    font-size: 1.75rem;
  }
  .chrono-subtitle {
    font-size: 0.9375rem;
    max-width: 550px;
  }
  .chrono-container {
    padding: 0 0 3rem;
    max-width: 100%;
  }
  .chrono-card {
    border-radius: 0.75rem;
  }
  .chrono-steps {
    padding: 1.5rem 2rem;
    padding-left: 5rem;
    padding-bottom: 3rem;
  }
  .chrono-steps::before {
    left: 3.25rem;
  }
  .chrono-progress-line {
    left: 3.25rem;
  }
  .chrono-step {
    gap: 1.5rem;
    padding-bottom: 1.5rem;
  }
  .chrono-marker {
    left: -3.25rem;
    width: 3rem;
    height: 3rem;
    font-size: 1.125rem;
  }
  .chrono-step-content {
    padding: 1.25rem 1.5rem;
  }
  .chrono-step-title {
    font-size: 1.125rem;
  }
  .chrono-step-description {
    font-size: 0.9375rem;
  }
  .chrono-step-duration {
    font-size: 0.75rem;
    padding: 0.25rem 0.625rem;
  }
  .chrono-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
  }
  .chrono-footnote {
    margin: 0 2rem 3rem;
    padding: 1rem 1.25rem;
    font-size: 0.8125rem;
  }
}
/* Large desktop - two column layout option */
@media (min-width: 1200px) {
  .chrono-steps {
    padding-left: 6rem;
  }
  .chrono-steps::before {
    left: 3.875rem;
  }
  .chrono-progress-line {
    left: 3.875rem;
  }
  .chrono-marker {
    left: -3.75rem;
    width: 3.25rem;
    height: 3.25rem;
  }
  .chrono-step-content {
    padding: 1.5rem 2rem;
  }
}
