/* PANO newsletter sign-up form.
   Uses the site's own tokens; no new colours are introduced here. The input
   stays at 16px because anything smaller makes iOS zoom the page on focus. */
.pano-form {
  width: 100%;
  max-width: 480px;
  margin: 0;
  font-family: var(--font-body, var(--site-font-body, 'Inter', Arial, sans-serif));
}

.pano-form__label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light-2, #868686);
}

.pano-form__fields {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.pano-form__fields[hidden] { display: none; }

.pano-form__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 14px 16px;
  font: inherit;
  font-size: 16px;
  line-height: 1.3;
  color: var(--text-light-1, #1f1f1f);
  background: #fff;
  border: 1px solid var(--border-strong, #e2e6ee);
  border-radius: var(--radius-lg, 16px);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.pano-form__input::placeholder { color: #a8a8ae; }
.pano-form__input:hover { border-color: #cdd4e0; }
.pano-form__input:focus-visible,
.pano-form__input:focus {
  outline: none;
  border-color: var(--mint, var(--site-accent, #29b6f6));
  box-shadow: 0 0 0 3px rgba(41, 182, 246, .18);
}
.pano-form__input:read-only { background: #f6f7f9; }

.pano-form__btn {
  flex: none;
  padding: 14px 24px;
  border: 1px solid #0a0a0b;
  border-radius: var(--radius-lg, 16px);
  background: #0a0a0b;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, opacity .18s ease;
}
.pano-form__btn:hover:not(:disabled) { background: #2a2a2c; border-color: #2a2a2c; }
.pano-form__btn:focus-visible {
  outline: 2px solid var(--mint, var(--site-accent, #29b6f6));
  outline-offset: 3px;
}
.pano-form__btn:disabled { opacity: .6; cursor: default; }

/* off screen and out of the tab order, but still filled in by bots */
.pano-form__honey {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* messages sit under the email box, centred on it wherever the form is used */
.pano-form__status {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  color: var(--text-light-2, #868686);
}
.pano-form__status[hidden] { display: none; }
.pano-form__status.is-error { color: #c0392b; }
.pano-form__status.is-success { color: var(--accent-dark, #0277bd); font-weight: 500; }

/* the same form on a dark surface: the newsletter hero and the homepage block */
.pano-form--on-dark .pano-form__label { color: rgba(255, 255, 255, .6); }
.pano-form--on-dark .pano-form__btn {
  background: var(--mint, var(--site-accent, #29b6f6));
  border-color: var(--mint, var(--site-accent, #29b6f6));
  color: #06202c;
}
.pano-form--on-dark .pano-form__btn:hover:not(:disabled) { background: #4cc3f7; border-color: #4cc3f7; }
.pano-form--on-dark .pano-form__btn:focus-visible { outline-color: #fff; }
.pano-form--on-dark .pano-form__status { color: rgba(255, 255, 255, .6); }
.pano-form--on-dark .pano-form__status.is-error { color: #ff9b8f; }
.pano-form--on-dark .pano-form__status.is-success { color: var(--mint, var(--site-accent, #29b6f6)); }

@media (max-width: 560px) {
  .pano-form__fields { flex-direction: column; }
  .pano-form__btn { width: 100%; }
}
