/* styles.css */
body {
  font-family: 'Lato', sans-serif;
  background-color: #F8F9FA;
  color: #333333;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
}

h1, h2 {
  color: #014A8B;
}

.logo {
  width: 80px;
}

.card {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 700px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

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

label {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

input, textarea {
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 0.6rem;
  font-size: 1rem;
  font-family: inherit;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

input:focus, textarea:focus {
  border-color: #014A8B;
  outline: none;
}

.required {
  color: #d00;
  margin-left: 0.2rem;
}

.error {
  color: #d00;
  font-size: 0.9rem;
  margin-top: 0.2rem;
}

.checkboxes label {
  display: block;
  margin-bottom: 0.5rem;
}

.captcha-placeholder {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px dashed #ccc;
  border-radius: 12px;
  text-align: center;
  color: #666;
}

.form-footer {
  text-align: center;
  margin-top: 1.5rem;
}

.form-footer input {
  background-color: #014A8B;
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border-radius: 16px;
  cursor: pointer;
  width: 100%;
  max-width: 400px;
}

.form-footer input:hover {
  background-color: #013769;
}

.form-footer a {
  display: block;
  margin-top: 1rem;
  color: #014A8B;
  text-decoration: underline;
}

.muted {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5rem;
}

.success-message {
  background: #dff0d8;
  color: #333;
  border-radius: 16px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  text-align: center;
  font-weight: 600;
}

/* Print styles */
@media print {
  body {
    background: #fff;
  }
  .card, .form-footer, .captcha-placeholder {
    box-shadow: none;
    border: 1px solid #ccc;
  }
  button, a {
    display: none !important;
  }
}
nav ul {
  display: flex;
}
/* HAMBURGER MENU BASE */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    width: 40px;
    height: 40px;
    gap: 6px;
    z-index: 100;
}
.menu-toggle .bar {
    width: 100%;
    height: 4px;
    background-color: #013A6E;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* OVERLAY MENU */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
    z-index: 1000;
    overflow: hidden;
}
body.no-scroll {
    overflow: hidden;
    max-height: 100vh !important;
}
.nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Overlay list styling */
.nav-overlay ul {
    display: flex;
    flex-direction: column;
    gap: 40px;
    list-style: none;
    text-align: center;
    padding: 0;
    margin: 0;
}
.nav-overlay ul a {
    text-decoration: none;
    color: #013A6E;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    transition: color 0.2s ease-in-out;
}
.nav-overlay ul a:hover {
    color: #014A8B;
}

/* Close button */
.close-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    font-weight: 400;
    color: #013A6E;
    cursor: pointer;
    user-select: none;
    transition: 0.2s;
    z-index: 100000;
}
.close-btn:hover {
    color: #014A8B;
}

/* MOBILE TRIGGER */
@media screen and (max-width: 800px) {
    nav {
        max-width: 78vw;
    }
    nav ul {
        display: none;
    }
    nav button {
        display: none;
    }
    .menu-toggle {
        display: flex;
    }
}

/* Animate bars into X */
.menu-toggle.open .bar:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}
.menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle.open .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}
/* Avoid pull-to-refresh/overscroll bubbling while overlay is open */
.nav-overlay {
  overscroll-behavior: contain;
}

/* If you want to belt-and-suspenders it for some Android browsers: */
html, body {
  overscroll-behavior-y: none;
}
