/* ============== SIGNUP PAGE ============== */
.signup-page { background: var(--bg-soft); min-height: 100vh; }

.signup-main {
  padding: 40px 20px 80px;
}

.signup-container {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: 48px 56px;
}

.signup-header { text-align: center; margin-bottom: 36px; }
.signup-header h1 {
  font-size: 1.9rem;
  margin-bottom: 10px;
}
.signup-header p {
  color: var(--text-soft);
  font-size: 1.02rem;
}

/* ============== STEPPER ============== */
.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  gap: 0;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 2px solid var(--border);
  color: var(--text-mute);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.step.active .step-circle {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(37,99,235,0.15);
}
.step.done .step-circle {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.step.done .step-circle::after { content: '✓'; }
.step.done .step-circle:not(.no-mask) { font-size: 0; }
.step.done .step-circle::after { font-size: 1rem; }
.step-label {
  font-size: 0.85rem;
  color: var(--text-mute);
  font-weight: 500;
}
.step.active .step-label { color: var(--primary); font-weight: 600; }
.step.done .step-label { color: var(--text); }
.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 16px;
  margin-bottom: 24px;
  max-width: 80px;
}

/* ============== FORM STEPS ============== */
.form-step { display: none; animation: fadeIn 0.3s ease; }
.form-step.active { display: block; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-step h2 { font-size: 1.4rem; margin-bottom: 6px; }
.step-sub { color: var(--text-soft); margin-bottom: 28px; }

/* ============== FIELDS ============== */
.field { margin-bottom: 22px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 8px;
  color: var(--text);
}
.field .req { color: #ef4444; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="password"],
.field select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s;
  background: #fff;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.field input.error,
.field select.error {
  border-color: #ef4444;
  background: #fef2f2;
}

.field-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--text-mute);
}

/* ============== RADIO CARDS (סוג מוסד) ============== */
.radio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}
.radio-card { cursor: pointer; }
.radio-card input { display: none; }
.radio-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 8px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: #fff;
  transition: all 0.2s;
  text-align: center;
}
.radio-card:hover .radio-card-inner { border-color: var(--primary-light); background: var(--bg-soft); }
.radio-card input:checked + .radio-card-inner {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.radio-emoji { font-size: 1.6rem; }
.radio-title { font-weight: 600; font-size: 0.92rem; }

/* ============== SUBDOMAIN ============== */
.subdomain-input {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: all 0.2s;
  direction: ltr;
}
.subdomain-input:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.subdomain-prefix,
.subdomain-suffix {
  background: var(--bg-soft);
  padding: 12px 14px;
  color: var(--text-soft);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  font-family: 'Courier New', monospace;
}
.subdomain-input input {
  flex: 1;
  border: none !important;
  border-radius: 0 !important;
  text-align: center;
  font-family: 'Courier New', monospace;
  box-shadow: none !important;
  padding: 12px 8px !important;
}

/* ============== PLAN CARDS ============== */
.plan-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.plan-card { cursor: pointer; }
.plan-card input { display: none; }
.plan-card-inner {
  position: relative;
  padding: 20px 18px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: #fff;
  transition: all 0.2s;
  height: 100%;
}
.plan-card:hover .plan-card-inner { border-color: var(--primary-light); }
.plan-card input:checked + .plan-card-inner {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.plan-popular-tag {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
}
.plan-card-name {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.plan-card-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 12px;
}
.plan-card-price b { font-size: 1.5rem; color: var(--primary); }
.plan-card-price small { color: var(--text-mute); font-size: 0.82rem; }
.plan-card-inner ul { list-style: none; padding: 0; }
.plan-card-inner ul li {
  font-size: 0.85rem;
  color: var(--text-soft);
  padding: 4px 0;
}
.plan-card-inner ul li::before { content: '✓ '; color: var(--primary); }

/* ============== CHECKBOX ============== */
.checkbox-field { margin: 24px 0; }
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text-soft);
  font-weight: 400;
}
.checkbox input { margin-top: 4px; cursor: pointer; }
.checkbox a { color: var(--primary); text-decoration: underline; }

/* ============== FORM NAVIGATION ============== */
.form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ============== SUCCESS STEP ============== */
.success-step { text-align: center; padding: 20px 0; }
.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 8px 30px rgba(34,197,94,0.35);
  animation: pop 0.5s ease;
}
@keyframes pop {
  0% { transform: scale(0); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.success-card {
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 24px;
  margin: 24px 0 32px;
  text-align: right;
}
.success-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.success-row:last-child { border: none; }
.success-row span { color: var(--text-soft); }
.success-row b { color: var(--text); }

/* ============== ERROR MESSAGE ============== */
.form-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 0.92rem;
  display: none;
}
.form-error.show { display: block; }

/* ============== RESPONSIVE ============== */
@media (max-width: 720px) {
  .signup-container { padding: 32px 24px; }
  .field-row { grid-template-columns: 1fr; }
  .step-label { display: none; }
  .step-line { max-width: 40px; margin: 0 8px; }
}
