/* General Styles */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navbar */
.nav-bar {
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  text-decoration: none;
}

.logo {
  font-size: 24px;
  color: #d32f2f;
  margin: 0;
}

.logo-link:hover .logo,
.logo-link:focus .logo {
  color: black; /* Darker red on hover/focus */
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-link {
  text-decoration: none;
  color: #d32f2f;
  font-size: 16px;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link:focus {
  color: black; /* Darker red on hover/focus */
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background-color: #d32f2f; /* Matches brand red */
  transition: all 0.3s ease;
}

.hamburger.open .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.open .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background-color: #942424; /* Matches footer */
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Added for visual distinction */
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links.active .nav-link {
    color: white; /* White links in mobile menu for readability */
    padding: 0.5rem;
  }

  .nav-links.active .nav-link:hover,
  .nav-links.active .nav-link:focus {
    color: #e57373; /* Lighter red for hover/focus */
  }
}

/* Form Container */
.form-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 20px 20px;
}

.form-box {
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 20px;
  width: 100%;
  max-width: 500px;
}

.form-box h2 {
  font-size: 24px;
  font-weight: bold;
  color: #d32f2f;
  text-align: center;
  margin-bottom: 10px;
}

.form-info {
  color: #666;
  font-size: 14px;
  text-align: center;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 8px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #d32f2f;
  box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.2);
}

.optional-text,
.onu-note {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
  display: block;
}

.onu-note {
  color: #d32f2f;
}

.financial-box {
  background-color: #f4f4f4;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 15px;
}

.financial-box input {
  background-color: #e5e7eb;
}

#captchaCanvas {
  border: 1px solid #d1d5db;
  border-radius: 4px;
  margin-bottom: 10px;
}

.terms {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.terms input {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  cursor: pointer;
}

.terms label {
  font-size: 14px;
  font-weight: normal;
  color: #333;
  cursor: pointer;
}

button {
  width: 100%;
  background-color: #d32f2f;
  color: #ffffff;
  padding: 10px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover,
button:focus {
  background-color: #b71c1c;
}

.success-message,
.error-message {
  text-align: center;
  margin-top: 10px;
  font-size: 14px;
}

.success-message {
  color: #2ecc71;
}

.error-message {
  color: #d32f2f;
}

.hidden {
  display: none;
}

.contact-info {
  text-align: center;
  color: #666;
  font-size: 14px;
  margin-top: 20px;
}

/* Footer */
.footer {
  background-color: #942424;
  color: white;
  padding: 2rem 0;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-columns {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-left,
.footer-center,
.footer-right {
  flex: 1;
  min-width: 250px;
}

.footer-left {
  text-align: left;
}

.footer-left ul {
  list-style: none;
  padding-left: 0;
}

.footer-left ul li {
  margin-bottom: 0.5rem;
}

.footer-left a,
.footer-center a,
.footer-right a {
  color: white;
  text-decoration: none;
}

.footer-left a:hover,
.footer-center a:hover,
.footer-right a:hover,
.footer-left a:focus,
.footer-center a:focus,
.footer-right a:focus {
  text-decoration: underline;
}

.footer-center {
  text-align: center;
}

.footer-right {
  text-align: right;
}

@media (max-width: 768px) {
  .footer-columns {
    flex-direction: column;
    align-items: center;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    text-align: center;
    margin: 1rem 0;
  }
}