/* Public newsletter typography must remain Heebo even when the active theme
   applies a more specific font to forms, buttons or status messages. */
.hitnl-signup,
.hitnl-signup *,
.hitnl-message,
.hitnl-message *,
.hit-nl-page,
.hit-nl-page *,
.hitnl-manage,
.hitnl-manage *,
[data-hitnl-signup],
[data-hitnl-signup] * {
  font-family: "Heebo", Arial, sans-serif !important;
}

.hitnl-signup {
  --hitnl-primary: #4c2d33;
  --hitnl-primary-deep: #2a191c;
  --hitnl-accent: #d4af37;
  --hitnl-accent-dark: #b18c25;
  direction: rtl;
  width: 100%;
  max-width: 900px;
  margin: 45px auto;
  font-family: "Heebo", Arial, sans-serif !important;
}

.hitnl-signup,
.hitnl-signup * {
  box-sizing: border-box;
}

.hitnl-signup .screen-reader-text {
  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;
}

.hitnl-signup__inner {
  position: relative;
  overflow: hidden;
  padding: clamp(25px, 4vw, 38px) clamp(18px, 5vw, 42px);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 16px;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 10% 0%, rgba(212, 175, 55, 0.13), transparent 32%),
    linear-gradient(135deg, var(--hitnl-primary) 0%, var(--hitnl-primary-deep) 100%);
  box-shadow: 0 14px 38px rgba(32, 18, 22, 0.24);
}

.hitnl-signup__ornament {
  display: block;
  width: 62px;
  height: 3px;
  margin: 0 auto 17px;
  border-radius: 999px;
  background: var(--hitnl-accent);
  box-shadow: 0 0 0 5px rgba(212, 175, 55, 0.08);
}

.hitnl-signup__copy h2 {
  margin: 0 0 7px;
  color: #fff;
  font-size: clamp(23px, 3vw, 31px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.hitnl-signup__copy p {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  line-height: 1.65;
}

.hitnl-signup__form {
  margin: 0;
}

.hitnl-signup__fields {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(210px, 1.25fr) minmax(150px, 0.95fr) 112px;
  gap: 9px;
  align-items: stretch;
}

.hitnl-signup__fields--no-name {
  grid-template-columns: minmax(240px, 1.4fr) minmax(170px, 1fr) 112px;
}

.hitnl-signup__fields--no-role {
  grid-template-columns: minmax(170px, 1fr) minmax(250px, 1.4fr) 112px;
}

.hitnl-signup__fields--no-name.hitnl-signup__fields--no-role {
  grid-template-columns: minmax(260px, 1fr) 112px;
}

.hitnl-field {
  display: block;
  min-width: 0;
}

.hitnl-field input,
.hitnl-field select {
  width: 100%;
  height: 46px;
  min-width: 0;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 7px;
  outline: 0;
  background-color: #fff;
  color: #2d2729;
  padding: 0 13px;
  font: inherit;
  font-size: 14px;
  line-height: 46px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.hitnl-field input::placeholder {
  color: #6c6265;
  opacity: 1;
}

.hitnl-field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-left: 34px;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234c2d33' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 10px center;
  background-size: 15px;
}

.hitnl-field input:hover,
.hitnl-field select:hover {
  border-color: rgba(212, 175, 55, 0.9);
}

.hitnl-field input:focus,
.hitnl-field select:focus {
  border-color: var(--hitnl-accent);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.22);
  transform: translateY(-1px);
}

.hitnl-submit {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 100%;
  min-width: 0;
  height: 46px;
  margin: 0;
  border: 1px solid #fff;
  border-radius: 7px;
  padding: 0 16px;
  background: #fff;
  color: var(--hitnl-primary);
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.hitnl-submit:hover {
  border-color: var(--hitnl-accent);
  background: var(--hitnl-accent);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.hitnl-submit:focus-visible {
  outline: 3px solid rgba(212, 175, 55, 0.72);
  outline-offset: 3px;
}

.hitnl-submit[disabled] {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.hitnl-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(76, 45, 51, 0.3);
  border-top-color: var(--hitnl-primary);
  border-radius: 50%;
  animation: hitnl-spin 0.7s linear infinite;
}

.hitnl-submit.is-loading .hitnl-submit__label {
  display: none;
}

.hitnl-submit.is-loading .hitnl-spinner {
  display: inline-block;
}

.hitnl-message {
  display: none;
  margin: 13px 0 0;
  padding: 10px 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.hitnl-message.is-success,
.hitnl-message.is-error {
  display: block;
}

.hitnl-message.is-success {
  color: #dff8e9;
  border-color: rgba(112, 223, 155, 0.4);
  background: rgba(28, 120, 66, 0.34);
}

.hitnl-message.is-error {
  color: #ffe5e5;
  border-color: rgba(255, 139, 139, 0.45);
  background: rgba(151, 31, 31, 0.34);
}

.hitnl-terms {
  margin: 13px 0 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  line-height: 1.65;
}

.hitnl-terms a {
  color: var(--hitnl-accent) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hitnl-terms a:hover,
.hitnl-terms a:focus {
  color: #fff !important;
}

.hitnl-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@keyframes hitnl-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 820px) {
  .hitnl-signup__fields,
  .hitnl-signup__fields--no-name,
  .hitnl-signup__fields--no-role,
  .hitnl-signup__fields--no-name.hitnl-signup__fields--no-role {
    grid-template-columns: 1fr 1fr;
  }

  .hitnl-submit {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .hitnl-signup {
    margin: 32px auto;
  }

  .hitnl-signup__inner {
    padding: 24px 15px;
    border-radius: 13px;
  }

  .hitnl-signup__copy h2 {
    font-size: 22px;
  }

  .hitnl-signup__copy p {
    font-size: 14px;
    margin-bottom: 17px;
  }

  .hitnl-signup__fields,
  .hitnl-signup__fields--no-name,
  .hitnl-signup__fields--no-role,
  .hitnl-signup__fields--no-name.hitnl-signup__fields--no-role {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hitnl-submit {
    grid-column: auto;
  }

  .hitnl-field input,
  .hitnl-field select,
  .hitnl-submit {
    height: 47px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hitnl-signup *,
  .hitnl-signup *::before,
  .hitnl-signup *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
