/* Training provider onboarding — mobile-first */

.tp-shell {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  overflow-x: hidden;
}

.tp-topbar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid rgba(8, 47, 117, 0.12);
}

@media (min-width: 640px) {
  .tp-topbar {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
  }
}

.tp-topbar__text {
  font-size: 0.875rem;
  color: rgba(8, 47, 117, 0.75);
  margin: 0;
}

.tp-topbar__text strong {
  color: var(--dnd-blue);
}

/* Stepper */
.tp-stepper {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tp-stepper__list {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tp-stepper__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
}

.tp-stepper__marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  border: 2px solid rgba(8, 47, 117, 0.2);
  color: rgba(8, 47, 117, 0.45);
  background: #fff;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .tp-stepper__marker {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.875rem;
  }
}

.tp-stepper__item--current .tp-stepper__marker {
  background: var(--dnd-blue);
  border-color: var(--dnd-blue);
  color: #fff;
}

.tp-stepper__item--done .tp-stepper__marker {
  background: #dcfce7;
  border-color: #16a34a;
  color: #16a34a;
}

.tp-stepper__label {
  font-size: 0.625rem;
  line-height: 1.15;
  color: rgba(8, 47, 117, 0.55);
  max-width: 100%;
  padding: 0 0.15rem;
}

@media (min-width: 640px) {
  .tp-stepper__label {
    font-size: 0.75rem;
  }
}

.tp-stepper__item--current .tp-stepper__label {
  color: var(--dnd-blue);
  font-weight: 600;
}

.tp-stepper__item--done .tp-stepper__label {
  color: #15803d;
}

.tp-stepper__label-short {
  display: inline;
}

.tp-stepper__label-full {
  display: none;
}

@media (min-width: 768px) {
  .tp-stepper__label-short {
    display: none;
  }
  .tp-stepper__label-full {
    display: inline;
  }
}

.tp-stepper__connector {
  flex: 0 1 1.25rem;
  height: 2px;
  min-width: 0.35rem;
  margin: 0 0.15rem;
  margin-bottom: 1.1rem;
  background: rgba(8, 47, 117, 0.15);
  list-style: none;
}

.tp-stepper__item--done + .tp-stepper__connector {
  background: #86efac;
}

/* Plan cards */
.tp-plans {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
  width: 100%;
}

@media (min-width: 640px) {
  .tp-plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (min-width: 1024px) {
  .tp-plans {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.tp-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  padding: 1rem;
  border-radius: 1rem;
  background: #fff;
  border: 2px solid rgba(8, 47, 117, 0.12);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  text-align: left;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .tp-plan {
    padding: 1.25rem;
    border-radius: 1.25rem;
  }
}

.tp-plan:hover {
  box-shadow: 0 8px 20px rgba(8, 47, 117, 0.08);
}

.tp-plan.is-selected {
  border-color: var(--dnd-blue);
  box-shadow: 0 0 0 3px rgba(8, 47, 117, 0.1);
}

.tp-plan.is-featured {
  border-color: var(--dnd-red);
}

.tp-plan__badge {
  position: absolute;
  top: -0.55rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  background: var(--dnd-red);
  color: #fff;
  white-space: nowrap;
}

.tp-plan__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dnd-blue);
  margin: 0 0 0.25rem;
}

.tp-plan__price {
  font-size: clamp(1.125rem, 4.5vw, 1.5rem);
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
  margin: 0;
  word-break: break-word;
}

.tp-plan__price small {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(8, 47, 117, 0.6);
}

.tp-plan__meta {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: rgba(8, 47, 117, 0.75);
  line-height: 1.45;
}

.tp-plan__meta strong {
  color: var(--dnd-blue);
}

.tp-plan__cta {
  margin-top: auto;
  padding-top: 1rem;
}

