/* Shared form + footer styles — applies to all 50 pages */

/* Footer base styles — must apply uniformly across all pages */
footer.ma-footer {
  background: #212121 !important;
  color: rgba(255, 255, 255, 0.55) !important;
  padding: 36px 0 24px !important;
  font-size: 0.82rem !important;
  position: relative !important;
}
footer.ma-footer .container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
footer.ma-footer .ma-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 22px;
  text-align: center;
}
@media (min-width: 768px) {
  footer.ma-footer .ma-footer-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    text-align: left !important;
  }
}
footer.ma-footer .ma-footer-col strong {
  color: #fff;
}
footer.ma-footer a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}
footer.ma-footer a:hover {
  color: #56B6C4;
}
footer.ma-footer .ma-footer-copy {
  text-align: center;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
}
footer.ma-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #56B6C4, #C8962D, #56B6C4, transparent);
  opacity: 0.3;
}



/* Visually hide accessibility labels (screen readers only) */
.sr-only,
.ma-contact-form .sr-only,
#ma-contact-form .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Hide spam honeypot field offscreen */
.ma-honeypot,
#ma-contact-form .ma-honeypot {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.ma-footer-form-section {
  background: var(--cream, #FAF9F6);
  padding: 64px 0 56px;
}
.ma-footer-form-container {
  max-width: 680px !important;
  margin: 0 auto;
  padding: 0 20px;
}
.ma-footer-form-title {
  font-family: 'Be Vietnam Pro', sans-serif;
  /* Slightly larger headline (was clamp(1.5,3,2.2)) */
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 700;
  color: var(--dark, #212121);
  text-align: center;
  /* Bigger gap to first form field (was 8px) — looked too tight when no subtitle */
  margin-bottom: 28px;
}
/* When a subtitle directly follows the title, pull it closer (so title→subtitle
   gap is small ~8px) — the subtitle keeps its own 28px gap to the form below.
   Adjacent-sibling combinator works in all browsers. */
.ma-footer-form-title + .ma-footer-form-subtitle {
  margin-top: -20px;
}
.ma-footer-form-subtitle {
  color: var(--gray, #555);
  text-align: center;
  font-size: 0.95rem;
  margin-bottom: 28px;
  line-height: 1.6;
}
.ma-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
.ma-form-field {
  position: relative;
}
.ma-form-field input,
.ma-form-field textarea {
  width: 100%;
  padding: 16px 20px;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  color: var(--dark, #212121);
  background: var(--white, #fff);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  box-sizing: border-box;
}
.ma-form-field input:focus,
.ma-form-field textarea:focus {
  border-color: var(--teal, #56B6C4);
  box-shadow: 0 0 0 3px var(--teal-glow, rgba(86, 182, 196, 0.25));
}
.ma-form-field input::placeholder,
.ma-form-field textarea::placeholder {
  color: var(--gray-light, #999);
}
.ma-form-field textarea {
  resize: vertical;
  min-height: 160px;
  line-height: 1.6;
}
#ma-contact-form .ma-form-field textarea {
  min-height: 160px !important;
}
@media (min-width: 768px) {
  .ma-form-field textarea,
  #ma-contact-form .ma-form-field textarea {
    min-height: 260px !important;
  }
}
.ma-recaptcha-info {
  text-align: center;
  margin-bottom: 16px;
  color: var(--gray-light, #999);
  font-size: 0.78rem;
}
.ma-recaptcha-info a {
  color: var(--gray-light, #999);
  text-decoration: underline;
}
.ma-form-submit {
  display: block;
  width: 100%;
  padding: 18px 32px;
  background: linear-gradient(135deg, var(--teal, #56B6C4) 0%, var(--teal-dark, #479DA9) 100%);
  color: var(--white, #fff);
  border: none;
  border-radius: 50px;
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 15px var(--teal-glow, rgba(86, 182, 196, 0.25));
}
.ma-form-submit:hover {
  background: linear-gradient(135deg, var(--teal-dark, #479DA9) 0%, var(--teal-deeper, #3A8490) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--teal-glow, rgba(86, 182, 196, 0.25));
}
.ma-form-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}
.ma-form-status {
  text-align: center;
  padding: 14px;
  border-radius: 8px;
  margin-top: 16px;
  font-size: 0.9rem;
}
.ma-form-success {
  background: var(--teal-light, #E8F5F7);
  color: var(--teal-deeper, #3A8490);
}
.ma-form-error {
  background: #fde8e8;
  color: #c53030;
}
/* Layout: ALLE Felder UNTEREINANDER, sitewide. Mehr Platz, weniger gequetscht. */
.ma-form-grid {
  grid-template-columns: 1fr !important;
}
.ma-form-field-full {
  grid-column: 1 / -1;
}
.ma-footer-form-section ul,
.ma-footer-form-section ol {
  list-style: none;
  padding-left: 0;
}
@media (max-width: 600px) {
  .ma-footer-form-container {
    padding: 0 16px;
  }
  .ma-form-field textarea {
    min-height: 140px;
  }
}
