/* ===== NEWSLETTER FOOTER BLOKK ===== */

.footer-newsletter {
  width: 100%;
  margin: 0 auto 20px auto;
  text-align: left;
}

body.frontpage .newsletter-box h3 {
  border: 0;
}

.footer-newsletter h3 {
  text-align: center;
  margin-bottom: 8px;
  font-weight: 600;
}

.nl-subtitle {
  text-align: center;
  margin-bottom: 15px;
  font-size: 14px;
  color: #555;
}

/* ===== SOROS ELRENDEZÉS ===== */

.newsletter-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

/* mező arányok */
.name-field {
  flex: 1;
  min-width: 140px;
}

.email-field {
  flex: 2;
  min-width: 180px;
}

/* ===== INPUT ===== */

.input-group {
  position: relative;
  width: 100%;
}

.input-group input {
  width: 100%;
  height: 42px;
  padding: 0 10px 0 34px;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  font-size: 14px;
  background: #fff;
  transition: all 0.2s ease;
}

/* ikon */
.input-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  opacity: 0.6;
}

/* hover */
.input-group input:hover {
  border-color: #bdbdbd;
}

/* focus (zöld glow) */
.input-group input:focus {
  border-color: #2e7d32;
  box-shadow: 0 0 0 2px rgba(46,125,50,0.15);
  outline: none;
}

/* error */
.input-error input {
  border-color: #d32f2f !important;
  box-shadow: 0 0 0 2px rgba(211,47,47,0.15);
  background: #fff5f5;
}

/* ===== BUTTON ===== */

.footer-newsletter button {
  height: 42px;
  padding: 0 18px;
  white-space: nowrap;
  background: linear-gradient(180deg, #43a047, #2e7d32);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.footer-newsletter button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* CHECKBOX – középre igazítva */
.checkbox-group {
  display: flex;
  justify-content: center;   /* vízszintes közép */
  align-items: flex-start;
  gap: 8px;
  margin-top: 8px;
  text-align: left;          /* szöveg marad balra tördelve */
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.checkbox-group label {
  font-size: 12px;
  line-height: 1.4;
}

/* GDPR link */
.checkbox-group a {
  color: #2e7d32;
  text-decoration: underline;
}

.checkbox-group a:hover {
  opacity: 0.8;
}

/* ===== ÜZENETEK ===== */

.message {
  display: none;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 12px;
  font-size: 13px;
  border-radius: 4px;
}

.error-message {
  background: #ffecec;
  color: #c62828;
  border: 1px solid #ffcdd2;
}

.success-message {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

.msg-icon {
  font-size: 14px;
}

/* ===== MOBIL ===== */

@media (max-width: 640px) {

  .newsletter-row {
    flex-direction: column;
  }

  .footer-newsletter button {
    width: 100%;
  }

}


/* DESKTOP méret limit */
@media (min-width: 641px) {

  .name-field {
    flex: 0 0 220px;
    max-width: 220px;
  }

  .email-field {
    flex: 0 0 220px;
    max-width: 220px;
  }

  /* sor középre */
  .newsletter-row {
    justify-content: center;
  }

}