/* ============================================================
   Registration Wizard — TeachAcademy
   ============================================================ */

/* ── Wrapper ─────────────────────────────────────────────────── */
.ta-reg-wizard-wrap {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  background: #fff;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 24px rgba(0,0,0,.04);
  overflow: hidden;
}

.ta-reg-wizard-wrap > .woocommerce-error,
.ta-reg-wizard-wrap > .woocommerce-message {
  margin: 24px 32px 0;
}

/* ── Progress bar ────────────────────────────────────────────── */
.ta-reg-progress {
  display: flex;
  flex-direction: column;
  padding: 20px 24px 0;
}

.ta-reg-steps-indicator {
  order: 1;
  display: flex;
  justify-content: space-between;
}

.ta-reg-progress-track {
  order: 2;
  height: 3px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 14px;
  margin-bottom: 0;
}

.ta-reg-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #6CD3C2, #3d8b80);
  border-radius: 3px;
  transition: width 0.45s cubic-bezier(.4,0,.2,1);
}

/* steps-indicator already defined above with order:1 */

.ta-reg-step-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  cursor: default;
  opacity: .4;
  transition: opacity .25s ease;
}

.ta-reg-step-dot.is-active,
.ta-reg-step-dot.is-done {
  opacity: 1;
}

.ta-reg-step-dot.is-done {
  cursor: pointer;
}

.ta-reg-step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #94a3b8;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s ease, color .25s ease, box-shadow .25s ease;
}

.ta-reg-step-dot.is-active .ta-reg-step-num {
  background: #3d8b80;
  color: #fff;
  box-shadow: 0 2px 8px rgba(61,139,128,.25);
}

.ta-reg-step-dot.is-done .ta-reg-step-num {
  background: #6CD3C2;
  color: #fff;
}

.ta-reg-step-label {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.ta-reg-step-dot.is-active .ta-reg-step-label {
  color: #27282c;
}

/* ── Fieldset / steps ────────────────────────────────────────── */
.ta-reg-step {
  display: none;
  border: none;
  padding: 20px 20px;
  margin: 0;
  animation: ta-fadeIn .3s ease;
}

.ta-reg-step.is-active {
  display: block;
}

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

/* Step header */
.ta-reg-step-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.ta-reg-step-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #eef9f6, #d9f0eb);
  color: #2d5f57;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ta-reg-step-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #27282c;
  margin: 0 0 2px;
}

.ta-reg-step-desc {
  margin: 0;
  color: #6b7280;
  font-size: .92rem;
  line-height: 1.5;
}

/* ── Fields ──────────────────────────────────────────────────── */
.ta-reg-field {
  margin-bottom: 14px;
}

.ta-reg-field label {
  display: block;
  font-size: .88rem;
  font-weight: 700;
  color: #27282c;
  margin-bottom: 6px;
}

.ta-req {
  color: #ef4444;
}

.ta-reg-field input[type="text"],
.ta-reg-field input[type="email"],
.ta-reg-field input[type="password"],
.ta-reg-field input[type="tel"],
.ta-reg-field select {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  font-size: .95rem;
  color: #27282c;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.ta-reg-field input:focus,
.ta-reg-field select:focus {
  outline: none;
  border-color: #6CD3C2;
  box-shadow: 0 0 0 3px rgba(108, 211, 194, .15);
}

.ta-reg-field input.is-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .1);
}

.ta-reg-hint {
  display: block;
  margin-top: 6px;
  font-size: .82rem;
  color: #9ca3af;
}

.ta-reg-error {
  margin-top: 6px;
  font-size: .82rem;
  color: #ef4444;
  font-weight: 600;
}

/* Two-column row */
.ta-reg-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ta-reg-row--3 {
  grid-template-columns: 1fr 1fr 1fr;
}

/* ── Password ────────────────────────────────────────────────── */
.ta-reg-password-wrap {
  position: relative;
}

.ta-reg-password-wrap input {
  padding-right: 48px;
}

.ta-reg-pw-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
}

.ta-reg-pw-toggle:hover {
  color: #6b7280;
}

.ta-reg-pw-strength {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ta-pw-bar {
  flex: 1;
  height: 4px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}

.ta-pw-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width .3s ease;
}

