body {
  background-color: #000;
  font-family: 'Segoe UI', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  color: #fff;
  overflow: hidden;
}

.form-container {
  background: #111;
  border: 2px solid #e3a923;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.8);
  width: 90%;
  max-width: 500px;
  animation: pulseGlow 3s infinite ease-in-out;
  box-sizing: border-box;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.5), 0 0 35px rgba(255, 0, 0, 0.8);
  }
  50% {
    box-shadow: 0 0 45px rgba(0, 255, 0, 0.7), 0 0 55px rgba(255, 0, 0, 1);
  }
}

.input-group {
  position: relative;
  margin-bottom: 1.75rem;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 1rem 0.75rem;
  border: 1px solid #81d662;
  border-radius: 8px;
  background: transparent;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: bold;
  outline: none;
  transition: border-color 0.6s ease, box-shadow 0.6s ease;
}

.input-group input:focus,
.input-group textarea:focus {
  border-color: #f00;
  box-shadow: 0 0 8px rgba(255, 0, 0, 0.4);
}

.input-group label {
  position: absolute;
  left: 0.9rem;
  top: 1rem;
  color: #bbb;
  background: #111;
  padding: 0 0.3rem;
  font-size: 1rem;
  font-weight: 500;
  pointer-events: none;
  transition: all 0.2s ease-in-out;
}

/* Floating behavior when input is focused or has value */
.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label,
.input-group textarea:focus + label,
.input-group textarea:not(:placeholder-shown) + label {
  top: -0.7rem;
  left: 0.7rem;
  font-size: 0.85rem;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 6px rgba(255, 0, 0, 0.6);
}

.submit-button {
  width: 60%;
  padding: 1.1rem;
  border: none;
  background: linear-gradient(90deg, rgb(254, 4, 4), #61e304);
  color: #ffffff;
  font-weight: bold;
  font-size: 1.2rem;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.5s ease, opacity 0.3s ease;
  margin-top: 1.5rem;
  box-sizing: border-box;
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  box-shadow: 0 0 8px rgb(227, 23, 23);
  text-shadow: 0 0 px rgb(255, 255, 255);
  border: 2px solid #81d662;
}

.submit-button:hover {
  opacity: 0.95;
  transform: scale(1.02);
  box-shadow: 0 0 15px rgb(199, 3, 3), 0 0 20px rgb(51, 244, 7);
}

/* Optional: Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  padding-top: 60px;
}

.modal-content {
  background-color: #111;
  margin: 5% auto;
  padding: 2rem;
  border: 1px solid #888;
  width: 80%;
  max-width: 600px;
  color: #fff;
  border-radius: 10px;
}

.close {
  color: #bbb;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  right: 15px;
  top: 15px;
}

.close:hover,
.close:focus {
  color: rgb(136, 255, 0);
  text-decoration: none;
  cursor: pointer;
}

.instruction-button {
  background-color: #8b1010;
  color: #fff;
  border: none;
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 1rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.instruction-button:hover {
  background-color: rgb(163, 5, 5);
  transform: scale(1.05);
}