:root {
  --rotary-blue: #17458f;
  --rotary-blue-dark: #0e2f64;
  --rotary-gold: #f7a81b;
  --rotary-red:  #c8102e;
  --niyojan-bg:  #fff8ef;
  --ink:         #1d2331;
  --muted:       #6b7280;
  --card:        #ffffff;
  --border:      #e5e7eb;
}

html, body {
  background: var(--niyojan-bg);
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
}

/* ───────── Brand strip ───────── */
.brand-strip {
  position: sticky; top: 0; z-index: 1030;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 10px 14px;
}
.brand-strip .strip-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  max-width: 1100px; margin: 0 auto;
}
.brand-strip .strip-left   { justify-self: start;  min-width: 0; }
.brand-strip .strip-center { justify-self: center; display: flex; align-items: center; }
.brand-strip .strip-right  { justify-self: end;    display: flex; align-items: center; }

.brand-strip .logo-rotary  { height: 104px; width: auto; object-fit: contain; }
.brand-strip .logo-niyojan { height: 48px;  width: auto; object-fit: contain; }

.brand-strip .strip-text {
  font-weight: 700; color: var(--rotary-red); letter-spacing: .2px;
  font-size: 14px; line-height: 1.15;
  display: flex; flex-direction: column; gap: 6px;
}
.brand-strip .strip-text small {
  color: var(--muted); font-weight: 500; font-size: 11px; margin-top: 2px;
}

/* Session pill embedded inside the brand strip (replaces the separate band) */
.brand-strip .session-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--rotary-gold); color: var(--ink);
  font-weight: 700; font-size: 13px;
  padding: 4px 10px; border-radius: 999px;
  align-self: flex-start;
}
.brand-strip .session-pill .label {
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 700; color: rgba(29,35,49,.7);
}

@media (max-width: 575.98px) {
  .brand-strip { padding: 8px 10px; }
  .brand-strip .strip-inner { gap: 8px; }
  .brand-strip .logo-rotary  { height: 78px; }
  .brand-strip .logo-niyojan { height: 38px; }
  .brand-strip .strip-text   { font-size: 11px; }
  .brand-strip .strip-text small { font-size: 9.5px; }
  .brand-strip .session-pill { font-size: 11px; padding: 3px 8px; }
  .brand-strip .session-pill .label { font-size: 9px; }
}

/* Drop the legacy separate session band — pill now lives inside the strip */
.session-band { display: none; }

/* ───────── Session pill (under the brand strip) ───────── */
.session-band {
  background: linear-gradient(135deg, var(--rotary-blue) 0%, #1f5fb5 100%);
  color: #fff;
  padding: 14px 16px 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
}
.session-band .container { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.session-band .session-label {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .85;
}
.session-band .session-title {
  background: var(--rotary-gold);
  color: var(--ink);
  font-weight: 700;
  padding: 5px 14px; border-radius: 999px;
  font-size: 15px;
}

/* ───────── Lead + cards ───────── */
.lead-text { color: #4b5563; margin-bottom: 1rem; }

/* Worksheet instruction note — sits between the identity card and the first question */
.instruction-note {
  background: #fff8ef;
  border-left: 4px solid var(--rotary-gold);
  color: #5a4400;
  padding: 12px 14px;
  border-radius: 10px;
  margin: 4px 0 14px;
  font-size: 14.5px;
  line-height: 1.45;
}
.instruction-note strong { color: var(--rotary-red); }

.card {
  border: 0; border-radius: 14px;
  background: var(--card);
  box-shadow: 0 1px 3px rgba(0,0,0,.05), 0 1px 2px rgba(0,0,0,.03);
}
.card-body { padding: 16px; }

.form-label { font-weight: 600; color: #111827; }
.form-control, .form-control-lg { border-radius: 10px; }
.form-control:focus {
  border-color: var(--rotary-blue);
  box-shadow: 0 0 0 .2rem rgba(23,69,143,.15);
}
input[type="text"], input[type="email"], input[type="tel"], textarea, .form-control-lg {
  font-size: 16px; /* prevents iOS zoom */
}

/* ───────── Buttons ───────── */
.btn-primary {
  --bs-btn-bg: var(--rotary-blue);
  --bs-btn-border-color: var(--rotary-blue);
  --bs-btn-hover-bg: var(--rotary-blue-dark);
  --bs-btn-hover-border-color: var(--rotary-blue-dark);
  --bs-btn-active-bg: var(--rotary-blue-dark);
  --bs-btn-active-border-color: var(--rotary-blue-dark);
  border-radius: 12px; font-weight: 600;
}
.btn-outline-primary {
  --bs-btn-color: var(--rotary-blue);
  --bs-btn-border-color: var(--rotary-blue);
  --bs-btn-hover-bg: var(--rotary-blue);
  --bs-btn-hover-border-color: var(--rotary-blue);
  --bs-btn-active-bg: var(--rotary-blue);
  --bs-btn-active-border-color: var(--rotary-blue);
  border-radius: 10px; font-weight: 600;
}
.btn-lg { padding: .85rem 1rem; }

/* ───────── Pill groups (Yes / Somewhat / No) ───────── */
.btn-group-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.btn-group-pills .btn { border-radius: 10px; }

/* ───────── 1-5 confidence scale ───────── */
.scale-row { display: flex; flex-direction: column; gap: 6px; }
.scale-pills {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px;
}
.scale-pills .btn { border-radius: 10px; padding: .65rem 0; font-weight: 700; }
.scale-end { padding: 0 2px; }

@media (min-width: 576px) {
  .scale-row { flex-direction: row; align-items: center; gap: 12px; }
  .scale-pills { flex: 1; }
}

/* ───────── Messages ───────── */
.form-msg { padding: 12px 14px; border-radius: 10px; font-weight: 500; }
.form-msg.error { background: #fee2e2; color: #991b1b; }
.form-msg.ok    { background: #dcfce7; color: #166534; }

/* ───────── Footer ───────── */
.app-footer { padding: 20px 0 28px; color: var(--muted); }

/* ───────── Thanks page ───────── */
.thanks-mark {
  width: 84px; height: 84px; border-radius: 50%;
  background: #16a34a; color: #fff;
  font-size: 48px; line-height: 84px; margin: 16px auto 0;
}

/* iOS safe-area */
@supports (padding: max(0px)) {
  body { padding-bottom: max(env(safe-area-inset-bottom), 0px); }
  .brand-strip { padding-top: max(10px, env(safe-area-inset-top)); }
}
