/* ═══════════════════════════════════════════════════
   Bangalow Men's Shed — Public Pages CSS
   ═══════════════════════════════════════════════════ */

:root {
  --primary:      #2c3e50;
  --accent:       #039e3a;
  --accent-dark:  #027a2d;
  --accent-light: #e8f5e9;
  --text-dark:    #1a1a1a;
  --text-gray:    #6b7280;
  --bg-light:     #f9fafb;
  --border:       #e5e7eb;
  --radius:       10px;
  --max-w:        680px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-light);
}

a { color: var(--accent); }

/* ── Page Header ─────────────────────────────────── */
.page-header {
  background: var(--primary);
  color: #fff;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.header-logo-clip {
  display: block;
  width: 44px;
  height: 40px;
  overflow: hidden;
}
.header-logo-clip img {
  height: 40px;
  width: auto;
  max-width: none;
  display: block;
}
.page-header div h1 { font-size: 1.1rem; font-weight: 600; }
.page-header div p  { font-size: .8rem; opacity: .7; }

/* ── Container ───────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px 20px 60px;
}

/* ── Card ────────────────────────────────────────── */
.form-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
  padding: 32px;
  margin-bottom: 20px;
}

/* ── Form ────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: .875rem;
  margin-bottom: 6px;
  color: var(--primary);
}
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-dark);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(3, 158, 58, .12);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }

/* ── Checkboxes ──────────────────────────────────── */
.checkbox-group {
  background: var(--bg-light);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
}
.checkbox-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .12s;
}
.checkbox-option:last-child { border-bottom: none; }
.checkbox-option:hover { background: var(--accent-light); }
.checkbox-option input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}
.checkbox-option .label-text { font-size: .95rem; line-height: 1.4; }
.checkbox-option .label-sub  { font-size: .8rem; color: var(--text-gray); margin-top: 2px; }

/* ── Conditional Fields ──────────────────────────── */
.conditional-section {
  overflow: hidden;
  max-height: 0;
  transition: max-height .35s ease, opacity .25s ease, margin .25s ease;
  opacity: 0;
  margin-top: 0;
}
.conditional-section.visible {
  max-height: 1400px;
  opacity: 1;
  margin-top: 20px;
}

/* ── Button ──────────────────────────────────────── */
.btn-submit {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s;
  margin-top: 8px;
}
.btn-submit:hover { background: var(--accent-dark); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; }

/* ── Alerts ──────────────────────────────────────── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: .9rem;
}
.alert-success { background: var(--accent-light); color: #1a5c2a; border: 1px solid #a8d5b5; }
.alert-error   { background: #fff5f5; color: #991b1b; border: 1px solid #fecaca; }

/* ── Success State ───────────────────────────────── */
.success-card {
  text-align: center;
  padding: 48px 32px;
}
.success-icon {
  width: 56px; height: 56px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 56px;
  text-align: center;
  margin: 0 auto 16px;
}
.success-card h2 { font-size: 1.4rem; color: var(--primary); margin-bottom: 8px; }
.success-card p  { color: var(--text-gray); }

/* ── Utility ─────────────────────────────────────── */
.hidden { display: none !important; }

/* ── Helper text ─────────────────────────────────── */
.field-hint { font-size: .78rem; color: var(--text-gray); margin-top: 4px; }
.required   { color: #dc3545; }

/* ── BSB / Account row ───────────────────────────── */
.bsb-row { display: grid; grid-template-columns: 120px 1fr; gap: 12px; }