.tp-plan--contact {
  cursor: default;
  background: linear-gradient(145deg, #f4f8ff 0%, #ece8ff 100%);
}

/* Wizard */
.tp-wizard {
  display: grid;
  gap: 1.25rem;
  width: 100%;
  min-width: 0;
}

@media (min-width: 1024px) {
  .tp-wizard--split {
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: start;
    gap: 1.5rem;
  }
}

.tp-panel {
  background: #fff;
  border: 1px solid rgba(8, 47, 117, 0.12);
  border-radius: 1rem;
  padding: 1rem;
  min-width: 0;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .tp-panel {
    padding: 1.5rem;
    border-radius: 1.25rem;
  }
}

.tp-panel__head {
  margin-bottom: 1rem;
}

.tp-panel__head h2 {
  font-size: clamp(1.0625rem, 4vw, 1.25rem);
  font-weight: 700;
  color: var(--dnd-blue);
  margin: 0 0 0.25rem;
  line-height: 1.25;
}

.tp-panel__head p {
  font-size: 0.8125rem;
  color: rgba(8, 47, 117, 0.7);
  margin: 0;
  line-height: 1.45;
}

.tp-panel[hidden] {
  display: none !important;
}

.tp-panel input,
.tp-panel select,
.tp-panel textarea {
  max-width: 100%;
  box-sizing: border-box;
}

.tp-summary {
  min-width: 0;
}

@media (min-width: 1024px) {
  .tp-summary {
    position: sticky;
    top: 6rem;
  }
}

.tp-summary__plan {
  position: relative;
  overflow: hidden;
  padding: 1rem;
  border-radius: 0.875rem;
  background: linear-gradient(145deg, var(--dnd-blue) 0%, #0a3d8f 100%);
  color: #fff;
  margin-bottom: 0.75rem;
}

.tp-summary__plan::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.22) 0%, transparent 42%),
    radial-gradient(circle at 10% 90%, rgba(183, 6, 27, 0.35) 0%, transparent 45%),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 11px,
      rgba(255, 255, 255, 0.045) 11px,
      rgba(255, 255, 255, 0.045) 12px
    );
  pointer-events: none;
}

.tp-summary__plan::after {
  content: '';
  position: absolute;
  top: -2rem;
  right: -2rem;
  width: 7rem;
  height: 7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.tp-summary__plan > * {
  position: relative;
  z-index: 1;
}

.tp-summary__plan-label {
  display: block;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.85) !important;
  margin-bottom: 0.25rem;
}

.tp-summary__plan-name {
  font-weight: 700;
  font-size: 1.0625rem;
  color: #ffffff !important;
  margin: 0;
}

.tp-summary__plan-price {
  font-size: clamp(1.25rem, 5vw, 1.5rem);
  font-weight: 700;
  margin-top: 0.25rem;
  color: #ffffff !important;
  line-height: 1.2;
  word-break: break-word;
}

.tp-summary__plan-price small {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88) !important;
}

.tp-summary__rows {
  display: grid;
  gap: 0.5rem;
  font-size: 0.8125rem;
}

.tp-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(8, 47, 117, 0.1);
  min-width: 0;
}

.tp-summary__row dt {
  color: rgba(8, 47, 117, 0.65);
  flex-shrink: 0;
}

.tp-summary__row dd {
  font-weight: 600;
  color: var(--dnd-blue);
  text-align: right;
  word-break: break-word;
  min-width: 0;
}

.tp-summary__features {
  margin-top: 1.25rem;
}

.tp-summary__features h3 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(8, 47, 117, 0.55);
  margin: 0 0 0.65rem;
}

.tp-summary__features ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  color: rgba(8, 47, 117, 0.8);
}

.tp-summary__features li {
  padding: 0.3rem 0 0.3rem 1.25rem;
  position: relative;
}

.tp-summary__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--dnd-red);
}

.tp-wizard-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

