/* Register wizard – same base as login + timeline + steps */

.register-wrap {
  width: min(520px, 92vw);
  flex-shrink: 0;
}

.register-wrap .form {
  width: 100%;
}

/* Timeline */
.wizard-timeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 0 8px;
}

.wizard-timeline .step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}

.wizard-timeline .step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 14px;
  left: calc(50% + 20px);
  width: calc(100% - 40px);
  height: 2px;
  background: #ecedec;
  z-index: 0;
}

.wizard-timeline .step.done:not(:last-child)::after,
.wizard-timeline .step.active:not(:last-child)::after {
  background: var(--brand-primary);
}

.wizard-timeline .step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ecedec;
  color: #6b7280;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transition: 0.2s;
}

.wizard-timeline .step.active .step-num {
  background: var(--brand-primary);
  color: #fff;
}

.wizard-timeline .step.done .step-num {
  background: var(--brand-primary);
  color: #fff;
}

.wizard-timeline .step-title {
  font-size: 11px;
  color: #6b7280;
  margin-top: 6px;
  text-align: center;
  max-width: 80px;
}

.wizard-timeline .step.active .step-title {
  color: var(--brand-primary);
  font-weight: 600;
}

/* Step panels */
.wizard-panels {
  position: relative;
  min-height: 320px;
}

.wizard-panel {
  display: none;
  animation: wizardFade 0.25s ease;
}

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

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

.wizard-panel .panel-head {
  margin-bottom: 16px;
}

.wizard-panel .panel-head h3 {
  margin: 0;
  font-size: 18px;
  color: #151717;
}

.wizard-panel .panel-head p {
  margin: 6px 0 0 0;
  font-size: 14px;
  color: #6b7280;
}

/* مسافة أوضح بين الحقول */
.wizard-panel .flex-column {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 2px;
}

.wizard-panel .inputForm {
  margin-bottom: 18px;
}

.wizard-panel .geo-row {
  margin-bottom: 18px;
}

.wizard-panel .geo-row .inputForm {
  margin-bottom: 0;
}

.wizard-panel .inputForm + .flex-column {
  margin-top: 2px;
}

/* Wizard form groups – match login */

.wizard-panel .flex-column > label {
  color: #151717;
  font-weight: 600;
  font-size: 14px;
}

.wizard-panel .inputForm {
  border: 1.5px solid #ecedec;
  border-radius: 10px;
  height: 50px;
  display: flex;
  align-items: center;
  padding-left: 10px;
  transition: 0.2s ease-in-out;
  background: #fff;
}

.wizard-panel .inputForm i {
  color: #151717;
  opacity: 0.65;
  font-size: 18px;
}

.wizard-panel .inputForm .input,
.wizard-panel .inputForm select.input {
  margin-left: 10px;
  border: none;
  border-radius: 10px;
  flex: 1;
  min-width: 0;
  height: 100%;
  font-size: 14px;
  background: transparent;
}

.wizard-panel .inputForm select.input {
  cursor: pointer;
  padding-right: 32px;
  appearance: auto;
}

.wizard-panel .inputForm:focus-within {
  border-color: var(--brand-primary);
}

.wizard-panel .inputForm.invalid {
  border-color: #ef4444;
}

.wizard-panel .inputForm-password {
  padding-right: 10px;
}

.wizard-panel .inputForm-password .input {
  width: 1px;
}

.wizard-panel .password-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  border-radius: 8px;
}

.wizard-panel .password-toggle:hover {
  color: var(--brand-primary);
}

.wizard-panel .password-toggle i {
  font-size: 20px;
}

/* Geo row: country, state, city in one row on desktop */
.wizard-panel .geo-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

@media (max-width: 600px) {
  .wizard-panel .geo-row {
    grid-template-columns: 1fr;
  }
}

/* Wizard buttons */
.wizard-actions {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 24px;
  flex-wrap: wrap;
}

.wizard-actions .button-submit {
  margin: 0;
  flex: 1;
  min-width: 120px;
}

.wizard-actions .btn-outline {
  padding: 0 20px;
  height: 50px;
  border-radius: 10px;
  border: 1.5px solid #ecedec;
  background: #fff;
  color: #151717;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wizard-actions .btn-outline:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

/* Register footer link */
.register-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: #6b7280;
}

.register-footer a {
  color: var(--brand-primary);
  font-weight: 500;
  text-decoration: none;
}

.register-footer a:hover {
  text-decoration: underline;
}

/* Select styling inside .inputForm */
.wizard-panel .inputForm select.input option {
  padding: 8px;
}
