/* Overlay background */
.otp-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.63); /* dark overlay with opacity */
  backdrop-filter: blur(6px); /* background blur */
  -webkit-backdrop-filter: blur(6px); /* for Safari support */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Popup content styling */
.otp-popup-content {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 10000;
}

.custom-reg-container {
  /* max-width: 800px; */
  margin: auto;
  background: #fff;
  /*   padding: 2rem; */
  /* border: 1px solid #ddd; */
  border-radius: 8px;
  /* font-family: "Cairo", sans-serif; */
  /* direction: rtl; */
}

.custom-reg-container h2 {
  text-align: left;
  font-size: 1.8rem;
}

.custom-reg-container p {
  text-align: right;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.custom-reg-grid .input-wrapper {
  margin-bottom: 1rem;
}
#custom-reg-form .iti {
  width: 100%;
}
.full-width {
  grid-column: span 2;
}

.input-wrapper label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.input-wrapper input,
.input-wrapper select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.password-container {
  display: flex;
  align-items: center;
  position: relative;
}

.password-container input {
  flex: 1;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 33%;
  cursor: pointer;
  font-size: 1.2rem;
  color: #888;
}

/* RTL layout support */
[dir="rtl"] .toggle-password {
  right: auto;
  left: 10px;
}

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

.eye-open,
.eye-closed {
  transition: opacity 0.2s ease;
}
#custom-reg-form input,
#custom-reg-form select {
  border-radius: 0;
}

#custom-reg-form .submit-btn {
  width: 100%;
  margin-top: 2rem;
  background-color: #8a1c47;
  color: #fff;
  border: none;
  padding: 18px 12px;
  margin: 16px 0;
  font-size: 1.1rem;
  cursor: pointer;
  border-radius: 0px;
  float: left;
}

/* OTP Modal */
.otp-popup {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.otp-popup-content {
  background: white;
  padding: 2rem;
  /* border-radius: 10px; */
  width: 90%;
  max-width: 500px;
  text-align: center;
  /* font-family: "Cairo", sans-serif; */
  position: relative;
}

.otp-popup-content h2 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.otp-popup-content p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* Close button styling */
.otp-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}

.otp-inputs {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  direction: ltr; /* important for input alignment */
  margin-bottom: 1rem;
}

.otp-digit {
  width: 45px;
  height: 55px;
  font-size: 2rem;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 8px;
  direction: ltr;
}

.resend-timer {
  font-size: 0.95rem;
  color: #666;
}

.popup-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10001;
}

.popup-content {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  width: 90%;
  max-width: 700px;
  text-align: right;
  position: relative;
  font-family: "Cairo", sans-serif;
}

.popup-close {
  position: absolute;
  left: 15px;
  top: 10px;
  font-size: 1.4rem;
  cursor: pointer;
}

.options-grid {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.option-box {
  flex: 1 1 48%;
  border: 1px solid #911c47;
  padding: 1rem;
  border-radius: 8px;
}

.option-box h3 {
  color: #911c47;
  margin-top: 0;
}
.custom-reg-grid input {
  height: 60px;
  border: 1px solid #e9e9e9 !important;
  padding: 1em 2em !important;
}
.custom-reg-grid input:focus {
  border: 1px solid #e9e9e9 !important;
  outline-color: #e9e9e9 !important;
  outline-width: 1px !important;
  outline-style: solid !important;
}
.custom-reg-grid input:focus-visible {
  border: 1px solid #e9e9e9 !important;
  outline-color: #e9e9e9 !important;
  outline-width: 1px !important;
  outline-style: solid !important;
}
.custom-reg-grid .input-wrapper {
  position: relative;
}

.input-wrapper input::placeholder {
  font-family: "Avenir";
  color: #686868 !important;
  font-size: 16px;
  font-weight: 400;
}

.error-message {
  color: #df0c01 !important;
  font-size: 14px;
  margin-top: 4px;
  font-family: "Avenir";
  font-weight: 400;
}
.input-wrapper.has-error input {
  color: #df0c01 !important;
  border-color: #df0c01 !important;
}

.input-wrapper.has-error input::placeholder {
  color: #df0c01 !important;
}

.input-wrapper.has-error input:focus,
.input-wrapper.has-error input:focus-visible {
  border-color: #df0c01;
  outline-color: #df0c01;
}

.iti {
  display: flex;
}

#custom-reg-form .iti__country-container button {
  display: flex;
  /* min-width: 20%;
  padding: 5px; */
  height: 100%;
  background-color: #d7d7d7;
  border: none;
  color: #383838;
  font-size: 12px;
  border: 1px solid #e9e9e9;
	padding: 20px;
	position: relative;
}
html[lang='ar'] #custom-reg-form .iti__country-container button::after {
	content: "\25BC";
    font-size: 7px;
    color: #383838;
    margin-right: 6px;
    display: inline-block;
}
#custom-reg-form .iti__a11y-text {
  display: none !important;
}
/*
#custom-reg-form .iti__country-container .iti__a11y-text {
  margin: 27px;
}
#phone-number {
  min-width: 215px;
}
#custom-reg-form .iti__arrow {
  margin-left: 100px;
  margin-top: -8px;
} */

@media screen and (max-width: 470px) {
  .custom-reg-grid .input-wrapper {
    width: 100% !important;
  }

  .custom-reg-grid {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  button.submit-btn {
    display: block;
    margin: auto;
    padding: 12px !important;
    width: 100%;
    margin-top: 1em;
  }

  form#custom-reg-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1em;
  }
  .iti__selected-country {
    padding: 0px 15px !important;
  }

  #phone-number {
    padding: 0 5px !important;
  }
  /* .phone-container select {
    width: 45%;
  } */
  /* #phone-number {
    min-width: 154px;
  } */
}
/* .input-wrapper.active input {
    padding-top: 2em!important;
} */
/* .input-wrapper.has-error label {
    top: 24%;
} */
/* .input-wrapper.has-error.active input {
    padding-top: 1.5em!important;
} */
/* 
.input-wrapper.has-error.active label {.input-wrapper.has-error.active input:focus,.input-wrapper.has-error.active input:focus-visible,
    top: 10%;
} */
/* .input-wrapper.active label {
      top: 14%;
    font-size: 12px;
    color: #686868!important;
	font-weight: 400;
} */
/* .custom-reg-grid label {
    position: absolute;
    top: 38%;
    z-index: 11;
    left: 2.2em;
    font-family: 'Avenir';
    color: #686868;
    font-size: 16px;
	font-weight: 400;
} */

#log-in-container .frm_form_fields fieldset {
  padding: 0 !important;
  border: none !important;
}
body.rtl #phone-number {
  direction: ltr;
  text-align: right;
}
