@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&display=swap');

:root {
  --bg: #05223a;
  --text: #ffffff;
  --accent: #ffcc33;
  --gap: 3rem;
  --max-width: 1400px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background-color: #eef2f5;
  color: #333;
  line-height: 1.6;
}

/* MASTHEAD CONTAINER */
.masthead__nav {
  background: var(--bg);
  color: var(--text);
  width: 100%;
}

.masthead__logo {
  display: block;
  max-height: 50px;
  width: auto;
  height: auto;
}

/* --- ENHANCED LOGO STYLING --- */
.masthead__mark {
  margin-right: 2rem;
  margin-left: -1rem;
}

.masthead__logo {
  max-height: 105px;
  width: auto;
  height: auto;
  transform: translateY(-2%);
  transition: all 0.3s ease;
  position: relative;
  z-index: 5;
}

/* Give the logo a subtle pop-out effect */
.masthead__mark img {
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.25));
  /* soft shadow */
  border-radius: 8px;
  /* optional, makes edges smoother */
}

/* Optional: keep nav bar height fixed */
.masthead__wrap {
  align-items: center;
  height: 80px;
  /* lock height so logo enlargement doesn’t stretch it */
  overflow: visible !important;
  /* let logo “pop out” visually */
}

/* Optional hover effect for extra polish */
.masthead__logo:hover {
  transform: scale(1.35);
}

/* Optional: keep the navbar height consistent */
.masthead__nav {
  height: 80px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1000;
  overflow: visible;
  /* allows logo to overlap visually */
}

.masthead__wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  flex-wrap: nowrap;
  gap: 2rem;
}

/* LOGO */
.masthead__mark {
  flex-shrink: 0;
  margin-right: 4rem;
}

.svg--mark {
  display: block;
}

/* NAV MENU */
.nav__menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--gap);
  text-transform: uppercase;
  white-space: nowrap;
  position: relative;
}

.nav__menu-item {
  position: relative;
}

.nav__link {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
  display: inline-block;
}

.nav__link:hover {
  color: var(--accent);
}

/* DROPDOWN MENUS */
.nav__menu--level-1 {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(0, 0, 0, 0.7);
  /* transparent background */
  backdrop-filter: blur(6px);
  /* subtle glass effect */
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 0.5rem 0;
  /* keep existing vertical spacing */
  min-width: 220px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1001;
  box-sizing: border-box;
}

.nav__menu-item.has-children {
  position: relative;
}

.nav__menu-item.has-children:hover>.nav__menu--level-1 {
  display: flex;
}

/* Each dropdown item */
.nav__menu--level-1 li {
  width: 100%;
  display: block;
  margin: 0;
  padding: 0;
}

/* Dropdown links */
.nav__menu--level-1 a {
  display: block;
  width: 100%;
  padding: 0.75rem 1.25rem;
  /* slight increase to balance right spacing */
  text-transform: none;
  color: var(--text);
  box-sizing: border-box;
  transition: background 0.3s ease, color 0.3s ease;
  text-align: left;
  /* ensure consistent alignment */
}

/* Hover fills full width evenly */
.nav__menu--level-1 a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--accent);
}

/* Dropdown width auto-adjusts to content but stays aligned */
.nav__menu--level-1 {
  width: max-content;
  min-width: 220px;
  right: auto;
}



/* ACTION BUTTONS */
.btn a {
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
}

.btn--outline a {
  color: var(--text);
  border: 2px solid var(--text);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s;
}

.btn--outline a:hover {
  background: var(--text);
  color: var(--bg);
}

.btn--solid a {
  background: var(--accent);
  color: var(--bg);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background 0.3s;
}

.btn--solid a:hover {
  background: #ffd84d;
}

/* MOBILE TOGGLE */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.8rem;
  cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .masthead__wrap {
    flex-wrap: wrap;
  }

  .nav__toggle {
    display: block;
  }

  .nav__menu {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-top: 1rem;
    gap: 1rem;
  }

  .nav__menu.active {
    display: flex;
  }

  .nav__menu--level-1 {
    position: static;
    background: transparent;
    border: none;
    padding: 0;
  }

  .nav__menu--level-1 a:hover {
    background: none;
    color: var(--accent);
  }
}

