/* newsletter.css — Αρχική · ενότητα 8: Newsletter (κείμενο | φόρμα) */
.newsletter-cta { background: var(--bg-alt); }
.nl-grid {
  display: grid; grid-template-columns: 1fr; gap: var(--space-md);
  align-items: center;
}
@media (min-width: 56em) {
  .nl-grid { grid-template-columns: 1.1fr 1fr; gap: var(--space-2xl); }
}

.nl-title { margin-top: var(--space-2xs); }
.nl-sub { margin-top: var(--space-sm); color: var(--text-muted); max-width: 46ch; }

/* Το .nl-perk ζει μέσα στο .nl-side (μαζί με τη φόρμα) ώστε να στοιβάζεται
   φυσικά κάτω από το consent, ανεξάρτητα από το ύψος του αριστερού κειμένου. */
.nl-side { display: flex; flex-direction: column; }
.nl-perk {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .5em 1em; border: 1px solid var(--line); border-radius: 999px;
  color: var(--accent); font-weight: var(--weight-medium); font-size: var(--fs-300);
}
/* Desktop: 2 στήλες (κείμενο | nl-side). Το αριστερό κείμενο μένει πάνω, ενώ το
   δεξί μέρος (φόρμα + perk) κεντράρεται ΚΑΘΕΤΑ μέσα στο section για ισορροπία.
   Το perk κάθεται ακριβώς κάτω από τη φόρμα/consent. */
@media (min-width: 56em) {
  .nl-grid { align-items: start; }
  .nl-side { align-self: center; }
  .nl-perk { align-self: start; margin-top: var(--space-sm); }
}

/* ΔΙΟΡΘΩΣΗ MOBILE: μειωμένα κενά· το perk κάτω-κέντρο. */
@media (max-width: 55.999em) {
  .nl-grid { display: flex; flex-direction: column; gap: var(--space-sm); }
  .nl-side { gap: var(--space-sm); }
  .nl-perk { align-self: center; margin-top: 0; text-align: center; }
}

.nl-form { width: 100%; }
.nl-field { display: flex; gap: var(--space-2xs); }
.nl-input {
  flex: 1; min-width: 0; padding: .9em 1.1em; font-size: var(--fs-400);
  color: var(--text); background: color-mix(in srgb, var(--c-black) 55%, transparent);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color var(--dur-fast) var(--ease);
}
.nl-input::placeholder { color: var(--text-muted); }
.nl-input:focus-visible { border-color: var(--accent); outline: none; }
.nl-field .btn { white-space: nowrap; }

.nl-consent {
  display: flex; align-items: flex-start; gap: .6em; margin-top: var(--space-2xs);
  font-size: var(--fs-200); color: var(--text-muted);
}
.nl-consent input { margin-top: .15em; accent-color: var(--accent); flex: none; }
.nl-consent a { color: var(--accent); text-decoration: underline; }

/* ΔΙΟΡΘΩΣΗ: min-height: 1.4em κρατούσε κενό χώρο ΚΑΙ όταν το μήνυμα ήταν
   άδειο (πριν το submit) — αυτό πρόσθετε αχρείαστο ύψος. Μηδενικό όταν
   είναι άδειο, παίρνει φυσικό ύψος μόνο όταν γεμίσει με κείμενο. */
.nl-msg { margin-top: var(--space-2xs); font-size: var(--fs-300); }
.nl-msg:empty { margin-top: 0; }
.nl-msg.is-ok    { color: var(--accent-bright); }
.nl-msg.is-error { color: #e7a17a; }

@media (max-width: 30em) {
  .nl-field { flex-direction: column; }
  /* το κουμπί όσο περίπου η λέξη (content-width), κεντραρισμένο */
  .nl-field .btn { width: auto; align-self: center; }
}

/* ============================================================
   NEWSLETTER — branded modal επιτυχίας/σφάλματος
   ============================================================ */
.nl-modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-md);
  background: rgba(0,0,0,.6); backdrop-filter: blur(3px);
  animation: nlFade .2s ease;
}
.nl-modal-overlay[hidden] { display: none; }
@keyframes nlFade { from { opacity: 0; } to { opacity: 1; } }

.nl-modal {
  position: relative; width: min(420px, 100%);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
  text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.5);
  animation: nlPop .25s cubic-bezier(.2,.8,.2,1);
}
@keyframes nlPop { from { transform: translateY(12px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }

.nl-modal-close {
  position: absolute; top: 10px; right: 12px;
  background: none; border: none; color: var(--text-muted);
  font-size: 1.8rem; line-height: 1; cursor: pointer; padding: 0 .2em;
}
.nl-modal-close:hover { color: var(--accent); }

.nl-modal-logo { width: 150px; max-width: 60%; height: auto; margin: 0 auto var(--space-md); display: block; }

.nl-modal-icon {
  width: 64px; height: 64px; margin: 0 auto var(--space-sm);
  display: grid; place-items: center; border-radius: 50%;
}
.nl-modal-icon svg { width: 32px; height: 32px; }
.nl-modal.is-ok .nl-modal-icon { background: color-mix(in srgb, #2e7d32 22%, transparent); color: #7bd486; }
.nl-modal.is-error .nl-modal-icon { background: color-mix(in srgb, #c0392b 20%, transparent); color: #f0a59c; }

.nl-modal-title { font-family: var(--font-display); font-weight: var(--weight-display); font-size: var(--fs-600); margin: 0 0 var(--space-2xs); color: var(--text); }
.nl-modal-text { color: var(--text-muted); font-size: var(--fs-300); line-height: 1.6; margin: 0 0 var(--space-lg); }
.nl-modal-ok { min-width: 140px; justify-content: center; }
/* Κουμπί εγγραφής κάτω από το consent (full-width, ξεκάθαρη σειρά σε mobile) */
.nl-submit { width: 100%; margin-top: var(--space-sm); }
