.simplia-footer {
  position: relative;
  background: #232934;
  color: #e5e6ea;
  padding: 0;
  font-family: 'Inter', Arial, sans-serif;
}

.simplia-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(18, 22, 35, 0.8); /* capa d’opacitat per millorar lectura */
  z-index: 0;
}

.simplia-footer > .footer-inner {
  position: relative;
  z-index: 2;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 18px 24px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* -------- GRID 25% / 25% / 50% -------- */
.footer-cols {
  display: flex;
  gap: 3.4rem;
  justify-content: space-between;
  flex-wrap: nowrap;
  width: 100%;
}

.footer-logo, .footer-menu {
  flex: 0 0 25%;
  max-width: 25%;
  min-width: 160px;
  overflow: hidden;
  box-sizing: border-box;
}

.footer-newsletter {
  flex: 0 0 50%;
  max-width: 50%;
  min-width: 260px;
  box-sizing: border-box;
  text-align: left;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  overflow-x: auto;
}

.footer-newsletter form,
.footer-newsletter #mc_embed_signup,
.footer-newsletter .newsletter-form {
  width: 100%!important;
  max-width: 100%!important;
  min-width: 0!important;
  box-sizing: border-box!important;
}

.footer-logo img {
  max-height: 46px;
  margin-bottom: 0.9em;
}

.footer-claim {
  color: #b0b5c5;
  font-size: 1.07rem;
  margin-top: 0.28em;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin: 0.31em 0;
}

.footer-links a {
  color: #e5e6ea;
  text-decoration: none;
  transition: color 0.16s;
}

.footer-links a:hover {
  color: #e02984;
}

.footer-newsletter-title {
  font-weight: 600;
  font-size: 1.18rem;
  margin-bottom: 1.1em;
  color: #fff;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.65em;
  width: 100%;
}

.newsletter-fields input.newsletter-input,
.newsletter-form input[type="email"],
.newsletter-form input[type="text"] {
  width: 100%;
  padding: 0.8em 1em;
  border: none;
  border-radius: 8px;
  margin-bottom: 0.35em;
  font-size: 1rem;
  background: #191a1e;
  color: #f5f5f5;
  box-sizing: border-box;
}

.newsletter-fields input.newsletter-input:focus,
.newsletter-form input[type="email"]:focus,
.newsletter-form input[type="text"]:focus {
  outline: 2px solid #E02984;
}

/* ------- Checkboxes en una sola línea ------ */
.newsletter-checkboxes {
  margin: 0.8em 0 0.3em 0;
  display: flex;
  flex-direction: row;
  gap: 2.1em;
  font-size: 1em;
  color: #e5e6ea;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  justify-content: flex-start;
}

.newsletter-checkboxes label {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.38em;
  font-weight: 400;
  color: #e5e6ea;
  white-space: nowrap;
}

.newsletter-checkboxes input[type="checkbox"] {
  accent-color: #e02984;
  width: 1.18em;
  height: 1.18em;
  min-width: 18px;
}

/* RGPD acceptació amb padding addicional */
.newsletter-checkboxes label.rgpd-label {
  white-space: normal;
  font-size: 0.96em;
  line-height: 1.2;
  margin-left: 0.7em;
}

.newsletter-checkboxes input[type="checkbox"].rgpd-check {
  margin-right: 0.52em;
}

/* Botó newsletter */
.newsletter-btn,
.newsletter-form button,
.newsletter-form input[type="submit"] {
  background: #E02984;
  color: #fff;
  border: none;
  padding: 0.85em 0;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.06em;
  cursor: pointer;
  transition: background 0.18s;
  margin: 0.7em auto 0 auto;  /* centra el botó! */
  width: 220px;
  max-width: 340px;
  display: block;
  text-align: center;
}

.newsletter-btn:hover,
.newsletter-form button:hover,
.newsletter-form input[type="submit"]:hover {
  background: #ff43a3;
}

/* ------- Footer bar ------- */
.footer-bar {
  border-top: 1.5px solid #313d48;
  margin-top: 44px;
  padding: 19px 0 5px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  font-size: 1rem;
  color: #b5bbcc;
}

.footer-legal-links a {
  color: #aeb5c3;
  margin: 0 0.22em;
}

.footer-legal-links a:hover {
  color: #e02984;
}

/* --------- RESPONSIVE --------- */
@media (max-width: 1100px) {
  .footer-inner {
    padding: 32px 4vw 14px 4vw;
  }
  .footer-cols {
    gap: 2em;
    flex-wrap: wrap;
  }
  .footer-logo,
  .footer-menu,
  .footer-newsletter {
    min-width: 140px;
    max-width: 100% !important;
    flex: 1 1 100%;
  }
  .newsletter-checkboxes {
    gap: 1.1em;
  }
}

@media (max-width: 900px) {
  .footer-cols {
    flex-direction: column;
    gap: 2.3em;
  }
  .footer-logo,
  .footer-menu,
  .footer-newsletter {
    max-width: 100% !important;
    flex: 1 1 100%;
    min-width: 120px;
  }
  .footer-inner {
    padding: 22px 5vw 10px 5vw;
  }
  .footer-bar {
    flex-direction: column;
    gap: 0.6em;
  }
  .newsletter-checkboxes {
    flex-direction: column;
    gap: 0.41em;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .footer-inner {
    padding: 16px 2vw 8px 2vw;
  }
  .newsletter-form {
    max-width: 100%;
  }
  .newsletter-form input,
  .newsletter-form button {
    font-size: 0.98em;
  }
  .footer-newsletter {
    min-width: 0;
  }
  .newsletter-checkboxes {
    flex-direction: column;
    gap: 0.37em;
    align-items: flex-start;
  }
}

.input-error {
  border: 2px solid #E02984 !important;
  background: #2a1a24 !important;
}

.form-error-msg {
  color: #E02984;
  font-size: 1em;
  margin-bottom: 0.28em;
  font-weight: 500;
  margin-top: 0.13em;
  text-align: left;
  padding-left: 2px;
}

.simplia-footer {
  margin-top: 64px !important;
}
