body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: url("./ap.webp") no-repeat center center/cover;
  min-height: 100vh;
  display: flex;
  flex-direction: column; /* so header + footer stay */
  align-items: center;
  padding: 70px 10px 70px; /* leave space for header/footer */
}

/* Form Container */
.form-container {
  background: rgba(255, 255, 255, 0.95);
  padding: 25px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  margin-top: 20px;
}

h2, h3 {
  text-align: center;
  margin-bottom: 15px;
  color: #333;
}

input, select, textarea {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
}

button {
  width: 100%;
  padding: 10px;
  margin-top: 15px;
  background: #28a745;
  color: white;
  font-size: 15px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background: #218838;
}

a {
  text-decoration: none;
  color: #007bff;
}

ul {
  list-style: none;
  padding: 0;
}

li {
  background: #f8f9fa;
  padding: 12px;
  margin-top: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

li button {
  background: #dc3545;
  color: white;
  padding: 5px 10px;
  border: none;
  border-radius: 4px;
  float: right;
  cursor: pointer;
}

li button:hover {
  background: #c82333;
}

/* Footer */
footer {
  background: #004466;
  color: white;
  text-align: center;
  padding: 12px 20px;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  font-size: 14px;
}

footer a {
  color: #ffcc00;
  text-decoration: none;
  margin: 0 8px;
}

footer a:hover {
  text-decoration: underline;
}

/* Minimal Header */
header {
  background: #2c3e50;
  color: #fff;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;   /* stick on top */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

header h1 {
  font-size: 18px;
  margin: 0;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 15px;
  margin: 0;
  padding: 0;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

nav ul li a:hover {
  color: #f39c12;
}

/* ✅ Responsive Media Queries */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-top: 10px;
  }

  .form-container {
    max-width: 90%;
    padding: 20px;
  }

  footer {
    font-size: 12px;
    padding: 10px;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 16px;
  }

  nav ul li a {
    font-size: 13px;
  }

  input, select, textarea, button {
    font-size: 13px;
    padding: 8px;
  }

  .form-container {
    padding: 15px;
  }
}
