/* === APPEALS SECTION === */
.appeals-section {
  max-width: 800px;
  margin: 3rem auto;
  padding: 2rem 1.5rem;
  text-align: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(145deg, #0a0a0a, #111);
  border-radius: 20px;
  box-shadow: 0 0 35px 6px rgba(250, 204, 21, 0.4);
  color: #fff;
  animation: fadeInAppeal 0.8s ease;
}

.appeals-section h2 {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, #facc15, #dc2626);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbowGlow 6s linear infinite;
}

.appeals-section p {
  color: #aaa;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* === FORM BOX === */
.form-box {
  background: #1a1a1a;
  border: 2px solid #dc2626;
  border-radius: 14px;
  padding: 2rem;
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.2);
  text-align: left;
  transition: 0.4s ease;
}

.form-box h3 {
  color: #facc15;
  font-size: 1.6rem;
  margin-bottom: 1.4rem;
  text-align: center;
}

/* === FORM ELEMENTS === */
.form-box form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-box input,
.form-box textarea,
.form-box select {
  padding: 0.85rem 1rem;
  background: #2a2a2a;
  border: none;
  border-radius: 10px;
  color: #facc15;
  font-size: 1rem;
  box-shadow: inset 0 0 10px rgba(250, 204, 21, 0.2);
  transition: box-shadow 0.3s ease;
}

.form-box input:focus,
.form-box textarea:focus,
.form-box select:focus {
  outline: none;
  box-shadow: 0 0 20px #facc15;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* === SUBMIT BUTTON === */
.form-box button {
  background: linear-gradient(90deg, #dc2626, #facc15);
  color: #111;
  padding: 0.9rem 2.5rem;
  font-weight: bold;
  border-radius: 30px;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  text-transform: uppercase;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-box button:hover {
  transform: scale(1.08);
  box-shadow: 0 0 20px #facc15cc;
}

/* === STATUS MESSAGE === */
#statusMsg {
  color: #facc15;
  font-weight: 600;
  text-align: center;
  margin-top: 1rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .appeals-section {
    margin: 2rem 1rem;
    padding: 1rem;
  }

  .form-box {
    padding: 1.5rem;
  }

  .form-box button {
    width: 100%;
  }
}

/* === ANIMATIONS === */
@keyframes rainbowGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes fadeInAppeal {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}


    /* Spinner */
    .spinner {
      border: 4px solid rgba(255, 255, 255, 0.1);
      border-left-color: #facc15;
      border-radius: 50%;
      width: 30px;
      height: 30px;
      animation: spin 1s linear infinite;
      display: inline-block;
      margin-top: 1rem;
    }
    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }

    /* Success Popup */
    .popup-overlay {
      position: fixed;
      top: 0; left: 0;
      width: 100vw; height: 100vh;
      background-color: rgba(0, 0, 0, 0.85);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 9999;
    }

    .popup-content {
      background-color: #1a1a1a;
      padding: 2rem;
      border-radius: 15px;
      text-align: center;
      color: white;
      box-shadow: 0 0 30px #facc15aa;
    }

    .popup-content button {
      margin-top: 1rem;
      padding: 0.6rem 1.2rem;
      border: none;
      background-color: #facc15;
      color: black;
      font-weight: bold;
      border-radius: 8px;
      cursor: pointer;
    }

    .popup-content button:hover {
      background-color: #ffdb4d;
    }


    /* Centered Spinner Wrapper */
.popup-spinner-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}



.popup-content a {
  text-decoration: none;
  background-color: #dc2626;
  color: white;
  font-weight: bold;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.popup-content a:hover {
  background-color: #ff4444;
}



/* === RESPONSIVE APPEALS CONTENT === */
@media (max-width: 768px) {
  .appeals-section {
    margin: 2rem 1rem;
    padding: 1rem;
  }

  .form-box {
    padding: 1.5rem;
  }

  .form-box form {
    gap: 1rem;
  }

  .form-box input,
  .form-box textarea,
  .form-box select {
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
  }

  .form-box button {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
  }
}

@media (max-width: 400px) {
  .appeals-section h2 {
    font-size: 2rem;
  }

  .form-box h3 {
    font-size: 1.3rem;
  }

  .form-box input,
  .form-box textarea,
  .form-box select {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
  }

  .popup-content {
    padding: 1rem;
    font-size: 0.9rem;
  }

  .popup-content button,
  .popup-content a {
    padding: 0.5rem 1rem;
    font-size: 1rem;
  }
}


#popupConfirm .popup-content button {
  padding: 0.6rem 1.5rem;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  border: none;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

#popupConfirm #confirmYes:hover {
  background-color: #ff4444;
}

#popupConfirm #confirmNo:hover {
  background-color: #777;
}
