/* Newsletter Module
   Standalone, reusable and responsive subscription banner. */

.newsletter {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 48px 52px;
  border-radius: var(--radius);
  background: #171b19;
  color: #fff;
}

.newsletter::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -80px;
  width: 320px;
  height: 320px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,99,86,.55), transparent 70%);
  filter: blur(10px);
}

.newsletter::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: inherit;
  background: radial-gradient(circle at 8% 120%, rgba(255,255,255,.05), transparent 55%);
}

.newsletter__intro {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  max-width: 440px;
}

.newsletter__icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16);
  color: #8fd6a4;
}

.newsletter__icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.newsletter__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  color: #bfcac2;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.newsletter__eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: #7f9486;
}

.newsletter h2 {
  color: #fff;
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 650;
  letter-spacing: -.015em;
  margin-bottom: 8px;
}

.newsletter__intro p {
  color: rgba(255,255,255,.65);
  font-size: 13px;
  line-height: 1.55;
}

.newsletter__form-wrap {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 460px;
}

.newsletter__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  min-height: 56px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.28);
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}

.newsletter__form:focus-within {
  border-color: rgba(143,214,164,.55);
  background: rgba(255,255,255,.16);
  box-shadow: 0 0 0 4px rgba(79,99,86,.28);
}

.newsletter__form input[type="email"] {
  width: 100%;
  min-width: 0;
  height: 56px;
  min-height: 56px;
  padding: 0 18px;
  background: transparent;
  border: 0;
  outline: 0;
  color: #fff;
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
}

.newsletter__form input::placeholder {
  color: rgba(255,255,255,.42);
}

.newsletter__form button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  min-height: 48px;
  padding: 0 18px;
  margin: 4px;
  border-radius: calc(var(--radius) - 1px);
  background: var(--cta);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background .2s ease, transform .2s ease;
}

.newsletter__form button:hover {
  background: var(--cta-hover);
  transform: translateY(-1px);
}

.newsletter__form button svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .25s cubic-bezier(.22,1,.36,1);
}

.newsletter__form button:hover svg {
  transform: translateX(3px);
}

.newsletter__consent {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 4px;
  color: rgba(255,255,255,.4);
  font-size: 11px;
  cursor: pointer;
}

.newsletter__consent input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.newsletter__consent:has(input:checked) { color: #8fd6a4; }

.newsletter__consent svg {
  width: 11px;
  height: 11px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.newsletter__status {
  padding-left: 4px;
  font-size: 11.5px;
  font-weight: 700;
  color: #8fd6a4;
  min-height: 14px;
}

@media (max-width: 900px) {
  .newsletter {
    flex-direction: column;
    align-items: flex-start;
    padding: 36px 24px;
  }
  .newsletter__form-wrap {
    width: 100%;
    min-width: 0;
  }
  .newsletter__form {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 56px;
  }
  .newsletter__form input[type="email"] {
    height: 56px;
    min-height: 56px;
    padding: 0 14px;
  }
  .newsletter__form button[type="submit"] {
    height: 48px;
    min-height: 48px;
    margin: 4px;
    padding: 0 14px;
    font-size: 12px;
  }
}

@media (max-width: 560px) {
  .newsletter {
    padding: 28px 16px;
  }
  .newsletter__intro {
    gap: 12px;
  }
  .newsletter__intro p {
    font-size: 12.5px;
    line-height: 1.5;
  }
  .newsletter__form {
    min-height: 56px;
  }
  .newsletter__form input[type="email"] {
    height: 56px;
    min-height: 56px;
    padding: 0 12px;
  }
  .newsletter__form button[type="submit"] {
    height: 48px;
    min-height: 48px;
    padding: 0 12px;
    font-size: 11px;
    gap: 4px;
  }
  .newsletter__form button svg {
    width: 13px;
    height: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .newsletter__form,
  .newsletter__form button,
  .newsletter__form button svg {
    transition: none;
  }
}
