/* AIS OTP Modal Styles */

.modal-ais-otp-content {
  border-radius: 12px;
  border: 0.5px solid rgb(208, 214, 226);
  background-color: #f8f9fa;
}

.modal-ais-otp-header {
  border-bottom: 1px solid #e9ecef;
  background-color: #ffffff;
  border-radius: 12px 12px 0 0;
  padding: 1rem;
}

.modal-ais-otp-body {
  border-radius: 12px;
  border: 0.5px solid rgba(247, 255, 231, 1);
  background: #F7FFE7;
  background: linear-gradient(180deg, rgba(247, 255, 231, 1) 0%, rgba(210, 246, 131, 1) 100%);
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-top: 1.5rem;
  padding-bottom: unset;
}

.modal-ais-otp-title {
  font-size: 1.25rem;
}

/* Package Information Box */
.modal-ais-otp-package-box {
  background-color: #ffffff;
  /*border: 1px solid #e9ecef;*/
  border-radius: 8px;
  padding: 1rem;
  /*box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);*/
}

.modal-ais-otp-ais-logo {
  height: 30px;
  object-fit: contain;
}

.modal-ais-otp-package-text {
  color: #354355;
}

.modal-ais-otp-package-text .font-weight-bold {
  font-size: 0.95rem;
  color: #11998e;
}

.modal-ais-otp-package-text .small {
  font-size: 0.75rem;
  color: #6c757d;
}

/* Input Group Styles */
.modal-ais-otp-input-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.modal-ais-otp-label {
  position: absolute;
  /*top: -8px;*/
  top: -20px;
  left: 12px;
  z-index: 10;
  padding: 0 4px;
  /*background-color: #f8f9fa;*/
  color: #6c757d;
  /*font-size: 0.75rem;*/
  font-size: 0.9rem;
  font-weight: 300;
  margin-bottom: 0;
}

.modal-ais-otp-input-wrapper {
  position: relative;
}

.modal-ais-otp-input {
  display: block;
  width: 100%;
  padding: 0.75rem 3rem 0.75rem 0.75rem;
  border: 1px solid #d0d6e2;
  border-radius: 6px;
  font-size: 1rem;
  height: 48px;
  outline: none;
  transition: border-color 0.2s ease;
  background-color: #f8f9fa;
  color: #354355;
}

.modal-ais-otp-input:focus {
  border-color: #11998e;
  box-shadow: 0 0 0 0.2rem rgba(17, 153, 142, 0.1);
}

.modal-ais-otp-input:disabled {
  background-color: #e9ecef;
  cursor: not-allowed;
}

.modal-ais-otp-input::placeholder {
  color: #adb5bd;
}

/* Verify Icon */
.modal-ais-otp-verify-icon {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.modal-ais-otp-verify-circle {
  width: 20px;
  height: 20px;
  border: 2px solid #11998e;
  border-radius: 50%;
  background-color: transparent;
}

.modal-ais-otp-verify-icon i {
  font-size: 1.25rem;
}

/* OTP Reference Code */
.modal-ais-otp-reference-code {
  font-size: 0.875rem;
  color: #6c757d;
  font-weight: 500;
}

/* Button Styles */
.modal-ais-otp-btn-send-otp {
  background: #209910;
  border: none;
  color: #f8f9fa;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  height: 48px;
  transition: all 0.3s ease;
}

.modal-ais-otp-btn-send-otp:hover{
  color: #f8f9fa;
}

.modal-ais-otp-btn-send-otp:hover:not(:disabled) {
  /* background: linear-gradient(to right, #0d7a6f, #2dd66a); */
  background: #209910;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(17, 153, 142, 0.3);
}

.modal-ais-otp-btn-send-otp:disabled {
  /*opacity: 0.6;*/
  cursor: not-allowed;
}

.modal-ais-otp-btn-confirm {
  background: #209910;
  border: none;
  color: #f8f9fa;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  height: 48px;
  transition: all 0.3s ease;
}

.modal-ais-otp-btn-confirm:hover{
  color: #f8f9fa;
}

.modal-ais-otp-btn-confirm:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

.modal-ais-otp-btn-confirm:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #adb5bd;
}

/* Payment Logos */
.modal-ais-otp-payment-logo {
  height: 20px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.modal-ais-otp-payment-logo:hover {
  opacity: 1;
}

/* Responsive Design */
@media (max-width: 576px) {
  .modal-ais-otp-body {
    padding: 1rem;
  }

  .modal-ais-otp-title {
    font-size: 1.1rem;
  }

  .modal-ais-otp-input {
    font-size: 0.9rem;
    height: 44px;
  }

  .modal-ais-otp-btn-send-otp,
  .modal-ais-otp-btn-confirm {
    height: 44px;
    font-size: 0.9rem;
  }
}

/* Animation for countdown */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.modal-ais-otp-btn-send-otp span {
  animation: pulse 1s ease-in-out infinite;
}

/* Error Message */
.modal-ais-otp-body .alert {
  border-radius: 6px;
  font-size: 0.875rem;
}

/* Loading Spinner */
.modal-ais-otp-header .fa-spin {
  color: #11998e;
}

.sjUis-otp {
  font-size: 36px;
  cursor: pointer;
} 

.modal-ais-otp-footer {
  padding: 1.5rem;
}