/* powr_otp.css */

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  box-shadow: 0 0 0px 1000px white inset !important;
  -webkit-text-fill-color: #333 !important;
  border: 2px solid #999 !important;
}
/* Custom user-defined layout */
.otp_fieldset {
  max-width: 300px;
  width: 100%;
  box-sizing: border-box;
  border:none;
}
.powr-otp-close {
    cursor: pointer !important;
    float: right;
    margin: -33px -33px auto auto !important;
    background: #696969 !important;
    font-size: 17px;
    padding: 2px !important;
    line-height: 1em;
    width: 20px !important;
    border: none !important;
}


#verify_otp {
  width: 100%;
  box-sizing: border-box;
  margin-top: 1rem;
}

#otp-boxes {
  display: flex;
  gap: 0.25rem;             
  width: 100%;
  box-sizing: border-box;
  justify-content: space-between;
}

/* 1. Full-screen semi-opaque overlay */
.powr-otp-modal {
  display: none; /* Hidden by default */
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 2. Modal content box */
.powr-otp-modal-content {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 0.5rem;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  position: relative;
}

/* 3. Constrain inner form fieldsets */
.powr-otp-modal-content form#multistepsform,
.powr-otp-modal-content fieldset,form#multistepsform {
  max-width: 300px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

/* 4. OTP digit boxes: number-only */
.otp-digit{
    margin-top:10px;
    color:#121212 !important;
  flex: 1;                 
  max-width: 3.5rem;        
  height: 3.5rem;
  font-size: 1.2rem;
  text-align: center;
  border: 2px solid #999 !important;
  border-radius: 0.25rem;
  box-sizing: border-box;
  inputmode: numeric;
  pattern: "[0-9]*";
}

/* 5. Brand-styled buttons */
.powr-otp-modal-content button,#get_otp,#verify_otp,.powr-otp-already-button {
  padding: 0.75rem 1.25rem;
 background: #4c2cff;
  font-weight: bold;
  color: #ffffff;
  border: 2px solid #4c2cff;
  border-bottom: 5px solid #120944;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: border-bottom 0.2s ease, color 0.2s ease;
  position: relative;
  width:100%;margin-top: 10px;
}





/* 6. Disabled button state */
.powr-otp-modal-content button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  border-bottom: 5px solid #981317;
}

/* 7. Hover state for buttons */
.powr-otp-modal-content button:hover:not(:disabled),#get_otp:hover, #verify_otp:hover,.powr-otp-already-button:hover {
  background: #ac1117;
    border: 2px solid #ac1117;
    border-bottom: 5px solid #771212;
    text-decoration:none;
}

/* 8. Loading spinner for buttons */
.powr-otp-modal-content button.loading,
#verify_otp.loading,
#get_otp.loading {
  color: transparent !important;
  pointer-events: none;
  position: relative;
}
.powr-otp-modal-content button.loading::after,
#verify_otp.loading::after,
#get_otp.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1rem;
  height: 1rem;
  margin: -0.5rem 0 0 -0.5rem;
  border: 2px solid #ffffff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


/* 9. Countdown text */
#otp-step1-countdown,
#otp-countdown {
  font-size: 11px;
  color: #333;
  margin-top: 0.5rem;
  text-align: center;
}

/* 10. Resend and change links */
#resend_otp_link {
  display: block;
  margin-top: 0.75rem;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  font-size:12px
}
#change_phone_link {
    color: #333;
    font-size: 10px;
    text-decoration: none;
    text-align: left;
}


/* Toast container */
.powr-otp-toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 11000;
}

/* Individual toasts */
.powr-otp-toast {
  display: none; /* Start hidden, then jQuery fades it in */
  padding: 0.75rem 1.25rem;
  border-radius: 0.25rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 .25rem .75rem rgba(0,0,0,.1);
  color: #fff;
  font-size: 0.9rem;
}

/* Success style */
.powr-toast-success {
  background-color: #28a745;
}

/* Error style */
.powr-toast-error {
  background-color: #dc3545;
}
.otp-step1-countdown{display:none; margin-top:0.5em; color:#dc3545; text-align:center;font-size:11px}
.commontextlinks {color:#333;border-bottom: 3px solid #bebaba !important;}
.commontextlinks:hover{border-bottom: 3px solid #333 !important;text-decoration:none;}

#multistepsform input#phone {
    margin-top:5px;
    width: 100%;
    height: 50px;
    font-size: 19px;
    letter-spacing: 5px;
    text-align: center;    border: 2px solid #999;
    color:#121212 !important;
}
#phone::placeholder {color: #aaa;opacity: 0.8;font-size:20px;letter-spacing: 5px;}
.otp_small_text{font-size: 11px !important;color: #aaa !important;padding: 5px 0px}