
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
  backdrop-filter: blur(20px);
  border:1px solid rgba(255, 255, 255, 0.1)
  border-radius: 5px;
  padding: 15px;
  max-width: 90%;
  width: 400px;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modal Header */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 10px;
/*  border-bottom: 1px solid rgba(139, 92, 246, 0.2);*/
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-close {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #a78bfa;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: rgba(139, 92, 246, 0.2);
  color: #fff;
  transform: rotate(90deg);
}

/* Form Group */
.form-group {
  margin-bottom: 10px;
}

.form-label {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 10px;
  font-weight: 500;
}

/* Form Textarea */
.form-textarea {
  width: 100%;
  min-height: 120px;
  padding: 10px;
/*  background: rgba(139, 92, 246, 0.05);*/
background: rgba(255, 255, 255, 0.05);
/*  border: 1px solid rgba(139, 92, 246, 0.2);*/
border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 5px;
  color: #fff;
  font-size: 16px;
  line-height: 1.6;
  resize: vertical;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-textarea:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.5);
  background: rgba(139, 92, 246, 0.08);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* Captcha Group */
.captcha-group {
  display: flex;
  flex-direction: row; 
  align-items: center;
  width: 100%; 
}

/* Form Input */
.form-input {
  flex: 1; /* 确保输入框占据剩余空间 */
  min-width: 0; /* 防止flex item收缩问题 */
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 5px;
  color: #fff;
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.5);
  background: rgba(139, 92, 246, 0.08);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* Captcha Image */
.captcha-image {
  width: 120px;
  height: 44px;
  flex-shrink: 0; 
  margin-left: 10px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  object-fit: cover;
}

.captcha-image:hover {
  border-color: rgba(139, 92, 246, 0.5);
  transform: scale(1.02);
}

.submit-btn {
  width: 100%;
  padding: 14px;
  background: rgba(139, 92, 246, 0.5);
  border: none;
  border-radius: 5px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.submit-btn:active {
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 480px) {
  .modal-content {
    width: 85%;
    padding: 10px;
  }
  
  .captcha-image {
    width: 100px;
    height: 40px;
    border: 1px solid rgba(139, 92, 246, 0.2);
  }
  
  .form-input {
    padding: 10px;
    font-size: 16px;
  }
}