/* Base Reset + Font */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #ffffff;
  color: #0A2342;
  overflow-x: hidden;
}

header {
  position: relative;
  height: 200px;
  background: linear-gradient(270deg, #008080, #004d4d, #008080);
  background-size: 600% 600%;
  animation: gradientShift 10s ease infinite;
  color: #ffffff;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.header-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.nav-left {
  position: absolute;
  top: 20px;
  left: 30px;
  display: flex;
  gap: 25px;
}

.account-link {
  position: absolute;
  top: 20px;
  right: 30px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-left a,
.account-link a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 600;
  font-size: 1.2rem;
  transition: opacity 0.2s ease;
}

.nav-left a:hover,
.account-link a:hover {
  opacity: 0.75;
}

.logo {
  position: absolute;
  bottom: .1px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.logo img {
  height: 180px;
}

/* Hero Section */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 100px 20px;
  min-height: 100vh;
  box-sizing: border-box;
  overflow-y: auto;
  background-color: white;
}

.hero-content {
  z-index: 2;
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  color: #0A2342;
}

/* Lead page overrides ONLY */
.hero.lead-page {
  min-height: auto;
  padding: 0px 20px 40px;
}

.hero.lead-page .hero-content {
  position: relative;
  top: auto;
}

.hero.lead-page .lead-form {
  margin: 20px auto 40px;
}

/* Form Styles */
.lead-form {
  max-width: 600px;
  margin: 40px auto 60px;
  background: #f9f9f9;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.lead-form label {
  display: block;
  margin-top: 15px;
  font-weight: 600;
  color: #333;
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  margin-top: 5px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  background: #fff;
}

.form-control:focus {
  border-color: #008080;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0,128,128,0.2);
}

.submit-btn {
  margin-top: 20px;
  padding: 12px 24px;
  background-color: #008080;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.submit-btn:hover {
  background-color: #006666;
}

.flash-message {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  padding: 10px 15px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-weight: 600;
}

/* Footer */
.footer {
  padding: 24px 40px;
  background: #008080;
  color: #ffffff;
  border-top: 1px solid #e5e7eb;
  margin-top: 40px;
  font-size: 0.95rem;
  line-height: 1.4;
  width: 100%;
  box-sizing: border-box;
}

.footer p {
  margin: 2px 0;
}

.footer-inner {
  max-width: 100%;
  text-align: left;
}

.footer-name {
  font-weight: 600;
  font-size: 1rem;
}

.footer-subtext {
  font-size: 0.85rem;
}

.footer-link {
  color: #ffffff;
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

.footer a {
  word-break: break-word;
}

.footer a:visited {
  color: #ffffff;
}

.footer a[href^="tel"],
.footer a[href^="mailto"] {
  font-weight: bold;
  display: inline-block;
  margin-top: 4px;
}

.footer-copyright {
  font-size: 0.75rem;
  margin-top: 12px;
}

.footer-logos {
  position: absolute;
  right: 40px;
  bottom: 24px;
  display: flex;
  gap: 12px;
}

.footer-logos img {
  max-height: 50px;
  width: auto;
  display: block;
}

.section-hint.align-left {
  text-align: left;
  margin: 0 0 6px;
}

/* Modal shell */
.modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  display: none; align-items: center; justify-content: center;
  z-index: 1000;
}

/* Visible state toggled by JS */
.modal.show { display: flex; }

.modal-content {
  background: #fff; max-width: 640px; width: 95%;
  border-radius: 12px; padding: 24px; outline: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-body { margin: 12px 0 20px; line-height: 1.5; }

.modal-actions {
  display: flex; gap: 12px; justify-content: flex-end;
}

.btn { padding: 10px 16px; border-radius: 8px; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: #008080; color: #fff; }
.btn-secondary { background: #f3f4f6; color: #111827; }

.nojs-consent { margin-top: 12px; font-size: 0.95rem; }


/* Animations */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Responsive */
@media (max-width: 768px) {
  header {
    height: auto;
    padding-bottom: 20px;
  }

  .header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .logo {
    position: static;
    transform: none;
    margin: 24px 40px 10px 0;
    text-align: center;
    order: 1;
  }

  .logo img {
    height: 140px;
  }

  .nav-left {
    position: static;
    order: 2;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 10px 0 0;
  }

  .nav-left a {
    font-size: 1rem;
  }

  .account-link {
  position: absolute;
  top: 12px;
  right: 20px;
}

.account-link a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #ffffff;
  text-decoration: none;
}

  .hero {
    padding: 40px 20px;
    min-height: auto;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .footer-logos {
    position: static;
    justify-content: center;
    margin-top: 20px;
  }
}
