/**
 * OSS Newsletter Section — ps_emailsubscription
 * Background: #273776 | Full-width breakout | Centered content
 * Mobile-first responsive layout
 */

@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@600&family=Playfair+Display:wght@400&display=swap");

/* ─── Full-width breakout from Bootstrap container ─── */
.oss-newsletter-section {
  background-color: #273776;
  /* Break out of any parent .container using the 50% calc trick */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: 0;
  margin-bottom: 0;
  box-sizing: border-box;
  /* Slightly less top / more bottom to balance parent/wrapper spacing above */
  padding-top: 40px;
  padding-bottom: 64px;
  padding-left: 20px;
  padding-right: 20px;
  text-align: center;
  /* Prevent inherited column float/flex behaviour */
  float: none;
  flex: none;
}

/* Even vertical spacing: section padding only, no extra margin at edges */
.oss-newsletter-section > *:first-child {
  margin-top: 0;
}
.oss-newsletter-section > *:last-child {
  margin-bottom: 0;
}

/* ─── Inner content wrapper — constrain readable width ─── */
.oss-newsletter-inner {
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
}

/* ─── Row 1: Heading ─── */
.oss-newsletter-section .oss-newsletter-heading {
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: 50px;
  line-height: 67px;
  color: #ffffff;
  margin: 0 0 14px;
  letter-spacing: -0.2px;
}

/* ─── Row 2: Paragraph ─── */
.oss-newsletter-section .oss-newsletter-paragraph {
  font-family: "Manrope", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 24px;
  color: #ffffff;
  margin: 0 0 28px;
}

/* ─── Status / alert messages ─── */
.oss-newsletter-section .oss-newsletter-alert,
.oss-newsletter-section .block_newsletter_alert {
  display: block;
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 13px;
  margin-bottom: 16px;
  text-align: left;
  line-height: 1.4;
}

.oss-newsletter-section .oss-newsletter-success,
.oss-newsletter-section .alert-success {
  background-color: rgba(39, 174, 96, 0.18);
  color: #a0f0c4;
  border: 1px solid rgba(39, 174, 96, 0.35);
}

.oss-newsletter-section .oss-newsletter-error,
.oss-newsletter-section .alert-danger {
  background-color: rgba(231, 76, 60, 0.18);
  color: #ffb8b3;
  border: 1px solid rgba(231, 76, 60, 0.35);
}

/* ─── Row 3: Fields container — mobile: stacked column ─── */
.oss-newsletter-section .oss-newsletter-fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

/* ─── Inputs (higher specificity to override theme .block_newsletter form input rules) ─── */
.block_newsletter.oss-newsletter-section .oss-newsletter-input,
.oss-newsletter-section .oss-newsletter-input {
  width: 100%;
  height: 50px;
  padding: 0 25px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0;
  background-color: #ffffff;
  color: #1a1a2e;
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  outline: none;
  box-sizing: border-box;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.block_newsletter.oss-newsletter-section .oss-newsletter-input::placeholder,
.oss-newsletter-section .oss-newsletter-input::placeholder {
  font-family: "Manrope", sans-serif;
  color: #000000;
  opacity: 1;
}

.block_newsletter.oss-newsletter-section .oss-newsletter-input:focus,
.oss-newsletter-section .oss-newsletter-input:focus {
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}

/* ─── Subscribe button — same styling as hero banner (tvcmsslider) with yellow bg ─── */
.oss-newsletter-section .oss-newsletter-btn {
  width: 100%;
  height: 50px;
  padding: 4px 25px;
  background-color: #ffc55d;
  color: #000000;
  border: none;
  border-radius: 0;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
  text-shadow: none;
  transition: background-color 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.oss-newsletter-section .oss-newsletter-btn:hover,
.oss-newsletter-section .oss-newsletter-btn:focus {
  background-color: #000000;
  color: #ffffff;
  outline: none;
}

.oss-newsletter-section .oss-newsletter-btn:hover .oss-newsletter-btn-icon,
.oss-newsletter-section .oss-newsletter-btn:focus .oss-newsletter-btn-icon {
  color: #ffffff;
}

.oss-newsletter-section .oss-newsletter-btn-icon {
  display: inline-block;
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1;
}

/* ─── Tablet (≥576px): name + email side-by-side, button full-width below ─── */
@media (min-width: 576px) {
  .oss-newsletter-section .oss-newsletter-fields {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
  }

  .oss-newsletter-section .oss-newsletter-input {
    flex: 1 1 calc(50% - 10px);
    width: auto;
  }

  .oss-newsletter-section .oss-newsletter-btn {
    flex: 1 1 100%;
    width: 100%;
  }
}

/* ─── Desktop (≥768px): all three in a single row ─── */
@media (min-width: 768px) {
  .oss-newsletter-section {
    padding-top: 56px;
    padding-bottom: 72px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .oss-newsletter-section .oss-newsletter-heading::before {
    font-size: 30px;
  }

  .oss-newsletter-section .oss-newsletter-paragraph {
    font-size: 15px;
    margin-bottom: 32px;
  }

  .oss-newsletter-section .oss-newsletter-fields {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 20px;
    align-items: stretch;
  }

  .oss-newsletter-section .oss-newsletter-input {
    flex: 1 1 auto;
    width: auto;
  }

  .oss-newsletter-section .oss-newsletter-btn {
    flex: 0 0 auto;
    width: auto;
  }
}

/* ─── GDPR / extra hook output — keep readable on dark bg ─── */
.oss-newsletter-section #gdpr_consent_ps_emailsubscription,
.oss-newsletter-section .gdpr-consent {
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  margin-top: 12px;
  text-align: left;
}

.oss-newsletter-section #gdpr_consent_ps_emailsubscription a,
.oss-newsletter-section .gdpr-consent a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
}