@media (min-width: 480px) {
  .tp-wizard-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.tp-wizard-nav .btn,
.tp-wizard-nav .dnd-site-btn,
.tp-topbar .btn,
.tp-topbar .dnd-site-btn {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 480px) {
  .tp-wizard-nav .btn,
  .tp-wizard-nav .dnd-site-btn {
    width: auto;
    flex: 1 1 auto;
  }
  .tp-topbar .dnd-site-btn {
    width: auto;
    flex-shrink: 0;
  }
}

.tp-note-card {
  padding: 0.875rem 1rem;
  border-radius: 0.875rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.tp-flow-preview {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .tp-flow-preview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.tp-flow-card {
  padding: 1rem;
  border-radius: 0.875rem;
  background: #fff;
  border: 1px solid rgba(8, 47, 117, 0.1);
  text-align: center;
  min-width: 0;
}

.tp-flow-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--dnd-soft);
  color: var(--dnd-blue);
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.tp-flow-card h3 {
  font-size: 0.9375rem;
  margin: 0;
}

.tp-flow-card p {
  font-size: 0.8125rem;
  margin: 0.35rem 0 0;
  line-height: 1.4;
}

.tp-checkout-layout {
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  box-sizing: border-box;
}

.tp-checkout-page {
  min-height: calc(100vh - 4rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6.5rem 1rem 2.5rem;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .tp-checkout-page {
    padding-top: 7.5rem;
  }
}

.tp-checkout-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(8, 47, 117, 0.12);
  border-radius: 1rem;
  padding: 1rem;
  min-width: 0;
  box-sizing: border-box;
  box-shadow: 0 12px 40px rgba(8, 47, 117, 0.08);
}

.tp-checkout-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 92% 8%, rgba(8, 47, 117, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 4% 96%, rgba(183, 6, 27, 0.05) 0%, transparent 38%),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 14px,
      rgba(8, 47, 117, 0.025) 14px,
      rgba(8, 47, 117, 0.025) 15px
    );
  pointer-events: none;
}

.tp-checkout-card > * {
  position: relative;
  z-index: 1;
}

@media (min-width: 640px) {
  .tp-checkout-card {
    padding: 1.5rem;
    border-radius: 1.25rem;
  }
}

.tp-checkout-card h1 {
  font-size: clamp(1.125rem, 4.5vw, 1.375rem);
  font-weight: 700;
  color: var(--dnd-blue);
  margin: 0 0 0.35rem;
  line-height: 1.25;
}

.tp-checkout-card .tp-stepper {
  margin-bottom: 1.25rem;
}

.tp-checkout-card .btn,
.tp-checkout-card .dnd-site-btn {
  max-width: 100%;
  white-space: normal;
}

/* Terms */
.tp-terms__box {
  border: 1px solid rgba(8, 47, 117, 0.15);
  border-radius: 0.75rem;
  background: rgba(236, 232, 255, 0.35);
  padding: 0.65rem 0.875rem;
}

.tp-terms__summary {
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dnd-blue);
  list-style: none;
}

.tp-terms__summary::-webkit-details-marker {
  display: none;
}

.tp-terms__list {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.8125rem;
  color: rgba(8, 47, 117, 0.8);
  line-height: 1.45;
}

.tp-terms__accept {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: rgba(8, 47, 117, 0.85);
  cursor: pointer;
}

.tp-terms__accept input {
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--dnd-blue);
}

.tp-muted {
  font-size: 0.75rem;
  color: rgba(8, 47, 117, 0.55);
  line-height: 1.4;
  margin: 0;
}

