:root {
  --primary-color: #196480;
  --muted-color: #333333;
  --text-muted: #8b8f97;
  --primary: #196480;
  --muted: #cfd3da;

  --ibm-plex-sans-arabic: "IBM Plex Sans Arabic", -apple-system,
    BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --poppins: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui,
    sans-serif;
}
.register-container {
  padding: 2.75rem 3.75rem;
  min-height: 100vh;
}

.logo-container {
}

/* Center card */
.form-wrapper {
  margin: 0px auto;
  text-align: center;
}
.form-wrapper .header {
  margin-bottom: 5rem;
}
.form-wrapper h1 {
  font-size: 32px;
  font-weight: 500;
  margin-bottom: 2px;
  font-family: var(--ibm-plex-sans-arabic);
}

.form-wrapper .subtitle {
  font-size: 16px;
  font-weight: 400;
  font-family: var(--ibm-plex-sans-arabic);
  color: var(--muted-color);
}

.form-wrapper .subtitle a {
  color: #111;

  font-weight: 400;
}

.form-wrapper .subtitle a:hover {
  text-decoration: underline;
}

/* ---------- Stepper ---------- */
.bs-stepper {
  border: 0;
  box-shadow: none;
  margin-bottom: 30px;
}

.bs-stepper-header {
  border: 0;
  justify-content: center;
  gap: 24px;
  padding: 0 10px;
  margin-bottom: 2rem;
}

.bs-stepper .step {
  flex: none;
  text-align: center;
}

.bs-stepper .step .step-trigger {
  padding: 0;
  background: transparent;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.bs-stepper-circle {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 400;
  background: #fff;
  border: 2px solid var(--muted);
  color: var(--muted);
  box-sizing: border-box;
}

.bs-stepper-label {
  font-size: 16px;
  color: #999999;
  font-family: var(--poppins);
  font-weight: 400;
  white-space: nowrap;
}

.bs-stepper .line {
  margin: 0 0.5rem;
  height: 2px;
  background: #e5e7eb;
  flex: 0 0 240px;
  width: 240px;
}

.bs-stepper .active .bs-stepper-circle {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.bs-stepper .active .bs-stepper-label {
  color: var(--primary);
  font-weight: 500;
  font-size: 16px;
}

.bs-stepper .crossed .bs-stepper-circle {
  background: #fff;
  border-color: var(--primary);
  color: var(--primary);
}

.bs-stepper .crossed + .line {
  background: var(--primary);
}

/* ---------- Form controls ---------- */
.step-content-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}

.form-label {
  font-size: 14px;
  margin-bottom: 6px;
  font-weight: 500;
  font-family: var(--poppins);
  color: #475467;
}

.form-control,
.form-select {
  border-radius: 12px;
  padding: 16px 12px;
  border: 1px solid #f0eff9;
  font-size: 14px;
  outline: none;
  box-shadow: none;
}
.form-control:focus {
  border: 1px solid #196480;
  box-shadow: none;
}

.form-control::placeholder {
  color: #98a2b3;
}

.btn-main {
  border-radius: 16px;
  height: 52px;
  box-shadow: 0px 1px 2px 0px #38acb10d;
  background: var(--primary);
  margin-top: 1rem;
  font-family: var(--poppins);
  color: #fff;
  border: none;
  font-size: 16px;
  font-weight: 500;
  width: 100%;
}

.btn-main:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.actions-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

/* password eye */
.password-wrapper {
  position: relative;
}
.password-wrapper .toggle-eye {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #9ca3af;
  cursor: pointer;
}

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

@media (max-width: 768px) {
  .page-container {
    padding: 20px 16px;
  }
  .bs-stepper-label {
    font-size: 11px;
    white-space: normal;
  }
}

.select2-selection--single {
  height: 50px !important;
  border-radius: 12px !important;
  border: 1px solid #e5e7eb !important;
  display: flex !important;
  align-items: center !important;
  padding-left: 14px !important;
  font-size: 14px;
}

.select2-selection__rendered {
  line-height: 50px !important;
}

.select2-selection__arrow {
  height: 100% !important;
  right: 16px !important;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__arrow
  b {
  border-color: #196480 transparent transparent transparent !important;
}

.select2-container--open .select2-dropdown--below {
  border: 1px solid #e5e7eb !important;
  border-radius: 15px;
}

/* Hide arrow ONLY for .select-location */
.location-select
  + .select2-container
  .select2-selection--single
  .select2-selection__arrow {
  display: none;
}

/* Add icon ONLY for .select-location */
.location-select + .select2-container .select2-selection--single {
  position: relative;
  padding-left: 35px;
}

.location-select + .select2-container .select2-selection--single::before {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background-image: url("../images/icons/location.svg");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}

.country-key-select {
  padding-left: 8px;
  font-weight: 500;
}

.country-key-select option {
  font-size: 14px;
}

/* Wrapper */
.phone-wrapper {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding-left: 8px;
  height: 48px;
}

/* Select2 container inside the wrapper */
.phone-wrapper .select2-container--default .select2-selection--single {
  border: none !important;
  height: 46px !important;
  padding-left: 5px;
  display: flex;
  align-items: center;
  background: transparent;
}
.phone-wrapper .phone-select {
  border: none !important;
  outline: none !important;
  color: #101828 !important;
  font-size: 16px;
}

/* Remove Select2 arrow and add minimal ▼ */
.phone-wrapper .select2-selection__arrow {
  display: none !important;
}

.phone-wrapper .select2-selection--single::after {
  content: "▼";
  font-size: 10px;
  margin-left: 6px;
  color: #6b7280;
}

/* Selected text = abbreviation only */
.phone-wrapper .select2-selection__rendered {
  padding-right: 4px !important;
  font-weight: 500;
  color: #111827;
}

/* Input next to select */
.phone-input {
  border: none;
  flex: 1;
  height: 100%;
  padding: 10px 14px;
  font-size: 15px;
  color: #4b5563;
  border-radius:14px ;
}

.phone-input:focus {
  outline: none;
}

/* back button hidden by default */
.btn-back-mobile {
  display: none;
  border-radius: 16px;
  height: 52px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #111827;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--poppins);
  width: 100%;
}

/* show only on mobile */
@media (max-width: 576px) {
  .btn-back-mobile {
    display: block;
  }

  /* ترتيب الأزرار في الموبايل: Next فوق / Back تحت */
  .actions-row {
    flex-direction: column-reverse;
    gap: 12px;
  }
}


/* Hide stepper header in mobile */
@media (max-width: 576px) {
  .bs-stepper-header {
    display: none !important;
  }

  /* علشان الفورم ما يبقاش لازق لفوق */
  .bs-stepper-content {
    margin-top: 1rem;
  }
}
