footer {
  background: #001848;
  color: white;
  padding: 3rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 90vw;
  margin: 0 auto;
  font-size: 0.9rem;
}

.footer-grid h4 {
  margin-top: 0rem;
  margin-bottom: 1rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-logo {
  width: 180px;
  max-width: 60%;
}

.footer-newsletter .newsletter-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.footer-newsletter .newsletter-terms {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #ccd6f2;
  line-height: 1.4;
  width: 100%;
}

.footer-newsletter .newsletter-terms input {
  margin-top: 0.2rem;
}

.footer-newsletter .newsletter-terms a {
  color: #ffffff;
  text-decoration: underline;
}

.footer-newsletter input[type="email"] {
  flex: 1 1 220px;
  min-width: 0;
  padding: 0.5rem 0.75rem;
  border-radius: 0;
  border: 1px solid #334a7a;
  background: #ffffff;
  color: #000000;
}

.footer-newsletter input::placeholder {
  color: #000000;
}

.footer-newsletter button {
  padding: 0.5rem 1rem;
  border-radius: 4px;
  border: 1px solid #fff;
  background: #fff;
  color: #002060;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.footer-newsletter button:hover {
  background: transparent;
  color: #fff;
}

.newsletter-alert {
  margin-top: 0.5rem;
  padding: 0.6rem 0.75rem;
  background: #e7f5ff;
  border: 1px solid #b3e0ff;
  color: #0b3b91;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}
.newsletter-alert.error {
  background: #ffeaea;
  border-color: #ffb3b3;
  color: #b00020;
}
.newsletter-alert .alert-close {
  background: transparent;
  border: none;
  color: inherit;
  font-size: 1rem;
  cursor: pointer;
}
.newsletter-alert.hidden { display: none; }

.footer-grid p,
.footer-grid li {
  color: #ccc;
  line-height: 1.6;
}

.footer-grid a {
  color: #ccc;
  text-decoration: none;
  transition: 0.3s;
}

.footer-grid a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #444;
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  color: #aaa;
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-brand {
    align-items: center;
  }
  .footer-newsletter .newsletter-form {
    justify-content: center;
  }

  .footer-grid ul {
    padding: 0;
    list-style: none;
  }
}