.form-container {
  max-width: 800px;
  margin: 40px auto;
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

h1 {
  text-align: center;
  color: #2c3e50;
}

fieldset {
  border: 1px solid #ddd;
  padding: 20px;
  margin-bottom: 25px;
  border-radius: 5px;
}

legend {
  font-weight: 600;
  font-size: 1.2em;
  color: #0056b3;
  padding: 0 10px;
}

.input-group {
  margin-bottom: 15px;
}

.input-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.input-group input[type="text"],
.input-group input[type="email"],
.input-group input[type="tel"],
.input-group input[type="date"],
.input-group input[type="number"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.input-group input[type="file"] {
  padding: 5px;
}

.field-description {
  font-size: 0.9em;
  color: #666;
  margin-top: -10px;
  margin-bottom: 10px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

button {
  display: block;
  width: 100%;
  padding: 15px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
}

button:hover {
  background-color: #218838;
}

.footer-note {
  text-align: center;
  margin: 20px 0;
  color: #555;
}

/* Loader Styles */
.loader-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  z-index: 9998;
  justify-content: center;
  align-items: center;
}

.loader-spinner {
  border: 8px solid #f3f3f3;
  border-top: 8px solid #007bff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Toast Styles */
.toast {
  visibility: hidden;
  min-width: 250px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 4px;
  padding: 16px;
  position: fixed;
  z-index: 9999;
  left: 50%;
  transform: translateX(-50%);
  bottom: 30px;
  font-size: 17px;
}

.toast.show {
  visibility: visible;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@keyframes fadein {
  from {
    bottom: 0;
    opacity: 0;
  }

  to {
    bottom: 30px;
    opacity: 1;
  }
}

@keyframes fadeout {
  from {
    bottom: 30px;
    opacity: 1;
  }

  to {
    bottom: 0;
    opacity: 0;
  }
}

/* ===== Footer Base ===== */
footer.footer {
  background-color: #f8f8fb;
  color: #180038;
  font-family: "Inter", sans-serif;
  padding: 60px 8%;
}

/* Layout */
.footer__wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 60px;
  /* extra space between contact & nav */
}

/* ===== Contact Section ===== */
.footer__contact {
  flex: 1;
  min-width: 260px;
}

.footer__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #180038;
  margin-bottom: 15px;
}

.footer__heading {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #4a3a73;
  margin-bottom: 10px;
}

.footer__contact p,
.footer__contact address {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 10px;
}

.footer__email a {
  color: #6b4c9a;
  text-decoration: none;
  font-weight: 600;
}

.footer__email a:hover {
  text-decoration: underline;
}

/* ===== Footer Navigation (Sections) ===== */
.footer__nav {
  flex: 0.5;
  min-width: 200px;
}

.footer__nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__nav li {
  margin-bottom: 12px;
}

.footer__nav a {
  color: #180038;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  display: inline-block;
}

.footer__nav a:hover {
  color: #6b4c9a;
  transform: translateX(3px);
}

/* ===== Footer Logos Section ===== */
.footer__secondary {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  border-top: 1px solid #ddd;
  padding-top: 25px;
}

.footer__icon-menu--logos ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__icon-menu--logos img {
  height: 60px;
  width: auto;
  transition: transform 0.3s ease;
}

.footer__icon-menu--logos img:hover {
  transform: scale(1.05);
}

/* ===== Copyright ===== */
.footer__copyright {
  font-size: 0.85rem;
  color: #555;
  margin-top: 20px;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .footer__wrap {
    flex-direction: column;
    gap: 40px;
  }

  .footer__secondary {
    flex-direction: column;
    gap: 20px;
  }

  .footer__icon-menu--logos ul {
    flex-wrap: wrap;
    gap: 20px;
  }

  footer.footer {
    padding: 40px 5%;
  }
}