/**
 * Footer "News and stories" signup (partials/footer/footer-signup.php).
 */

.c-footer-signup {
  display: grid;
  gap: 24px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

@media (min-width: 980px) {
  .c-footer-signup {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 48px;
    align-items: start;
  }
}

.c-footer-signup__title {
  margin: 0 0 8px;
  color: #fff;
}

.c-site-footer .c-footer-signup__text,
.c-site-footer .c-footer-signup__note {
  color: rgba(255, 255, 255, 0.8);
}

.c-footer-signup__text {
  margin: 0;
}

/* Fields and button on one row, wrapping on small screens. */
.c-footer-signup__fields {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

.c-footer-signup__field {
  flex: 1 1 150px;
  min-width: 0;
  margin: 0;
}

.c-footer-signup__field:nth-child(3) {
  flex-basis: 220px;
}

/* Labels stay for screen readers; placeholders show visually. */
.c-footer-signup__label {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.c-footer-signup__field input {
  display: block;
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #fff;
  border-radius: 0;
  background: #fff;
  color: #000;
  font-size: 16px; /* 16px stops iOS zooming in on focus */
  line-height: 48px;
  box-shadow: none;
}

.c-footer-signup__field input::placeholder {
  color: #6b6b6b;
  opacity: 1;
}

.c-footer-signup__field input:focus {
  outline: 3px solid #f4840d;
  outline-offset: 0;
}

.c-footer-signup__button {
  flex: 0 0 auto;
  min-height: 48px;
  margin: 0;
  white-space: nowrap;
}

@media (max-width: 599px) {
  .c-footer-signup__button {
    width: 100%;
  }
}

.c-site-footer .c-footer-signup__note {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.5;
}

.c-footer-signup__note a {
  color: #fff;
  text-decoration: underline;
}

.c-footer-signup__more {
  display: inline-block;
  margin-left: 4px;
  white-space: nowrap;
}

.c-footer-signup__more::after {
  content: " \2192";
}

@media (max-width: 599px) {
  .c-footer-signup__more {
    display: block;
    margin: 6px 0 0;
  }
}

/* Hear From Us page: note shown to visitors arriving from the footer signup. */
.c-signup-handoff {
  margin: 0 0 24px;
  padding: 16px 20px;
  border-left: 4px solid #009bcf;
  background: #e8f6fb;
  color: #000;
  scroll-margin-top: 24px;
}
