/* 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;
  }
}

/* Volunteer portal */
.vp-wrap{max-width:980px;margin:0 auto;padding:32px 16px 64px}.vp-auth{max-width:460px}.vp-card{background:#fff;border:1px solid #dbe3ed;border-radius:10px;padding:22px;margin-bottom:18px}.vp-card h1,.vp-card h2{color:#173b67;margin:0 0 8px}.vp-card h1{font-size:1.5rem}.vp-card h2{font-size:1.05rem}.vp-muted{color:#64748b;font-size:.88rem}.vp-field{display:grid;gap:5px;margin:18px 0}.vp-field label{font-size:.82rem;font-weight:700}.vp-field input{border:1px solid #cbd5e1;border-radius:8px;font:inherit;min-height:44px;padding:9px 11px}.vp-code{font-size:1.5rem!important;letter-spacing:.3em;text-align:center}.vp-grid{display:grid;grid-template-columns:2fr 1fr;gap:18px}.vp-item{border-top:1px solid #e5eaf0;padding:14px 0}.vp-item:first-child{border-top:0}.vp-title{color:#173b67;font-weight:800}.vp-meta{color:#64748b;font-size:.8rem;margin-top:3px}.vp-actions{align-items:center;display:flex;gap:8px;margin-top:10px}.vp-tag{background:#eef3f8;border-radius:6px;color:#475569;font-size:.72rem;font-weight:700;padding:3px 7px}.vp-header{align-items:start;display:flex;justify-content:space-between;gap:14px;margin-bottom:20px}.vp-header h1{color:#173b67;margin:0}.vp-header a{color:#64748b;font-size:.82rem}.vp-empty{color:#64748b;font-size:.86rem}.vp-privacy{border-top:1px solid #e5eaf0;color:#64748b;font-size:.76rem;margin-top:18px;padding-top:14px}@media(max-width:760px){.vp-grid{grid-template-columns:1fr}.vp-header{flex-direction:column}}
