/* SMS Alert OTP Verification Styles */

.smsalert-input-group {
  display: flex !important;
  gap: 10px;
  align-items: flex-start;
  width: 100%;
}

.smsalert-input-group .iti {
  flex: 1;
}

#smsalert-send-otp-btn {
  height: 38px;
  min-width: 120px;
  font-weight: 500;
  transition: all 0.3s ease;
}

#smsalert-send-otp-btn.btn-success {
  background-color: #28a745 !important;
  border-color: #28a745 !important;
  color: #fff !important;
}

@media (max-width: 767px) {
  .smsalert-input-group {
    flex-direction: column;
    gap: 5px;
  }
  #smsalert-send-otp-btn {
    width: 100% !important;
    margin-bottom: 10px;
  }
}

#otp-verification-section,
#otp-verified-section {
  animation: smsalert-slideDown 0.3s ease-in-out;
}

@keyframes smsalert-slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#otp-input {
  font-size: 20px;
  letter-spacing: 2px;
  text-align: center;
  font-weight: bold;
  height: 40px;
}

#verify-otp-btn:disabled,
#resend-otp-btn.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Modal Styles */
.smsalert-otp-modal-wrapper {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  backdrop-filter: blur(2px);
  justify-content: center;
  align-items: center;
}

.smsalert-otp-modal {
  background-color: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  width: 90%;
  max-width: 350px;
  position: relative;
}

.smsalert-otp-modal h4 {
  margin-top: 0;
  margin-bottom: 15px;
  font-weight: 600;
}

.smsalert-otp-modal .close-modal {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 24px;
  cursor: pointer;
  color: #999;
}

/* Animations */
.smsalert-anim-slide { animation: smsalert-slideIn 0.4s ease-out; }
.smsalert-anim-fade { animation: smsalert-fadeIn 0.4s ease-out; }

@keyframes smsalert-slideIn {
  from { transform: translateY(-30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes smsalert-fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

#otp-verification-section {
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border-left: 4px solid #17a2b8 !important;
  background-color: #fcfcfc !important;
}

#otp-error-msg {
  color: #dc3545;
  margin-bottom: 5px;
  font-weight: 500;
}

/* Intl-tel-input adjustments */
.iti { width: 100%; margin-bottom: 5px; }
.iti__flag-container { z-index: 5; }

.btn-info {
    background-color: #17a2b8;
    border-color: #17a2b8;
    color: #fff;
}
