/* Shared base — imported by both programme.css and admin.css */
*, *::before, *::after { box-sizing: border-box; }
img, iframe { max-width: 100%; }

/* Form controls used by register_interest and other public forms */
.form-control {
  background: #fff;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  color: #0f172a;
  font: inherit;
  font-size: 0.95rem;
  min-height: 44px;
  padding: 0.55rem 0.8rem;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-control:focus {
  outline: none;
  border-color: #0b4a8f;
  box-shadow: 0 0 0 3px rgba(11, 74, 143, 0.1);
}

textarea.form-control { resize: vertical; min-height: 100px; }

.form-check-input {
  width: 1.2rem;
  height: 1.2rem;
  accent-color: #003366;
}

/* Shared button styles */
.button {
  align-items: center;
  background: #003366;
  border: 1.5px solid #003366;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  gap: 6px;
  justify-content: center;
  min-height: 44px;
  padding: 0.6rem 1.1rem;
  text-decoration: none;
  transition: background 0.15s;
}

.button:hover { background: #0b4a8f; color: #fff; }

.button--secondary {
  background: #eff6ff;
  border-color: #bcd4f0;
  color: #003366;
}

.button--secondary:hover { background: #dbeeff; color: #003366; }

.button--ghost {
  background: transparent;
  border-color: #cbd5e1;
  color: #64748b;
}

.button--ghost:hover { background: #f8fafc; color: #0f172a; }

.button--danger {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #be123c;
}

/* Register interest and other public page wrappers */
.pub-body {
  margin: 0;
  background: #f4f6f9;
  color: #0f172a;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
}

.pub-header {
  background: linear-gradient(160deg, #003366 0%, #0b5aa8 55%, #1565c0 100%);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 300;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .2);
}

.pub-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 10px;
}

.pub-header__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #fff;
}

.pub-header__anchor { font-size: 1.5rem; line-height: 1; }

.pub-header__name {
  font-size: clamp(0.92rem, 3.5vw, 1.15rem);
  font-weight: 800;
  white-space: nowrap;
}

.pub-header__actions {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  gap: 8px;
}

.pub-header__cta {
  flex-shrink: 0;
  background: rgba(255,255,255,0.18);
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 8px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 14px;
  text-decoration: none;
  transition: background 0.15s;
  white-space: nowrap;
}

.pub-header__cta:hover { background: rgba(255,255,255,0.3); color: #fff; }

.pub-header__cta--donate {
  background: #f7c948;
  border-color: #f7c948;
  color: #0f172a;
}

.pub-header__cta--donate:hover {
  background: #ffd966;
  border-color: #ffd966;
  color: #0f172a;
}

.pub-header__sub {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.65);
  padding: 0 16px 10px;
}

.pub-footer {
  background: #003366;
  color: rgba(255,255,255,0.65);
  padding: 24px 16px 16px;
  margin-top: 20px;
}

.pub-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.pub-footer__brand { font-weight: 700; color: #fff; font-size: 0.88rem; }

.pub-footer__links { display: flex; gap: 16px; }

.pub-footer__links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.15s;
}

.pub-footer__links a:hover { color: #fff; }

.pub-footer__copy { font-size: 0.72rem; margin: 0; text-align: center; }

.pub-alerts { padding: 10px 14px 0; }
.pub-alert {
  background: #eff6ff;
  border-left: 4px solid #0b4a8f;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

@media (max-width: 430px) {
  .pub-header__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .pub-header__actions {
    width: 100%;
  }

  .pub-header__cta {
    flex: 1 1 0;
    text-align: center;
  }
}
