.register-wizard-card {
  width: 100%;
  max-width: 620px;
  min-width: 0;
}

.register-wizard-card *,
.register-wizard-card *::before,
.register-wizard-card *::after {
  box-sizing: border-box;
}

.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.alert {
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 18px;
  line-height: 1.45;
}

.alert-error {
  background: rgba(239, 68, 68, .08);
  border: 1px solid rgba(239, 68, 68, .25);
  color: #991b1b;
}

.alert-success {
  background: rgba(16, 185, 129, .08);
  border: 1px solid rgba(16, 185, 129, .25);
  color: #065f46;
}

.alert-info {
  background: rgba(37, 99, 235, .08);
  border: 1px solid rgba(37, 99, 235, .20);
  color: #1e3a8a;
}

.inline {
  font-size: 12px;
  background: rgba(15, 23, 42, .06);
  border-radius: 6px;
  padding: 2px 6px;
}

.wizard-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 22px 0 24px;
}

.wizard-step {
  position: relative;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  padding-top: 32px;
}

.wizard-step::before {
  content: attr(data-step-dot);
  position: absolute;
  top: 0;
  left: 50%;
  width: 26px;
  height: 26px;
  transform: translateX(-50%);
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #e5e7eb;
  color: #64748b;
  font-size: 12px;
}

.wizard-step.is-active {
  color: #0f172a;
}

.wizard-step.is-active::before {
  background: #0f172a;
  color: #fff;
}

.wizard-step.is-done::before {
  content: "✓";
  background: #10b981;
  color: #fff;
}

.wizard-panel {
  display: none;
}

.wizard-panel.is-active {
  display: block;
}

.wizard-panel:not(.is-active) {
  display: none !important;
}

.cycle-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.cycle-toggle label {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(148, 163, 184, .35);
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
}

.plans-grid {
  display: grid;
  gap: 12px;
}

.plan-card {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(148, 163, 184, .35);
  border-radius: 16px;
  padding: 14px;
  cursor: pointer;
  background: #fff;
  transition: .16s ease;
}

.plan-card:hover {
  border-color: rgba(15, 23, 42, .45);
  transform: translateY(-1px);
}

.plan-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.plan-card:has(input:checked) {
  border-color: #0f172a;
  box-shadow: 0 0 0 4px rgba(15, 23, 42, .08);
}

.plan-name {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

.plan-price {
  font-size: 14px;
  color: #334155;
}

.plan-meta {
  font-size: 12px;
  color: #64748b;
}

.plan-badge {
  justify-self: start;
  font-size: 11px;
  font-weight: 800;
  color: #065f46;
  background: rgba(16, 185, 129, .10);
  border: 1px solid rgba(16, 185, 129, .18);
  border-radius: 999px;
  padding: 4px 8px;
}

.billing-grid {
  display: grid;
  grid-template-columns: minmax(90px, 120px) minmax(0, 1fr);
  gap: 12px;
  align-items: end;
}

.billing-grid .field-row {
  min-width: 0;
}

.billing-grid .field-input {
  width: 100%;
  min-width: 0;
}

.company-billing-fields {
  margin-bottom: 18px;
}

.company-lookup-info {
  margin-top: -4px;
}

.company-result-box .summary-box {
  margin-top: 12px;
}

.private-billing-fields[hidden],
.company-billing-fields[hidden],
.company-result-box[hidden],
button[hidden],
[hidden] {
  display: none !important;
}

.summary-box {
  border: 1px solid rgba(148, 163, 184, .35);
  border-radius: 18px;
  background: #fff;
  padding: 16px;
  margin-bottom: 18px;
}

.summary-title {
  font-size: 15px;
  font-weight: 850;
  color: #0f172a;
  margin-bottom: 12px;
}

.summary-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-top: 1px solid rgba(226, 232, 240, .9);
  font-size: 14px;
}

.summary-row span {
  color: #64748b;
}

.summary-row strong {
  color: #0f172a;
  text-align: right;
  overflow-wrap: anywhere;
}

.accept-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: #334155;
  margin: 14px 0;
}

.wizard-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  width: 100%;
}

.wizard-actions .btn-primary,
.wizard-actions .btn-outline {
  flex: 1;
  min-width: 0;
}

.btn-full {
  display: flex;
  width: 100%;
  justify-content: center;
  margin-top: 10px;
}

.done-icon {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #10b981;
  color: #fff;
  font-weight: 900;
  font-size: 26px;
  margin-bottom: 16px;
}

.field-input.is-loading {
  background-image: linear-gradient(90deg, transparent, rgba(15, 23, 42, .06), transparent);
  background-size: 200% 100%;
  animation: regwLoading 1s linear infinite;
}

@keyframes regwLoading {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

@media (max-width: 640px) {
  .login-main {
    padding: 16px 12px;
  }

  .login-card {
    max-width: 100%;
    min-width: 0;
  }

  .register-wizard-card {
    padding: 24px 16px;
    overflow: hidden;
  }

  .wizard-progress {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 14px;
  }

  .cycle-toggle {
    grid-template-columns: 1fr;
  }

  .billing-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .wizard-actions {
    flex-direction: column;
  }
}
