/* KORA newsletter
   Loaded after styles.css so the component stays isolated from the main theme. */

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.newsletter-section {
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
  background:
    radial-gradient(circle at 12% 20%, rgba(207, 169, 94, 0.18), transparent 32rem),
    linear-gradient(135deg, #151816 0%, #0c0e0d 100%);
  color: #fff;
}

.newsletter-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 4.5rem);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(13, 15, 14, 0.72);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.newsletter-shell::after {
  content: "K";
  position: absolute;
  right: -0.05em;
  bottom: -0.28em;
  z-index: 0;
  font-size: clamp(12rem, 31vw, 28rem);
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 255, 255, 0.025);
  pointer-events: none;
}

.newsletter-copy,
.newsletter-form {
  position: relative;
  z-index: 1;
}

.newsletter-copy .eyebrow {
  color: #d0aa62;
}

.newsletter-copy h2 {
  max-width: 9ch;
  margin: 0 0 1rem;
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.newsletter-copy > p:last-child {
  max-width: 38rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.7;
}

.newsletter-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  padding: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.075);
  backdrop-filter: blur(14px);
}

.newsletter-fields input {
  min-width: 0;
  width: 100%;
  min-height: 54px;
  padding: 0.85rem 1rem;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: inherit;
}

.newsletter-fields input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-fields:focus-within {
  border-color: rgba(208, 170, 98, 0.75);
  box-shadow: 0 0 0 4px rgba(208, 170, 98, 0.12);
}

.newsletter-button {
  min-height: 54px;
  padding-inline: 1.4rem;
  border: 1px solid #d0aa62;
  background: #d0aa62;
  color: #111310;
  font-weight: 800;
  cursor: pointer;
}

.newsletter-button:hover,
.newsletter-button:focus-visible {
  background: #e1bf7a;
  border-color: #e1bf7a;
}

.newsletter-consent {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.84rem;
  line-height: 1.5;
  cursor: pointer;
}

.newsletter-consent input {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  margin-top: 0.18rem;
  accent-color: #d0aa62;
}

.newsletter-consent a {
  color: #f0d7a6;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.newsletter-note,
.newsletter-status {
  margin: 0.6rem 0 0;
  font-size: 0.82rem;
}

.newsletter-note {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-status {
  min-height: 1.25rem;
  color: #f0d7a6;
  font-weight: 700;
}

.newsletter-status.is-error {
  color: #ffb4ac;
}

@media (max-width: 820px) {
  .newsletter-shell {
    grid-template-columns: 1fr;
  }

  .newsletter-copy h2 {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .newsletter-shell {
    padding: 1.5rem;
    border-radius: 20px;
  }

  .newsletter-fields {
    grid-template-columns: 1fr;
    padding: 0.65rem;
  }

  .newsletter-button {
    width: 100%;
  }
}

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