/* Agent registration — form panel UI */

.agent_regpage .agent_regtr {
  padding: 32px 40px 48px;
}

/* Page header */
.agent_regpage .agentreg_heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 28px;
  padding: 0;
  overflow: visible;
}

.agent_regpage .agentreg_heading__text h1 {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.agent_regpage .agentreg_heading__text p {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
  font-weight: 400;
}

.agent_regpage .gobacklink {
  position: static;
  flex-shrink: 0;
  margin-top: 4px;
}

/* Stepper */
.agent_regpage .step-progress-container {
  margin: 0 0 28px;
  padding: 24px 28px 20px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: none;
}

.agent_regpage .step-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  position: relative;
  max-width: 100%;
  margin: 0;
}

.agent_regpage .step-progress__track {
  position: absolute;
  top: 22px;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 3px;
  background: #e5e7eb;
  border-radius: 999px;
  z-index: 0;
  overflow: hidden;
}

.agent_regpage .step-progress__track-fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #0393f2 0%, #0164dd 100%);
  border-radius: 999px;
  transition: width 0.35s ease;
}

.agent_regpage .step-progress[data-current="2"] .step-progress__track-fill {
  width: 50%;
}

.agent_regpage .step-progress[data-current="3"] .step-progress__track-fill {
  width: 100%;
}

.agent_regpage .step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 0 8px;
  flex: none;
}

.agent_regpage .step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #e5e7eb;
  font-size: 16px;
  font-weight: 700;
  color: #9ca3af;
  box-shadow: none;
  transform: none;
}

.agent_regpage .step-item.active .step-number {
  background: linear-gradient(135deg, #0393f2 0%, #0164dd 100%);
  border-color: #0393f2;
  color: #fff;
  box-shadow: 0 4px 14px rgba(3, 147, 242, 0.35);
  transform: none;
}

.agent_regpage .step-item.completed .step-number {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: #10b981;
  color: transparent;
  font-size: 0;
  line-height: 0;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.agent_regpage .step-item.completed .step-number::after {
  content: 'check';
  font-family: 'Material Icons';
  font-size: 20px;
  color: #fff;
  font-weight: normal;
}

.agent_regpage .step-label {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: #9ca3af;
  max-width: 110px;
  line-height: 1.35;
}

.agent_regpage .step-item.active .step-label {
  color: #0393f2;
  font-weight: 700;
  font-size: 13px;
}

.agent_regpage .step-item.completed .step-label {
  color: #059669;
  font-weight: 600;
}

.agent_regpage .step-connector {
  display: none;
}

/* Step card */
.agent_regpage .each_sections {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  margin-bottom: 0;
}

.agent_regpage .step-header {
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(3, 147, 242, 0.07) 0%, rgba(3, 147, 242, 0.02) 100%);
  border-bottom: 1px solid rgba(3, 147, 242, 0.1);
}

.agent_regpage .step-header-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
}

.agent_regpage .step-header-icon i {
  font-size: 26px;
}

.agent_regpage .step-title {
  font-size: 20px;
}

.agent_regpage .step-subtitle {
  font-size: 14px;
}

/* Form grid — step 1 */
.agent_regpage .inside_regwrp.agent-reg-form {
  padding: 24px;
}

.agent_regpage .agent-reg-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.agent_regpage .agent-reg-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.agent_regpage .agent-reg-field--full {
  grid-column: 1 / -1;
}

.agent_regpage .agent-reg-field__label {
  display: block;
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  line-height: 1.3;
}

.agent_regpage .agent-reg-field__label .text-danger {
  color: #ef4444;
}

