/* Newsletter signup form styling
   ==============================
   Dark + gold panel that sits in place of the "Help build support"
   section across the site. Designed as a single framed card with a
   gold top accent so the form reads as one polished unit. */

.rrff-newsletter {
  padding: 4rem 1.5rem 4.5rem;
  text-align: center;
}
.rrff-newsletter-inner {
  max-width: 560px;
  margin: 0 auto;
}
.rrff-newsletter-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  color: hsl(43, 75%, 58%);
  margin: 0 0 14px;
}
.rrff-newsletter-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 700;
  line-height: 1.12;
  color: hsl(40, 20%, 96%);
  margin: 0 0 14px;
  letter-spacing: -0.5px;
}
.rrff-newsletter-lede {
  font-size: 15px;
  line-height: 1.6;
  color: hsl(40, 10%, 72%);
  max-width: 460px;
  margin: 0 auto 28px;
}

/* Framed card around the form */
.rrff-newsletter-card {
  position: relative;
  margin: 0 auto;
  max-width: 460px;
  background: linear-gradient(180deg, hsl(0,0%,8%) 0%, hsl(0,0%,6%) 100%);
  border: 1px solid hsla(0, 0%, 100%, 0.08);
  border-radius: 18px;
  padding: 28px 26px 24px;
  box-shadow:
    0 1px 0 hsla(0, 0%, 100%, 0.04) inset,
    0 24px 48px -24px hsla(0, 0%, 0%, 0.6);
  overflow: hidden;
}
/* Gold accent bar across the top of the card */
.rrff-newsletter-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    transparent 0%,
    hsla(43, 75%, 55%, 0.0) 5%,
    hsl(43, 75%, 55%) 35%,
    hsl(43, 80%, 65%) 50%,
    hsl(43, 75%, 55%) 65%,
    hsla(43, 75%, 55%, 0.0) 95%,
    transparent 100%);
}

.rrff-newsletter-form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rrff-newsletter-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.rrff-newsletter-field label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: hsl(40, 12%, 75%);
  padding-left: 2px;
}
.rrff-newsletter-field label .rrff-optional {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: hsl(40, 8%, 55%);
  margin-left: 4px;
}

.rrff-newsletter-input-wrap {
  position: relative;
}
.rrff-newsletter-input-wrap .rrff-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: hsl(40, 10%, 55%);
  pointer-events: none;
}

.rrff-newsletter-field input {
  width: 100%;
  background: hsl(0, 0%, 11%);
  border: 1px solid hsla(0, 0%, 100%, 0.10);
  border-radius: 10px;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 15px;
  color: hsl(40, 20%, 96%);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.rrff-newsletter-input-wrap--icon input {
  padding-left: 44px;
}
.rrff-newsletter-field input::placeholder {
  color: hsl(40, 8%, 48%);
}
.rrff-newsletter-field input:hover {
  border-color: hsla(0, 0%, 100%, 0.20);
}
.rrff-newsletter-field input:focus {
  outline: 0;
  border-color: hsl(43, 75%, 55%);
  background: hsl(0, 0%, 13%);
  box-shadow: 0 0 0 4px hsla(43, 75%, 55%, 0.14);
}
.rrff-newsletter-field input:focus + .rrff-icon,
.rrff-newsletter-input-wrap:focus-within .rrff-icon {
  color: hsl(43, 75%, 58%);
}

/* Override Chrome / Safari autofill yellow */
.rrff-newsletter-field input:-webkit-autofill,
.rrff-newsletter-field input:-webkit-autofill:hover,
.rrff-newsletter-field input:-webkit-autofill:focus,
.rrff-newsletter-field input:-webkit-autofill:active {
  -webkit-text-fill-color: hsl(40, 20%, 96%) !important;
  -webkit-box-shadow: 0 0 0 100px hsl(0, 0%, 11%) inset !important;
  box-shadow: 0 0 0 100px hsl(0, 0%, 11%) inset !important;
  caret-color: hsl(40, 20%, 96%);
  transition: background-color 9999s ease-out 0s;
}

.rrff-newsletter-submit {
  position: relative;
  background: linear-gradient(180deg, hsl(43, 80%, 60%) 0%, hsl(43, 75%, 52%) 100%);
  color: hsl(0, 0%, 4%);
  border: 0;
  border-radius: 9999px;
  padding: 15px 24px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, filter 0.18s;
  width: 100%;
  margin-top: 4px;
  box-shadow: 0 8px 20px -8px hsla(43, 75%, 50%, 0.55);
}
.rrff-newsletter-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 12px 26px -8px hsla(43, 75%, 50%, 0.65);
}
.rrff-newsletter-submit:active {
  transform: translateY(0);
  filter: brightness(0.98);
}
.rrff-newsletter-submit .rrff-arrow {
  display: inline-block;
  margin-left: 6px;
  transition: transform 0.18s;
}
.rrff-newsletter-submit:hover .rrff-arrow {
  transform: translateX(3px);
}

/* Trust row under the button */
.rrff-newsletter-trust {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.rrff-newsletter-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: hsl(40, 8%, 60%);
  letter-spacing: 0.3px;
}
.rrff-newsletter-trust svg {
  width: 13px;
  height: 13px;
  color: hsl(43, 75%, 58%);
  flex-shrink: 0;
}

.rrff-newsletter-note {
  font-size: 12.5px;
  color: hsl(40, 8%, 55%);
  margin: 18px 0 0;
  letter-spacing: 0.2px;
  text-align: center;
}

@media (max-width: 540px) {
  .rrff-newsletter {
    padding: 3rem 1rem 3.5rem;
  }
  .rrff-newsletter-card {
    padding: 24px 20px 22px;
  }
}
