/* ---------- REGISTER FORM (Multi-Step) ---------- */
.register-container {
  background: rgba(255, 255, 255, 0.95);
  padding: 40px 50px;
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
  width: 100%;
  max-width: 600px; /* Thoda chauda */
  margin: 40px auto 60px;
  position: relative;
  z-index: 1;
}

.register-container h2 {
  text-align: center;
  margin-bottom: 25px;
  color: #0f3d91;
  font-size: 28px;
  font-weight: bold;
}

/* --- NEW: Stepper --- */
.stepper-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #aaa;
}
.step span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #eee;
  border: 2px solid #aaa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  transition: 0.3s;
}
.step p {
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 5px;
}
.step-divider {
  flex-grow: 1;
  height: 2px;
  background: #eee;
  margin: 15px 10px 0 10px;
}
.step.active span {
  background: #0f3d91;
  border-color: #0f3d91;
  color: white;
}
.step.active p {
  color: #0f3d91;
}
/* End Stepper */


/* --- Form Steps --- */
.form-step {
  display: none; /* Default hidden */
}
.form-step.active {
  display: block; /* Show active step */
}


.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #aaa;
  border-radius: 8px;
  outline: none;
  font-size: 15px;
  transition: 0.3s;
}
.form-group.field input {
   padding: 12px 40px 12px 15px;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #0f3d91;
  box-shadow: 0 0 8px rgba(15,61,145,0.4);
}
textarea {
  resize: none;
  min-height: 80px;
}

/* --- Validation Icons --- */
.form-group.field {
  position: relative;
}
.validation-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(50%); /* Adjust for label */
  display: none;
}
.validation-icon.valid {
  display: block;
  color: green;
}
.validation-icon.invalid {
  display: block;
  color: red;
}

/* Password toggles */
.password-field {
  position: relative;
}
.password-field .validation-icon {
  right: 40px; 
}
.password-field i {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(50%);
  cursor: pointer;
  color: #0f3d91;
  font-size: 0.9rem;
}

/* --- CAPTCHA --- */
.captcha-label {
  display: block;
  font-size: 1rem;
  color: #333;
  margin: 25px 0 10px 0;
  text-align: left;
}
.text-captcha-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  position: relative;
}
#captcha-text {
  background: #eee;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 8px 10px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: 2px;
  text-decoration: line-through wavy red 1px;
  user-select: none;
  color: #333;
}
#captcha-refresh-btn {
  padding: 8px 10px;
  background: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  color: #0f3d91;
}
#captcha-input {
  flex-grow: 1;
  padding: 10px 40px 10px 12px !important;
  font-size: 1rem;
  border: 1px solid #aaa;
  border-radius: 6px;
}
#captcha-validation-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

/* --- Button Container --- */
.button-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
}

/* All buttons inside */
.button-container button {
  padding: 12px 25px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
button.btn-prev {
  background: #f0f0f0;
  color: #333;
  border: 1px solid #ccc;
}
button.btn-prev:hover {
  background: #e0e0e0;
}
button.btn-next,
#register-btn {
  background: #0f3d91;
  color: white;
  position: relative; /* For spinner */
}
button.btn-next:hover,
#register-btn:hover {
  background: #0b2b6f;
}

/* Spinner & Disabled */
.spinner-icon {
  font-size: 1.2rem;
}
#register-btn:disabled {
  background: #aaa;
  cursor: not-allowed;
}

/* Login link */
.login-link {
  text-align: center;
  margin-top: 25px;
  font-size: 14px;
  color: #333;
}
.login-link a {
  color: #0f3d91;
  text-decoration: none;
}
.login-link a:hover {
  text-decoration: underline;
}

/* Message Box */
.msg {
  margin-bottom: 15px;
  text-align: center;
  font-weight: bold;
}
.msg i {
  margin-right: 6px;
}

/* Responsive */
@media (max-width: 600px) {
  .register-container {
    margin: 40px 20px;
    padding: 30px 25px;
  }
}