.page-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f5f7fa;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.12);
  padding: 30px 11px;
  overflow: hidden;
  box-sizing: border-box;
}
.bottom-text-font{
  font-size: 16px !important;
  font-weight: 400 !important;
}
.signup-modal {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 700px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 50px 60px;
}

.modal-body p {
  font-size: 17px;
  margin-bottom: 30px;
  font-weight: 600;
}

.modal-body .signup-top-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.modal-body .signup-top-subtitle {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 24px;
}

.form-control,
.form-select {
  border-radius: 10px;
  padding: 12px 15px;
  font-size: 1rem;
  border: 1.8px solid #ddd;
  transition: border-color 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: #dc3545;
  box-shadow: none;
}

.signup-btn {
  background-color: #1f5fb8;
  color: #fff;
  border: none;
  width: 100%;
  padding: 14px;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50px;
  transition: background-color 0.3s ease;
  margin-top: 10px;
}

.signup-btn:hover {
  background-color: #006bb3;
}

.text-link {
  color: #1f5fb8;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.footer-text {
  color: #0d0e11;
  margin-top: 25px;
  line-height: 1.4;
  text-align: center;
}

.footer-text a {
  color: #1f5fb8;
  text-decoration: none;
}

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

input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0px 1000px white inset !important;
  -webkit-text-fill-color: #212529 !important;
}

.invalid-feedback {
  display: block;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.phone-validation-message {
  display: block;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  transition: all 0.3s ease;
}

.phone-validation-message.valid-feedback {
  color: #198754;
}

.phone-validation-message.invalid-feedback {
  color: #dc3545;
}

.input-group .form-control.is-valid {
  border-color: #198754;
  box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

.input-group .form-control.is-invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Keep validation messages hidden until submit/explicit invalid state. */
#registerForm .invalid-feedback {
  display: none !important;
  color: #dc3545;
  font-size: 0.9rem;
}

#registerForm.was-validated .form-control:invalid + .invalid-feedback,
#registerForm .form-control.is-invalid + .invalid-feedback {
  display: block !important;
}

#registerForm.was-validated
  .form-row:has(.form-control:invalid)
  > .invalid-feedback,
#registerForm .form-row:has(.form-control.is-invalid) > .invalid-feedback {
  display: block !important;
}

/* Remove Bootstrap validation status icons (tick/info) from text inputs. */
#registerForm input.form-control.is-valid,
#registerForm.was-validated input.form-control:valid,
#registerForm input.form-control.is-invalid,
#registerForm.was-validated input.form-control:invalid {
  background-image: none !important;
  padding-right: 15px;
}

input.is-invalid,
select.is-invalid {
  border-color: #dc3545;
}

input.is-invalid + .invalid-feedback,
select.is-invalid + .invalid-feedback {
  display: block;
}

.phone-row {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.phone-row select {
  flex: 0 0 calc(30% - 5px);
  text-align: center;
}

.phone-row input {
  flex: 0 0 calc(70% - 5px);
}

.phone-row .invalid-feedback {
  flex-basis: 100%;
  order: 2;
}

.password-strength,
.password-match {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.password-strength {
  display: none;
}

.password-strength.weak,
.password-strength.medium,
.password-strength.strong {
  display: block;
}

.password-strength.weak {
  background-color: #ffe6e6;
  color: #d32f2f;
  border: 1px solid #ffcdd2;
}

.password-strength.medium {
  background-color: #fff3e0;
  color: #f57c00;
  border: 1px solid #ffcc02;
}

.password-strength.strong {
  background-color: #e8f5e8;
  color: #388e3c;
  border: 1px solid #c8e6c9;
}

.password-match.match {
  background-color: #e8f5e8;
  color: #388e3c;
  border: 1px solid #c8e6c9;
}

.password-match.no-match {
  background-color: #ffe6e6;
  color: #d32f2f;
  border: 1px solid #ffcdd2;
}

.password-match.empty {
  background-color: #f5f5f5;
  color: #757575;
  border: 1px solid #e0e0e0;
}

/* Show/hide password toggle */
.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  font-size: 14px;
}

.password-toggle:hover {
  color: #333;
}

.password-field {
  position: relative;
}

.iti {
  width: 100% !important;
  position: relative !important;
  display: block !important;
  height: 48px !important;
  overflow: visible !important;
}

.iti input {
  width: 100% !important;
  padding-left: 70px !important;
  border-radius: 10px !important;
  padding: 12px 15px 12px 70px !important;
  font-size: 1rem !important;
  border: 1.8px solid #ddd !important;
  box-sizing: border-box !important;
  height: 48px !important;
  position: relative !important;
  z-index: 0 !important;
}

.iti input:focus {
  border-color: #dc3545 !important;
  box-shadow: none !important;
}

.iti .iti__selected-flag {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 68px !important;
  height: 48px !important;
  border: 1.8px solid #ddd !important;
  border-right: none !important;
  border-radius: 10px 0 0 10px !important;
  background: #f8f9fa !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 1 !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
}

.iti .iti__selected-flag:hover {
  background: #e9ecef !important;
}

.iti .iti__arrow {
  border-left: 3px solid transparent !important;
  border-right: 3px solid transparent !important;
  border-top: 4px solid #666 !important;
  margin-left: 4px !important;
  position: static !important;
}

.iti__country-list {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  width: 250px !important;
  max-height: 200px !important;
  overflow-y: auto !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  z-index: 1000 !important;
  border: 1px solid #ddd !important;
  background: white !important;
  margin-top: 2px !important;
}

.iti__country {
  padding: 8px 12px !important;
  cursor: pointer !important;
}

.iti__country:hover {
  background-color: #f8f9fa !important;
}

.iti__country.iti__highlight {
  background-color: #1f5fb8 !important;
  color: white !important;
}

.iti.iti--allow-dropdown .iti__selected-flag {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 75px !important;
  height: 48px !important;
}

.iti.iti--allow-dropdown input {
  padding-left: 80px !important;
}

@media (max-width: 768px) {
  .page-wrapper {
    padding: 20px 10px;
  }
  .signup-modal {
    padding: 30px 20px;
    margin: 1rem;
  }
  .modal-body p {
    font-size: 16px;
  }
  .footer-text {
    font-size: 13px !important;
  }
  .search_btn {
    margin: 0;
  }
}