.ta-pw-weak .ta-pw-bar-fill,
.ta-pw-bar.ta-pw-weak .ta-pw-bar-fill  { background: #ef4444; }
.ta-pw-fair .ta-pw-bar-fill,
.ta-pw-bar.ta-pw-fair .ta-pw-bar-fill   { background: #f59e0b; }
.ta-pw-good .ta-pw-bar-fill,
.ta-pw-bar.ta-pw-good .ta-pw-bar-fill   { background: #6CD3C2; }
.ta-pw-strong .ta-pw-bar-fill,
.ta-pw-bar.ta-pw-strong .ta-pw-bar-fill { background: #3d8b80; }

.ta-pw-label {
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
}

.ta-pw-label.ta-pw-weak   { color: #ef4444; }
.ta-pw-label.ta-pw-fair   { color: #f59e0b; }
.ta-pw-label.ta-pw-good   { color: #6CD3C2; }
.ta-pw-label.ta-pw-strong { color: #3d8b80; }

/* ── Shop URL ────────────────────────────────────────────────── */
.ta-reg-url-wrap {
  display: flex;
  align-items: stretch;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.ta-reg-url-wrap:focus-within {
  border-color: #6CD3C2;
  box-shadow: 0 0 0 3px rgba(108, 211, 194, .15);
}

.ta-reg-url-prefix {
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: #f8fafc;
  border-right: 1px solid #e5e7eb;
  font-size: .82rem;
  color: #6b7280;
  white-space: nowrap;
  font-weight: 600;
}

.ta-reg-url-wrap input {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.ta-reg-url-status.is-ok   { color: #3d8b80; }
.ta-reg-url-status.is-taken { color: #ef4444; }

/* ── Vendor type cards ───────────────────────────────────────── */
.ta-reg-type-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.ta-reg-type-card {
  cursor: pointer;
}

.ta-reg-type-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ta-reg-type-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 14px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  transition: border-color .2s ease, background .2s ease, transform .15s ease;
  text-align: center;
}

.ta-reg-type-card-inner i,
.ta-reg-type-card-inner svg {
  color: #9ca3af;
  transition: color .2s ease;
}

.ta-reg-type-card-inner span {
  font-weight: 700;
  color: #27282c;
  font-size: .95rem;
}

.ta-reg-type-card input:checked + .ta-reg-type-card-inner {
  border-color: #3d8b80;
  background: #f0faf8;
  transform: translateY(-1px);
}

.ta-reg-type-card input:checked + .ta-reg-type-card-inner i,
.ta-reg-type-card input:checked + .ta-reg-type-card-inner svg {
  color: #3d8b80;
}

.ta-reg-type-card:hover .ta-reg-type-card-inner {
  border-color: #6CD3C2;
}

/* ── Conditional panels ──────────────────────────────────────── */
.ta-reg-conditional {
  margin-top: 8px;
  padding-top: 4px;
}

.ta-reg-section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #6b7280;
  margin: 16px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #f1f5f9;
}

.ta-reg-section-label i,
.ta-reg-section-label svg {
  color: #6CD3C2;
  flex-shrink: 0;
}

/* ── Radio group inline ──────────────────────────────────────── */
.ta-reg-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ta-reg-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
  font-weight: 600;
  font-size: .9rem;
  color: #27282c;
}

.ta-reg-radio:hover {
  border-color: #6CD3C2;
}

.ta-reg-radio input:checked + span {
  color: #3d8b80;
}

.ta-reg-radio input {
  margin: 0;
}

/* ── Review summary ──────────────────────────────────────────── */
.ta-reg-review {
  margin-bottom: 24px;
}

.ta-reg-review-grid {
  display: grid;
  gap: 0;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}

.ta-reg-review-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid #f1f5f9;
}

.ta-reg-review-item:last-child {
  border-bottom: none;
}

.ta-reg-review-item:nth-child(even) {
  background: #fafbfc;
}

.ta-reg-review-label {
  font-size: .85rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.ta-reg-review-value {
  font-weight: 600;
  color: #27282c;
  text-align: right;
}

/* ── Terms checkbox ──────────────────────────────────────────── */
.ta-reg-terms {
  margin-top: 8px;
}

.ta-reg-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: .92rem;
  line-height: 1.6;
  color: #52525b;
}

.ta-reg-checkbox input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: #3d8b80;
}

.ta-reg-checkbox a {
  color: #2d8c7d;
  font-weight: 600;
}

/* ── Navigation buttons ──────────────────────────────────────── */
.ta-reg-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 14px 24px 20px;
  border-top: 1px solid #f1f5f9;
}

.ta-reg-nav-spacer {
  flex: 1;
}

.ta-reg-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: background .2s ease, transform .15s ease;
}

.ta-reg-btn:active {
  transform: scale(.97);
}

.ta-reg-btn--back {
  background: #f1f5f9;
  color: #6b7280;
}

.ta-reg-btn--back:hover {
  background: #e5e7eb;
  color: #27282c;
}

.ta-reg-btn--next {
  background: #27282c;
  color: #fff;
}

.ta-reg-btn--next:hover {
  background: #3d8b80;
}

.ta-reg-btn--next.is-loading {
  pointer-events: none;
  opacity: .65;
}

.ta-reg-btn--next.is-loading svg.ta-spin {
  animation: ta-spin .8s linear infinite;
}

@keyframes ta-spin {
  to { transform: rotate(360deg); }
}

.ta-reg-btn--submit {
  background: linear-gradient(135deg, #3d8b80, #6CD3C2);
  color: #fff;
}

.ta-reg-btn--submit:hover {
  background: linear-gradient(135deg, #2d5f57, #3d8b80);
}

/* ── WooCommerce notices override ────────────────────────────── */
.ta-reg-wizard-wrap .woocommerce-error,
.ta-reg-wizard-wrap .woocommerce-message {
  margin: 0 0 24px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: .92rem;
  list-style: none;
}

.ta-reg-wizard-wrap .woocommerce-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.ta-reg-wizard-wrap .woocommerce-message {
  background: #f0faf8;
  border: 1px solid #cfeee7;
  color: #2d5f57;
}

/* ── Status icons ────────────────────────────────────────────── */
.ta-reg-url-status svg,
.ta-reg-hint svg {
  vertical-align: -2px;
  margin-right: 2px;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 767.98px) {
  .ta-reg-wizard-wrap {
    border-radius: 14px;
    border: none;
  }

  .ta-reg-progress {
    padding: 20px 16px 0;
  }

  .ta-reg-step {
    padding: 0 16px;
  }

  .ta-reg-nav {
    padding: 16px 16px 20px;
  }

  .ta-reg-row,
  .ta-reg-row--3 {
    grid-template-columns: 1fr;
  }

  .ta-reg-type-cards {
    grid-template-columns: 1fr;
  }

  .ta-reg-step-header {
    flex-direction: column;
    text-align: center;
  }

  .ta-reg-step-label {
    display: none;
  }

  .ta-reg-url-prefix {
    font-size: .72rem;
    padding: 0 8px;
  }

  .ta-reg-review-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 14px;
  }

  .ta-reg-review-value {
    text-align: left;
  }
}
