/* ============================================================================
   Availability+ — shared base styles
   ============================================================================
   Matches the BSP platform conventions used by QSheet+ / Command+ / Q&A v2:
   neutral black/white branding, -apple-system font stack, BSP footer.
   ============================================================================ */

:root {
  --primary: #000000;
  --accent:  #ffffff;
  --fg:      #111;
  --bg:      #fff;
  --muted:   #6b7280;
  --border:  #e5e7eb;
  --danger:  #b91c1c;
  --success: #047857;
  --card-bg: #fafafa;
  --radius:  8px;
  --shadow:  0 1px 3px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 4rem;
}

header.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0 1.5rem;
  border-bottom: 2px solid var(--primary);
  margin-bottom: 1.5rem;
}
header.brand img {
  max-height: 48px;
  width: auto;
}
header.brand h1 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
}
header.brand h1 .event-name {
  display: block;
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 400;
  margin-top: 0.25rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.9rem;
  font-weight: 500;
}
label .required { color: var(--danger); }
label .hint { color: var(--muted); font-size: 0.8rem; font-weight: 400; }

input, select, textarea {
  font: inherit;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--fg);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

button {
  font: inherit;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  background: var(--primary);
  color: var(--accent);
  transition: opacity 0.15s;
}
button:hover:not(:disabled) { opacity: 0.88; }
button:disabled { opacity: 0.5; cursor: not-allowed; }

.banner {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.banner.hidden { display: none; }
.banner-error   { background: #fef2f2; border-color: #fecaca; color: var(--danger); }
.banner-success { background: #f0fdf4; border-color: #bbf7d0; color: var(--success); }
.banner-info    { background: #f8fafc; border-color: var(--border); color: var(--muted); }

.hidden { display: none !important; }

/* --- BSP footer ------------------------------------------------------------ */

.bsp-footer {
  text-align: center;
  padding: 14px 16px 24px;
  font-size: 0.72rem;
  color: #aaa;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.bsp-footer img {
  height: 22px;
  vertical-align: middle;
}
.bsp-footer-text {
  font-size: 0.72rem;
  color: #aaa;
}
