/* IH Newsletter Box */

.ih-newsletter {
  max-width: 640px;
  margin: 56px auto;
  background-color: #ffffff;
  background-image:
    radial-gradient(circle at 0% 100%, rgba(255, 194, 26, 0.18), transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(42, 159, 216, 0.16), transparent 42%),
    radial-gradient(circle at 100% 0%, rgba(214, 40, 59, 0.10), transparent 35%);
  border: 2px solid #e1e5ec;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  color: #1d2433;
}

.ih-newsletter__strip { display: flex; height: 8px; }
.ih-newsletter__strip span { flex: 1; }
.ih-newsletter__strip span:nth-child(1) { background: #d6283b; }
.ih-newsletter__strip span:nth-child(2) { background: #ffc21a; }
.ih-newsletter__strip span:nth-child(3) { background: #2a9fd8; }
.ih-newsletter__strip span:nth-child(4) { background: #2bb673; }
.ih-newsletter__strip span:nth-child(5) { background: #8a4fd8; }

.ih-newsletter__inner { padding: 28px 34px 24px; }

.ih-newsletter__title {
  position: relative;
  font-family: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", system-ui, sans-serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: #1d2433;
  text-wrap: balance;
  overflow-wrap: normal;
  margin: 0 0 16px;
  padding-bottom: 20px;
}
.ih-newsletter__title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 120px;
  height: 16px;
  transform: translateX(-50%);
  background-color: var(--squiggle, #d6283b);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='16' viewBox='0 -2 120 16'%3E%3Cpath d='M2 7c12-6 22 6 34 0s22-6 34 0 22 6 34 0 10-4 14-2' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='16' viewBox='0 -2 120 16'%3E%3Cpath d='M2 7c12-6 22 6 34 0s22-6 34 0 22 6 34 0 10-4 14-2' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

.ih-newsletter__text {
  font-size: 18px;
  line-height: 1.5;
  color: #1d2433;
  max-width: 30em;
  margin: 0 auto 18px;
}

.ih-newsletter__privacy {
  font-size: 13px;
  line-height: 1.5;
  color: #4b5363;
  margin: 14px 0 0;
}
.ih-newsletter__privacy a { color: #3a579a; }

/* ----- Form: email + button on one row ----- */
.ih-newsletter__form {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: stretch;
  max-width: 480px;
  margin: 0 auto;
  padding: 0;
}
.ih-newsletter__form[hidden] { display: none; }

/* Visually hidden, still read by screen readers */
.ih-newsletter__label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Honeypot: hidden from people, visible to bots */
.ih-newsletter__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ih-newsletter .ih-newsletter__email {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  height: 52px;
  margin: 0;
  padding: 0 16px;
  font-size: 17px;
  color: #1d2433;
  background: #ffffff;
  border: 2px solid #cfd6e0;
  border-radius: 8px;
  box-sizing: border-box;
}
.ih-newsletter .ih-newsletter__email:focus {
  border-color: #2a9fd8;
  outline: none;
}

.ih-newsletter .ih-newsletter__button {
  flex: 0 0 auto;
  width: auto;
  height: 52px;
  margin: 0;
  padding: 0 24px;
  white-space: nowrap;
  line-height: 1;
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  background: #1d2433;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.ih-newsletter .ih-newsletter__button:hover { background: #3a4458; }
.ih-newsletter .ih-newsletter__button:disabled { opacity: 0.6; cursor: default; }

/* ----- Messages ----- */
.ih-newsletter__error {
  max-width: 480px;
  margin: 8px auto 0;
  font-size: 14px;
  text-align: left;
  color: #b81f30;
}
.ih-newsletter__error[hidden] { display: none; }

.ih-newsletter__done {
  display: none;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #1a7f45;
}
/* Shown by the script, or by the #ih-newsletter-done link after a no-script submit */
.ih-newsletter__done.is-visible,
.ih-newsletter__done:target { display: block; }
.ih-newsletter__done:target ~ .ih-newsletter__form { display: none; }

/* ----- Mobile ----- */
@media (max-width: 600px) {
  .ih-newsletter { margin: 40px auto; }
  .ih-newsletter__inner { padding: 24px 18px 20px; }
  .ih-newsletter__title { font-size: 23px; }
  .ih-newsletter__text { font-size: 17px; }
  .ih-newsletter__form { flex-direction: column; }
  .ih-newsletter .ih-newsletter__button { width: 100%; }
}
