/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.7;
  background: linear-gradient(135deg, #060833, #743476);
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== NAVBAR ===== */
.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 1.2rem 2rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 10;
}

.navbar a {
  color: #f5f5f5;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.3s ease, border-bottom 0.3s ease;
}

.navbar a:hover {
  color: #d6b1ff;
}

.navbar a.active {
  border-bottom: 2px solid #d6b1ff;
  padding-bottom: 0.2rem;
}

/* ===== MAIN CONTENT ===== */
main {
  flex: 1;
  padding: 3rem 2rem;
  width: 90%;
  max-width: 1400px; /* Increased width for desktops */
  margin: 0 auto;
  text-align: center;
}

h1 {
  font-size: 2.3rem;
  margin-bottom: 2rem;
  color: #fff;
  letter-spacing: 1px;
}

/* ===== FORM ===== */
form {
  background: rgba(255, 255, 255, 0.97);
  padding: 2.5rem 3rem;
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: left;
  animation: fadeIn 0.6s ease forwards;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

label {
  font-weight: 600;
  color: #333;
  font-size: 0.95rem;
}

input,
textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #743476;
  box-shadow: 0 0 6px rgba(116, 52, 118, 0.3);
}

textarea {
  resize: vertical;
}

/* ===== BUTTON ===== */
button {
  background: linear-gradient(135deg, #743476, #5a2c89);
  color: white;
  border: none;
  padding: 1rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

button:hover {
  background: linear-gradient(135deg, #5a2c89, #743476);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* ===== ERROR & SUCCESS MESSAGES ===== */
small {
  font-size: 0.85rem;
  color: #d62828;
  margin-top: 0.2rem;
}

.success {
  color: #2a9d8f;
  font-weight: 600;
  text-align: center;
  margin-top: 1rem;
  background: rgba(42, 157, 143, 0.1);
  padding: 0.8rem;
  border-radius: 8px;
  display: inline-block;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablets */
@media (max-width: 900px) {
  main {
    padding: 2.5rem 1.5rem;
    max-width: 90%;
  }

  form {
    padding: 2rem;
  }
}

/* Mobile */
@media (max-width: 600px) {
  main {
    padding: 2rem 1rem;
    max-width: 95%;
  }

  form {
    padding: 1.5rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  }

  h1 {
    font-size: 1.8rem;
  }

  button {
    font-size: 1rem;
  }
}
