/* ICDMS newsletter form - matches theme.css (navy #0A0F22, gold #DF9B45) */

#newsletter .nl-intro {
  max-width: 36em;
  margin: 0 auto 3rem;
  line-height: 1.7;
  opacity: .9;
}

.nl-form label,
.nl-form legend {
  font-size: 14px;
  letter-spacing: 1px;
  color: rgba(255,255,255,.85);
  margin-bottom: 6px;
}

.nl-form legend { float: none; width: auto; padding: 0; }

.nl-hint {
  font-size: 12px;
  letter-spacing: 0;
  opacity: .6;
  margin-left: 6px;
}

.nl-form .form-control {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 4px;
  color: #fff;
  padding: 10px 12px;
  height: auto;
}
.nl-form .form-control::placeholder { color: rgba(255,255,255,.45); }
.nl-form .form-control:focus {
  background: rgba(255,255,255,.1);
  border-color: #DF9B45;
  box-shadow: 0 0 0 3px rgba(223,155,69,.25);
  color: #fff;
}
.nl-form .is-invalid,
.nl-form .is-invalid:focus { border-color: #ff8a80; }

/* Topic chips: real checkboxes, styled as toggles */
.nl-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.nl-topic { margin: 0; cursor: pointer; }
.nl-topic input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.nl-topic span {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: .5px;
  color: rgba(255,255,255,.85);
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.nl-topic:hover span { border-color: #DF9B45; }
.nl-topic input:checked + span {
  background: #DF9B45;
  border-color: #DF9B45;
  color: #0A0F22;
}
.nl-topic input:focus-visible + span {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.nl-consent label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  letter-spacing: 0;
  line-height: 1.5;
  cursor: pointer;
}
.nl-consent input { margin-top: 4px; flex: 0 0 auto; accent-color: #DF9B45; }
.nl-consent a { color: #DF9B45; text-decoration: underline; }

.nl-error {
  color: #ff8a80;
  font-size: 13px;
  min-height: 0;
  margin-top: 4px;
}

.nl-trap {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.nl-form button[disabled] { opacity: .5; cursor: wait; }

.nl-status {
  margin: 1.5rem 0 0;
  text-align: center;
  line-height: 1.6;
}
.nl-status.ok  { color: #fff; border: 1px solid #DF9B45; border-radius: 4px; padding: 14px; }
.nl-status.err { color: #ff8a80; }

@media (prefers-reduced-motion: reduce) {
  .nl-topic span { transition: none; }
}

/* Newsletter sits directly above the (also dark) Contact section: separate them */
#newsletter { padding-bottom: 5rem; }
#newsletter + #contact { border-top: 1px solid rgba(223,155,69,.35); padding-top: 5rem; }
