/** jQuery validation runtime rendered elements, ignore unused warning **/
.error {
  color: red !important;
  margin-bottom: 15px !important;
}

/* Mobile Verification Modal Styles - Modern Design */
.forgot-pwd-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  animation: forgot-pwd-fade-in 0.3s ease-out;
}

@keyframes forgot-pwd-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.forgot-pwd-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.6) 100%
  );
  backdrop-filter: blur(4px);
}

.forgot-pwd-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 520px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: forgot-pwd-slide-up 0.3s ease-out;
}

@keyframes forgot-pwd-slide-up {
  from {
    transform: translate(-50%, -40%);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
}

.forgot-pwd-modal-header {
  padding: 24px 30px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
  border-radius: 16px 16px 0 0;
}

.forgot-pwd-modal-header h4 {
  margin: 0;
  font-size: 1.35rem;
  color: #2c3e50;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.forgot-pwd-modal-close {
  background: #f5f5f5;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #666;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.forgot-pwd-modal-close:hover {
  background: #e0e0e0;
  color: #333;
  transform: rotate(90deg);
}

.forgot-pwd-modal-body {
  padding: 30px;
}

.forgot-pwd-modal-message {
  margin-bottom: 24px;
  color: #555;
  line-height: 1.6;
  font-size: 0.95rem;
}

.forgot-pwd-modal-error {
  padding: 14px 18px;
  margin-bottom: 20px;
  background-color: #fff3cd;
  border-left: 4px solid #ffc107;
  border-radius: 6px;
  color: #856404;
  font-size: 0.9rem;
  box-shadow: 0 2px 4px rgba(255, 193, 7, 0.1);
}

.forgot-pwd-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  justify-content: flex-end;
}

.forgot-pwd-modal-actions .btn {
  min-width: 110px;
  padding: 11px 24px;
  font-weight: 600;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.forgot-pwd-modal-actions .btn-secondary {
  background-color: #e9ecef;
  border-color: #e9ecef;
  color: #495057;
}

.forgot-pwd-modal-actions .btn-secondary:hover {
  background-color: #d3d6d9;
  border-color: #d3d6d9;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.forgot-pwd-modal-actions .btn-danger:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

#mobileInputGroup .form-control {
  border-radius: 8px;
  border: 2px solid #e0e0e0;
  padding: 12px 16px;
  font-size: 1rem;
  transition: all 0.2s ease;
}

#mobileInputGroup .form-control:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
  outline: none;
}

#mobileInputGroup label {
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Account Closure Notice - Modern Design */
.forgot-pwd-account-closure {
  text-align: center;
  padding: 10px 0;
  animation: forgot-pwd-fade-in 0.4s ease-out;
}

.forgot-pwd-closure-icon {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}

.forgot-pwd-closure-icon svg {
  filter: drop-shadow(0 4px 12px rgba(220, 53, 69, 0.2));
  animation: forgot-pwd-pulse 2s ease-in-out infinite;
}

@keyframes forgot-pwd-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}

.forgot-pwd-closure-message {
  background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
  border: 3px solid #dc3545;
  border-radius: 12px;
  padding: 28px 24px;
  margin-bottom: 28px;
  color: #721c24;
  font-size: 1.05rem;
  line-height: 1.7;
  box-shadow: 0 4px 20px rgba(220, 53, 69, 0.15);
  position: relative;
  overflow: hidden;
}

.forgot-pwd-closure-message::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #dc3545 0%, #c82333 100%);
}

.forgot-pwd-closure-actions {
  margin-top: 24px;
}

.forgot-pwd-closure-actions .btn {
  min-width: 160px;
  padding: 14px 36px;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.25);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.forgot-pwd-closure-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .forgot-pwd-modal-content {
    width: 95%;
  }

  .forgot-pwd-modal-header {
    padding: 15px 20px;
  }

  .forgot-pwd-modal-body {
    padding: 20px;
  }

  .forgot-pwd-modal-actions {
    flex-direction: column-reverse;
  }

  .forgot-pwd-modal-actions .btn {
    width: 100%;
  }

  .forgot-pwd-closure-message {
    padding: 20px;
    font-size: 1rem;
  }

  .forgot-pwd-closure-actions .btn {
    width: 100%;
  }
}
