/* ============================================================
   MODAL STYLING
   ============================================================ */

/* Modal Background Overlay */
.custom-modal {
  display: none;
  align-items: center;
  justify-content: center;
  position: fixed;
  z-index: 1051;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

/* .modal {
  align-items: center;
  justify-content: center;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
} */

/* Modal Container Box */
.custom-modal-content {
  background-color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  box-sizing: border-box;
}



/* ============================================================
   HEADER STYLING
   ============================================================ */

/* Modal Header Layout */
.modal-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Modal Title */
.modal-title {
  font-size: 24px;
  font-weight: bold;
}

/* Icon next to title */
.modal-title-icon {
  padding-right: 16px;
}


/* ============================================================
   BODY STYLING
   ============================================================ */

/* Modal Header Layout */
/* Modal Body Content */
.modal-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-family: 'Lato';
  font-weight: 400;
  font-style: normal;
  font-size: 18px;
  line-height: 28px;
  letter-spacing: 0px;
}

.modal-body .otp-group-container{
  text-align: center;
}


/* ============================================================
   FOOTER STYLING
   ============================================================ */

/* Modal Header Layout */
/* Modal Footer Layout */
.modal-footer {
  margin-top: 20px;
  text-align: right;
  flex-wrap: nowrap;
  /* padding-left: 24px;
  padding-right: 24px; */
}

.modal-footer > .btn {
  width: 100%;
  height: 100%;
}


.modal-footer > #primaryButtonNote {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
  text-align: center;
}

a.disabled {
  pointer-events: none;
  opacity: 0.5;
  cursor: default;
  text-decoration: none;
}


/* ============================================================
   BUTTON STYLING
   ============================================================ */

/* Generic Button */
/* .btn {
  padding: 10px 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: auto; 
} */

/* Primary Button */
.primary,
.login {
  background-color: #006AFB;
  color: white;
}

.primary:hover {
  background-color: #0054C8;
}

/* Secondary Button */
.secondary {
  background-color: #FFFFFF;
  color: #006AFB;
  border: 1px solid #006AFB;
  border-radius: 5px;
}

.secondary:hover {
  background-color: #E6F0FF;
  border-color: #0054C8;
  color: #0054C8;
}

/* Reset margin for first button */
.btn:first-child {
  margin-left: 0;
}

/* ============================================================
   CLOSE BUTTON
   ============================================================ */

.close-icon {
  cursor: pointer;
  background-color: #0069FA;
  color: white;
}

.closeBtn {
  border: none;
  background: transparent;
}

.btn-close {
background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
}

#modalClose {

}
#modalClose:hover {
  background-color: transparent;
}



#modalIcon {
  background: transparent !important;
}




/* ============================================================
   RESPONSIVE STYLING
   ============================================================ */

@media (max-width: 768px) {
  .modal-footer {
    flex-wrap: wrap;
    gap: 10px;
  }

  .modal-footer .btn {
    width: 100%;
    margin-left: 0; /* Reset any horizontal spacing */
  }
}

/* ============================================================
   OTP MODAL STYLING
   ============================================================ */

/* OTP Input Container */
.otp-inputs-container{
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 20px;
  margin-bottom: 10px;
}

.otp-top-text-container {
  font-family: 'Inter', sans-serif;
  font-weight: normal;
  font-size: 16px;
  line-height: 32px;
  letter-spacing: 0px;
  text-align: center;
}

/* Individual OTP Digit Input */
.otp-digit {
    width: 42px;
    height: 44px;
    text-align: center;
    font-size: 18px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.otp-bottom-text-container {
  font-family: 'Inter', sans-serif;
  font-weight: bold;
  font-size: 16px;
  line-height: 32px;
  letter-spacing: 0px;
  text-align: center;
}

.otp-lowest-text-container {
  font-family: 'Inter', sans-serif;
  font-weight: normal;
  font-size: 16px;
  color: red;
  line-height: 32px;
  letter-spacing: 0px;
  text-align: center;
}

.otp-digit.error {
  border: 2px solid red !important;
  animation: shake 0.3s ease-in-out;
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  50% { transform: translateX(3px); }
  75% { transform: translateX(-3px); }
  100% { transform: translateX(0); }
}

/* ============================================================
   ADDITIONAL COMPONENT STYLING
   ============================================================ */

/* Resend Section */
#resendSection {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

/* Spinner Animation */
.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid #ccc;
  border-top: 3px solid #006AFB;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Toast Message */
.toast {
  margin-top: 12px;
  padding: 10px 16px;
  background-color: #28a745;
  color: white;
  border-radius: 4px;
  font-size: 14px;
  text-align: center;
  animation: fadeInOut 3s ease-in-out;
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  10% {
    opacity: 1;
    transform: translateY(0);
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}