/* ==================== GLOBAL STYLES ==================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Arial', sans-serif;
  background-color: #f8f8f8;
  color: #333;
  line-height: 1.6;
}

/* ==================== HEADER ==================== */
.header {
  background-color: #000; /* black header */
  color: white;
  padding: 20px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.header-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: #ffffff; /* gold logo */
  text-decoration: none;
}

.navbar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.navbar a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.navbar a:hover,
.navbar a.active {
  color: #ffd700;
  transform: scale(1.05);
}

/* ==================== PAGE TITLE ==================== */
h2 {
  text-align: center;
  font-size: 32px;
  margin: 40px 0 20px 0;
  color: #000;
}

/* ==================== FORM STYLING ==================== */
form {
  width: 90%;
  max-width: 500px;
  margin: 0 auto 60px auto;
  background-color: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

form:hover {
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

form input {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
}

form input:focus {
  border-color: #000;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
  outline: none;
}

form button {
  width: 100%;
  padding: 14px;
  background-color: #000;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

form button:hover {
  background-color: #333;
  transform: scale(1.03);
}

/* Error messages */
.error {
  color: red;
  font-size: 13px;
  margin-bottom: 10px;
  display: block;
}

/* ==================== FOOTER ==================== */
.footer {
  background-color: #000;
  color: white;
  padding: 50px 0 20px 0;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.3);
}

.footer-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-box {
  flex: 1 1 220px;
}

.footer-box h3 {
  color: #ffd700; /* gold headings */
  font-size: 18px;
  margin-bottom: 15px;
  font-weight: bold;
}

.footer-box a {
  display: block;
  color: white;
  text-decoration: none;
  margin: 6px 0;
  transition: all 0.3s ease;
}

.footer-box a:hover {
  color: #ffd700;
  transform: translateX(5px);
}

.footer-bottom {
  text-align: center;
  color: #ccc;
  margin-top: 25px;
  font-size: 14px;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 768px) {
  .header-container, .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .navbar {
    flex-direction: column;
    gap: 10px;
  }

  form {
    width: 95%;
    padding: 25px;
  }
}
