/* Self Diagnosis Experience — client page wizard */

.sd-experience {
  background: #fafafa;
}

/* Stepper — pinned at top of form card */
.sd-wizard .sd-stepper {
  flex-shrink: 0;
  width: 100%;
  margin-bottom: 0;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #eee;
}

.sd-stepper__list {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.sd-stepper__step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  min-width: 0;
}

.sd-stepper__track {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
  margin-bottom: 0.65rem;
}

/* Connector line between steps */
.sd-stepper__step:not(:last-child) .sd-stepper__track::after {
  content: '';
  position: absolute;
  left: calc(50% + 22px);
  right: calc(-50% + 22px);
  top: 50%;
  height: 3px;
  background: #e5e5e5;
  transform: translateY(-50%);
  z-index: 0;
}

.sd-stepper__step.is-done:not(:last-child) .sd-stepper__track::after {
  background: #F7941D;
}

.sd-stepper__circle {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid #e5e5e5;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: #888;
  flex-shrink: 0;
}

.sd-stepper__step.is-active .sd-stepper__circle {
  border-color: #F7941D;
  background: #FFF5E6;
  color: #1a1a1a;
}

.sd-stepper__step.is-done .sd-stepper__circle {
  border-color: #F7941D;
  background: #F7941D;
  color: #fff;
}

.sd-stepper__label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #888;
  line-height: 1.3;
  padding: 0 0.35rem;
}

.sd-stepper__step.is-active .sd-stepper__label {
  color: #F7941D;
}

.sd-stepper__step.is-done .sd-stepper__label {
  color: #1a1a1a;
}

@media (max-width: 576px) {
  .sd-stepper__circle {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }

  .sd-stepper__label {
    font-size: 0.75rem;
  }

  .sd-stepper__step:not(:last-child) .sd-stepper__track::after {
    left: calc(50% + 18px);
    right: calc(-50% + 18px);
  }
}

.sd-experience__layout {
  gap: 2.5rem 0;
}

@media (min-width: 992px) {
  .sd-experience__layout {
    gap: 0;
  }

  .sd-experience__intro {
    position: sticky;
    top: 100px;
    align-self: flex-start;
    padding-right: 2rem;
  }
}

.sd-experience__eyebrow {
  letter-spacing: 0.08em;
}

.sd-experience__panel {
  min-width: 0;
}

.sd-wizard {
  display: flex;
  flex-direction: column;
  height: 640px;
  max-height: calc(100vh - 180px);
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  padding: 1.5rem 1.5rem 1.25rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.sd-wizard__scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-top: 1.5rem;
  padding-right: 0.35rem;
  margin-right: -0.35rem;
  -webkit-overflow-scrolling: touch;
}

.sd-wizard__scroll::-webkit-scrollbar {
  width: 6px;
}

.sd-wizard__scroll::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 3px;
}

.sd-wizard__scroll::-webkit-scrollbar-thumb:hover {
  background: #F7941D;
}

@media (max-width: 991px) {
  .sd-experience__intro {
    margin-bottom: 1.5rem;
  }

  .sd-wizard {
    height: 560px;
    max-height: 70vh;
  }
}

@media (max-width: 768px) {
  .sd-wizard {
    padding: 1.25rem 1rem 1rem;
    height: 520px;
  }
}

.sd-step {
  display: none;
  flex-direction: column;
}

.sd-step.is-active {
  display: flex;
  flex-direction: column;
  animation: sdFadeIn 0.35s ease;
}

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

.sd-step__title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #1a1a1a;
}

.sd-step__lead {
  font-size: 1.05rem;
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.sd-scale-legend {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 1.25rem;
  padding: 0.65rem 1rem;
  background: #f8f8f8;
  border-radius: 8px;
  border-left: 3px solid #F7941D;
}

.sd-choice-stack,
.sd-season-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.sd-choice-btn {
  display: block;
  width: 100%;
  padding: 1rem 1.25rem;
  text-align: left;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  background: #fff;
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sd-choice-btn--compact {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.85rem 1rem;
  line-height: 1.4;
}

.sd-choice-btn:hover,
.sd-choice-btn.is-selected {
  border-color: #F7941D;
  background: #FFF5E6;
  box-shadow: 0 4px 12px rgba(247, 148, 29, 0.15);
}

.sd-season-card {
  padding: 1.25rem;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sd-season-card:hover,
.sd-season-card.is-selected {
  border-color: #F7941D;
  background: #FFF5E6;
}

.sd-season-card__label {
  font-weight: 600;
  font-size: 1.05rem;
  display: block;
  margin-bottom: 0.25rem;
}

.sd-rating-block {
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f0f0f0;
}

.sd-rating-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.sd-rating-block__label {
  font-size: 0.98rem;
  line-height: 1.45;
  color: #333;
  margin-bottom: 0.75rem;
}

.sd-rating-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.sd-rating-row input[type="range"] {
  flex: 1;
  min-width: 160px;
  max-width: 320px;
  accent-color: #F7941D;
}

.sd-rating-value {
  min-width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  background: #FFF5E6;
  border-radius: 8px;
  color: #1a1a1a;
}

.sd-dimension-heading {
  font-size: 1.15rem;
  font-weight: 600;
  color: #F7941D;
  margin: 1.5rem 0 1rem;
  padding-top: 0.5rem;
}

.sd-dimension-heading:first-child {
  margin-top: 0;
}

.sd-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

.sd-nav .btn-outline-sd {
  border: 2px solid #e5e5e5;
  background: #fff;
  color: #1a1a1a;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
}

.sd-nav .btn-outline-sd:hover {
  border-color: #F7941D;
  background: #FFF5E6;
}

.sd-snapshot-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.sd-snapshot-benefits li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.65rem;
  font-size: 1rem;
  color: #444;
}

.sd-snapshot-benefits li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #F7941D;
}

.sd-form__fields {
  flex-direction: column;
}

.sd-form .form-control,
.sd-form select.form-control {
  border-radius: 8px;
  border-color: #ddd;
  font-size: 1rem;
  width: 100%;
}

.sd-wizard__scroll .sd-step.is-active {
  align-items: stretch;
}

.sd-form .form-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
}

.sd-phone-group {
  display: flex;
  gap: 0.5rem;
}

.sd-phone-group {
  width: 100%;
}

.sd-phone-group select {
  max-width: 140px;
  flex-shrink: 0;
}

.sd-phone-group input {
  flex: 1;
  min-width: 0;
}

.sd-success {
  text-align: center;
  padding: 2rem 1rem;
}

.sd-success__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: #FFF5E6;
  color: #F7941D;
  font-size: 2rem;
  line-height: 64px;
}

.sd-alert-inline {
  margin-bottom: 1rem;
}