/* Unified split fields (title + name, country + phone) */
.agent_regpage .agent-reg-split {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 48px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.agent_regpage .agent-reg-split__prefix {
  flex: 0 0 88px;
  border-right: 1px solid #e5e7eb;
  background: #f9fafb;
}

.agent_regpage .agent-reg-split--phone .agent-reg-split__prefix {
  flex: 0 0 38%;
  min-width: 140px;
  max-width: 220px;
}

.agent_regpage .agent-reg-split__input {
  flex: 1 1 auto;
  min-width: 0;
}

.agent_regpage .agent-reg-split:focus-within {
  border-color: #0393f2;
  box-shadow: 0 0 0 4px rgba(3, 147, 242, 0.1);
}

.agent_regpage .agent-reg-split .select_wrap,
.agent_regpage .agent-reg-split .div_wrap {
  display: flex !important;
  align-items: center;
  width: 100% !important;
  min-height: 48px;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  clear: none !important;
}

.agent_regpage .agent-reg-split .select_wrap::after {
  right: 8px;
  line-height: 48px;
  color: #6b7280;
}

.agent_regpage .agent-reg-split .select_form,
.agent_regpage .agent-reg-split .input_form {
  width: 100% !important;
  height: 48px !important;
  min-height: 48px;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  margin: 0 !important;
  padding: 0 32px 0 14px !important;
  font-size: 14px;
  line-height: 1.25 !important;
}

.agent_regpage .agent-reg-split .input_form {
  padding: 13px 14px !important;
}

.agent_regpage .agent-reg-split .select_form {
  background: transparent !important;
}

.agent_regpage .agent-reg-split .input_form.invalid-ip,
.agent_regpage .agent-reg-split .select_form.invalid-ip,
.agent_regpage .agent-reg-field > .div_wrap .input_form.invalid-ip,
.agent_regpage .agent-reg-field > .select_wrap .select_form.invalid-ip {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* Standalone inputs in grid */
.agent_regpage .agent-reg-field > .div_wrap,
.agent_regpage .agent-reg-field > .select_wrap {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.agent_regpage .agent-reg-field > .div_wrap:focus-within,
.agent_regpage .agent-reg-field > .select_wrap:focus-within {
  border-color: #0393f2;
  box-shadow: 0 0 0 4px rgba(3, 147, 242, 0.1);
}

.agent_regpage .agent-reg-field > .div_wrap .input_form,
.agent_regpage .agent-reg-field > .select_wrap .select_form {
  width: 100%;
  height: 48px;
  min-height: 48px;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 13px 16px !important;
  font-size: 14px;
}

.agent_regpage .wrap_space .div_wrap .input_form.invalid-ip,
.agent_regpage .wrap_space .select_wrap .select_form.invalid-ip,
.agent_regpage .wrap_space .input_textarea.invalid-ip {
  box-shadow: none !important;
}

.agent_regpage .agent-reg-split:has(.invalid-ip),
.agent_regpage .agent-reg-field > .div_wrap:has(.invalid-ip),
.agent_regpage .agent-reg-field > .select_wrap:has(.invalid-ip),
.agent_regpage .wrap_space .div_wrap:has(.invalid-ip),
.agent_regpage .wrap_space .select_wrap:has(.invalid-ip),
.agent_regpage .file-upload-wrapper:has(.invalid-ip) .file-upload-label {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.08);
}

.agent_regpage .agent-reg-field-error,
.agent_regpage .wrap_space .agent-reg-field-error,
.agent_regpage .file-upload-wrapper .agent-reg-field-error {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.4;
  color: #ef4444;
}

.agent_regpage .agent-reg-field-error[hidden],
.agent_regpage .agent-reg-terms-error[hidden] {
  display: none !important;
}

.agent_regpage .agent-reg-validation-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 24px 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 13px;
  line-height: 1.45;
}

.agent_regpage .agent-reg-validation-banner[hidden] {
  display: none !important;
}

.agent_regpage .agent-reg-validation-banner .material-icons {
  font-size: 18px;
  margin-top: 1px;
  flex-shrink: 0;
}

.agent_regpage .agent-reg-terms-error {
  margin: 8px 0 0;
  font-size: 12px;
  color: #ef4444;
}

.agent_regpage .agent-reg-field .agent_error {
  margin-top: 6px;
  font-size: 12px;
  color: #ef4444;
}

/* Step navigation */
.agent_regpage .step-navigation {
  padding: 16px 24px;
  border-top: 1px solid #f3f4f6;
  background: #fafbfc;
}

.agent_regpage .btn-step-next,
.agent_regpage .btn-step-prev {
  min-width: 120px;
  height: 44px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 767px) {
  .agent_regpage .agent_regtr {
    padding: 24px 20px 36px;
  }

  .agent_regpage .agentreg_heading {
    flex-direction: column;
    align-items: stretch;
  }

  .agent_regpage .gobacklink {
    align-self: flex-start;
  }

  .agent_regpage .step-progress-container {
    padding: 18px 16px 14px;
  }

  .agent_regpage .agent-reg-form__grid {
    grid-template-columns: 1fr;
  }

  .agent_regpage .agent-reg-split--phone .agent-reg-split__prefix {
    flex: 0 0 42%;
    min-width: 120px;
  }
}
