/* 🌈 Gradient Background for Page */
body {
  background: linear-gradient(135deg, #7f00ff, #e100ff);
  color: white;
  font-family: 'Segoe UI', sans-serif;
}

/* 📦 Form Container Section */
.complaint-form-section {
  padding: 60px 20px;
  background: linear-gradient(135deg, #7f00ff, #e100ff);
}


/* 🧾 Form Heading (Now inside the form) */
.form-heading {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 30px;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* 🧊 Stylish Black Form Card */
.complaint-form {
  max-width: 850px;
  margin: auto;
  background: rgba(0, 0, 0, 0.85);
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  animation: slideFadeIn 1s ease-out both;
}

/* ✨ Input Fields and Selects */
.complaint-form .form-label {
  font-weight: 500;
  margin-bottom: 6px;
  color: #eeeeee;
}

.complaint-form .form-control,
.complaint-form .form-select,
.complaint-form textarea {
  background-color: #fff;
  border: 1px solid #ccc;
  color: #111;
  border-radius: 10px;
  padding: 10px 14px;
  transition: all 0.3s ease;
  box-shadow: inset 0 0 0 transparent;
}

.complaint-form .form-control:focus,
.complaint-form .form-select:focus,
.complaint-form textarea:focus {
  border-color: #1e90ff;
  background-color: #000;
  color: #fff;
  animation: pulseBorder 1.2s infinite ease-in-out;
  box-shadow: 0 0 8px #1e90ff70;
}

/* 🟦 Submit Button Glow & Ripple */
.superbutton {
  background: linear-gradient(135deg, #007bff, #00d4ff);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  padding: 10px 26px;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
  transition: all 0.3s ease;
}

.superbutton:hover {
  background: linear-gradient(135deg, #00d4ff, #007bff);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.7);
}

.superbutton:active {
  transform: scale(0.96);
  box-shadow: 0 0 0 8px rgba(0, 212, 255, 0.2);
}

/* 🎙️ Audio Recorder */
.audio-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.waveform {
  display: flex;
  align-items: flex-end;
  height: 24px;
  gap: 4px;
}

.waveform .bar {
  width: 4px;
  height: 100%;
  background-color: #00d4ff;
  animation: wave 1s infinite ease-in-out;
}

.waveform .bar:nth-child(1) { animation-delay: 0s; }
.waveform .bar:nth-child(2) { animation-delay: 0.1s; }
.waveform .bar:nth-child(3) { animation-delay: 0.2s; }
.waveform .bar:nth-child(4) { animation-delay: 0.3s; }
.waveform .bar:nth-child(5) { animation-delay: 0.4s; }

/* ✨ Shimmer Loader (optional usage) */
.loader-bar {
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, #007bff 25%, #00d4ff 50%, #007bff 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* 💡 Floating Labels */
.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-group input {
  background: #111;
  color: #fff;
  border-radius: 8px;
  padding: 12px 14px;
}

.form-group label {
  position: absolute;
  top: 12px;
  left: 14px;
  color: #aaa;
  font-size: 14px;
  transition: 0.3s ease;
  pointer-events: none;
  background: #000;
  padding: 0 6px;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
  top: -10px;
  font-size: 12px;
  color: #1e90ff;
}

/* 🌀 Animations */
@keyframes slideFadeIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseBorder {
  0% { box-shadow: 0 0 0 0 rgba(30,144,255,0.3); }
  70% { box-shadow: 0 0 0 10px rgba(30,144,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(30,144,255,0); }
}

@keyframes wave {
  0%, 100% { height: 4px; }
  50% { height: 22px; }
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* 📱 Mobile */
@media (max-width: 768px) {
  .complaint-form {
    padding: 25px;
  }

  .form-heading {
    font-size: 24px;
  }
}