/* Desktop — contained layout (mobile/tablet unchanged above) */
@media (min-width: 1024px) {
  .tp-shell {
    max-width: 72rem;
    margin-inline: auto;
    gap: 2.5rem;
  }

  .tp-topbar {
    padding: 1rem 1.25rem;
  }

  .tp-topbar__text {
    font-size: 0.9375rem;
  }

  .tp-stepper__list {
    max-width: 72rem;
    margin-inline: auto;
  }

  .tp-stepper__item {
    flex: 0 0 auto;
    min-width: 4.5rem;
    gap: 0.5rem;
  }

  .tp-stepper__marker {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.875rem;
  }

  .tp-stepper__label {
    font-size: 0.75rem;
    max-width: 5.5rem;
    padding: 0;
  }

  .tp-stepper__connector {
    flex: 1 1 auto;
    min-width: 1.5rem;
    margin: 0 0.35rem;
    margin-bottom: 1.75rem;
  }

  .tp-plans {
    gap: 1rem;
  }

  .tp-plan {
    padding: 1.5rem;
    border-radius: 1.25rem;
  }

  .tp-plan:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(8, 47, 117, 0.1);
  }

  .tp-plan.is-selected {
    box-shadow: 0 0 0 4px rgba(8, 47, 117, 0.1);
  }

  .tp-plan__badge {
    font-size: 0.6875rem;
    padding: 0.2rem 0.75rem;
    top: -0.65rem;
  }

  .tp-plan__name {
    font-size: 1.125rem;
    margin-bottom: 0.35rem;
  }

  .tp-plan__price {
    font-size: 1.75rem;
  }

  .tp-plan__price small {
    font-size: 0.875rem;
  }

  .tp-plan__meta {
    margin-top: 0.75rem;
    font-size: 0.875rem;
  }

  .tp-plan__cta {
    padding-top: 1.25rem;
  }

  .tp-wizard {
    gap: 2rem;
  }

  .tp-wizard--split {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 2rem;
  }

  .tp-panel {
    padding: 1.75rem;
    border-radius: 1.25rem;
  }

  .tp-panel__head {
    margin-bottom: 1.5rem;
  }

  .tp-panel__head h2 {
    font-size: 1.375rem;
    margin-bottom: 0.35rem;
  }

  .tp-panel__head p {
    font-size: 0.9375rem;
  }

  .tp-summary {
    top: 6.5rem;
  }

  .tp-summary__plan {
    padding: 1.25rem 1.35rem;
    margin-bottom: 1rem;
    box-shadow: 0 8px 24px rgba(8, 47, 117, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.15);
  }

  .tp-summary__plan::after {
    width: 9rem;
    height: 9rem;
    top: -2.5rem;
    right: -2.5rem;
  }

  .tp-summary__plan-label {
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
    margin-bottom: 0.35rem;
  }

  .tp-summary__plan-name {
    font-size: 1.25rem;
  }

  .tp-summary__plan-price {
    font-size: 1.75rem;
    margin-top: 0.35rem;
  }

  .tp-summary__plan-price small {
    font-size: 0.9375rem;
  }

  .tp-summary__rows {
    gap: 0.65rem;
    font-size: 0.875rem;
  }

  .tp-summary__row {
    gap: 0.75rem;
    padding-bottom: 0.65rem;
  }

  .tp-wizard-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
  }

  .tp-wizard-nav .btn,
  .tp-wizard-nav .dnd-site-btn {
    width: auto;
    flex: 0 0 auto;
  }

  .tp-topbar .dnd-site-btn {
    width: auto;
  }

  .tp-note-card {
    padding: 1.25rem 1.5rem;
    font-size: 0.9375rem;
  }

  .tp-flow-preview {
    gap: 1rem;
  }

  .tp-flow-card {
    padding: 1.25rem;
    border-radius: 1rem;
  }

  .tp-flow-card__icon {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }

  .tp-flow-card h3 {
    font-size: 1rem;
  }

  .tp-flow-card p {
    font-size: 0.875rem;
    margin-top: 0.5rem;
  }

  .tp-muted {
    font-size: 0.8125rem;
  }

  .tp-terms__box {
    padding: 0.75rem 1rem;
    border-radius: 0.875rem;
  }

  .tp-terms__summary {
    font-size: 0.9375rem;
  }

  .tp-terms__list {
    font-size: 0.875rem;
    margin-top: 0.75rem;
  }

  .tp-terms__accept {
    font-size: 0.875rem;
    margin-top: 0.875rem;
  }

  .tp-checkout-card {
    padding: 2rem;
    border-radius: 1.25rem;
  }

  .tp-checkout-card h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }

  .tp-checkout-card .tp-stepper {
    margin-bottom: 1.75rem;
  }
}

/* Desktop hero — keep narrow like original */
@media (min-width: 1024px) {
  .dnd-page-hero .main-container {
    max-width: 48rem;
  }
}

.tp-otp-form {
  max-width: 22rem;
  margin: 0 auto;
}

.tp-otp-input {
  width: 100%;
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  padding: 0.85rem 1rem;
  border-radius: 0.875rem;
  border: 1px solid color-mix(in srgb, var(--dnd-blue) 18%, #cbd5e1);
  background: #fff;
  font-variant-numeric: tabular-nums;
}

.tp-otp-input:focus {
  outline: 2px solid color-mix(in srgb, var(--dnd-blue) 35%, transparent);
  border-color: var(--dnd-blue);
}

.tp-password-wrap {
  margin-bottom: 0;
}

.tp-password-wrap input {
  margin-bottom: 0;
  padding-right: 2.75rem !important;
}

.tp-password-wrap .auth-password-toggle {
  right: 0.5rem;
}
