@import url("/assets/css/base/tokens.css");

/* ===============================
   Newsletter (Video BG + Scroll Scale)
   =============================== *
/* === SECTION === */
.nl-hero {
  position: relative;
  isolation: isolate;
  z-index: 1;
  min-height: var(--nl-height);
  width: 100%;
  margin: 0;
  overflow: hidden;
  clip-path: inset(0 round var(--nl-radius));
  contain: paint;
  box-shadow: 0 0 0 1px rgba(6, 38, 54, 0.001) inset;
}

/* === VIDEO BG === */
.nl-video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  transform-origin: center center;
  will-change: transform;
}
.nl-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.72) saturate(1.05);
}
.nl-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* === CONTENT === */
.nl-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  text-align: center;
  gap: var(--nl-gap);
  padding: 36px 22px;
  color: var(--nl-text);
}
.nl-text {
  max-width: 1100px;
  width: 100%;
}
.nl-text h2 {
  margin: 0 0 8px;
  font-weight: 800;
  font-size: clamp(22px, 3vw, 36px);
}
.nl-text p {
  margin: 0;
  opacity: 0.9;
  font-size: clamp(13px, 2vw, 16px);
}

/* === FORM === */
.nl-form {
  width: 100%;
  max-width: 620px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  justify-content: center;
}
.nl-form input {
  min-width: 0;
  width: 100%;
  height: 46px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.95);
  padding: 0 14px;
  outline: none;
  font: inherit;
}
.nl-form button {
  height: 46px;
  padding: 0 16px;
  border-radius: 10px;
  border: 0;
  background: var(--nl-btn);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.06s ease, background 0.2s ease;
  white-space: nowrap;
}
.nl-form button:hover {
  background: var(--nl-btn-hover);
}
.nl-form button:active {
  transform: translateY(1px);
}

.nl-consent {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
}
.nl-consent a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.nl-ok {
  grid-column: 1 / -1;
  margin: 0;
  font-weight: 600;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  :root {
    --nl-height: 280px;
  }
  .nl-content {
    padding: 24px;
  }
  .nl-form {
    grid-template-columns: 1fr;
  }
  .nl-form button {
    width: 100%;
  }
}

/* === ERİŞİLEBİLİRLİK === */
@media (prefers-reduced-motion: reduce) {
  .nl-video-wrap {
    will-change: auto;
  }
}
