/* ComCom Newsletter — page + homepage rail banner. */

:root {
  --comcom-newsletter-blue: #1c296a;
  --comcom-newsletter-light-blue: #5e92cd;
  --comcom-newsletter-pale: #e4eef8;
  --comcom-newsletter-red: #ff0000;
  --comcom-newsletter-text: #171923;
  --comcom-newsletter-muted: #626976;
}

/* Homepage 16:9 banner. */
.comcom-newsletter-banner {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 5px;
  color: #fff;
  text-decoration: none !important;
  background: var(--comcom-newsletter-blue);
  box-shadow: 0 1px 0 rgba(14, 21, 35, 0.04);
}

.comcom-newsletter-banner:hover,
.comcom-newsletter-banner:focus {
  color: #fff;
  text-decoration: none !important;
}

.comcom-newsletter-banner:focus-visible {
  outline: 3px solid var(--comcom-newsletter-red);
  outline-offset: 3px;
}

.comcom-newsletter-banner__image {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  margin: 0 !important;
  border: 0;
  transform: none !important;
  transition: none !important;
}

.comcom-newsletter-banner__fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  padding: 18px 20px;
  background:
    radial-gradient(circle at 84% 18%, rgba(255,255,255,.28), transparent 26%),
    linear-gradient(135deg, #1c296a 0%, #386da9 56%, #76b9b0 100%);
  font-family: "Montserrat", sans-serif;
}

.comcom-newsletter-banner__kicker {
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.comcom-newsletter-banner__fallback strong {
  max-width: 92%;
  font-size: clamp(20px, 2.1vw, 29px);
  line-height: 1.08;
  font-weight: 700;
  color: #fff;
}

.comcom-newsletter-banner__cta {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 7px 12px;
  border-radius: 4px;
  background: var(--comcom-newsletter-red);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
}

/* Dedicated page: deliberately simple, matching the compact IF newsletter model. */
.comcom-newsletter-page {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
  padding: 46px 0 82px;
  color: var(--comcom-newsletter-text);
  font-family: "Montserrat", sans-serif;
}

.comcom-newsletter-page__header {
  position: relative;
  margin: 0 0 34px;
  padding: 0 0 15px;
  border-bottom: 1px solid #ece6df;
}

.comcom-newsletter-page__header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 86px;
  height: 3px;
  background: var(--comcom-newsletter-red);
}

.comcom-newsletter-page__title {
  margin: 0;
  color: #0e1523;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.08;
  font-weight: 700;
}

.comcom-newsletter-page__content {
  width: min(100%, 720px);
  margin: 0 auto;
}

.comcom-newsletter-form-card {
  padding: 30px;
  border-radius: 6px;
  background: var(--comcom-newsletter-pale);
  box-shadow: 0 1px 0 rgba(14, 21, 35, .06);
}

.comcom-newsletter-form-card h2 {
  margin: 0 0 10px;
  color: var(--comcom-newsletter-blue);
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
}

.comcom-newsletter-form-card__intro {
  margin: 0 0 24px;
  color: #3b414a;
  font-size: 16px;
  line-height: 1.6;
}

.comcom-newsletter-form {
  display: grid;
  gap: 17px;
}

.comcom-newsletter-form__field {
  display: grid;
  gap: 7px;
}

.comcom-newsletter-form__field label {
  color: var(--comcom-newsletter-blue);
  font-size: 14px;
  font-weight: 700;
}

.comcom-newsletter-form__field input[type="email"] {
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 11px 13px;
  border: 1px solid #cbd8e5;
  border-radius: 4px;
  background: #fff;
  color: #171923;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  line-height: 1.4;
  box-shadow: none;
}

.comcom-newsletter-form__field input[type="email"]:focus {
  border-color: var(--comcom-newsletter-light-blue);
  outline: 2px solid rgba(94, 146, 205, .24);
  outline-offset: 1px;
}

.comcom-newsletter-form__consent {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  color: #4c535e;
  font-size: 12.5px;
  line-height: 1.5;
}

.comcom-newsletter-form__consent input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
}

.comcom-newsletter-form__consent a {
  color: var(--comcom-newsletter-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.comcom-newsletter-form__submit {
  min-height: 46px;
  padding: 11px 20px;
  border: 0;
  border-radius: 4px;
  background: var(--comcom-newsletter-red);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .18s ease, transform .18s ease;
}

.comcom-newsletter-form__submit:hover,
.comcom-newsletter-form__submit:focus {
  background: var(--comcom-newsletter-blue);
}

.comcom-newsletter-form__submit:active {
  transform: translateY(1px);
}

.comcom-newsletter-form-card__note {
  margin: 16px 0 0;
  color: var(--comcom-newsletter-muted);
  font-size: 12px;
  line-height: 1.55;
}

.comcom-newsletter-form-card__pending {
  padding: 14px 16px;
  border: 1px solid #c8d7e7;
  border-radius: 4px;
  background: rgba(255,255,255,.65);
  color: #343a43;
  font-size: 14px;
  line-height: 1.55;
}

.comcom-newsletter-form-card__pending p {
  margin: 0;
}

@media (max-width: 767px) {
  .comcom-newsletter-page {
    width: min(100% - 36px, 1140px);
    padding: 32px 0 56px;
  }

  .comcom-newsletter-page__header {
    margin-bottom: 28px;
  }

  .comcom-newsletter-form-card {
    padding: 22px 18px;
  }
}

/* Newsletter v1.5: exact MailUp XML result + stay-on-page feedback. */
.comcom-newsletter-form__website {
  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;
}

.comcom-newsletter-form__status {
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid #c8d7e7;
  border-radius: 4px;
  background: rgba(255, 255, 255, .78);
  color: #29323d;
  font-size: 13.5px;
  line-height: 1.55;
}

.comcom-newsletter-form__status[hidden] {
  display: none !important;
}

.comcom-newsletter-form__status--success {
  border-color: rgba(60, 132, 86, .34);
  background: #f2f8f4;
  color: #245537;
}

.comcom-newsletter-form__status--error {
  border-color: rgba(196, 45, 45, .32);
  background: #fff4f4;
  color: #8d2424;
}

.comcom-newsletter-form.is-submitting .comcom-newsletter-form__submit,
.comcom-newsletter-form__submit:disabled {
  cursor: wait;
  opacity: .76;
}



/* v1.6 safety: a stale cached iframe from an older release must never render. */
.comcom-newsletter-form__mailup-frame {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  border: 0 !important;
  visibility: hidden !important;
}
