/* Niyojan — site styles (on top of Bootstrap 5) */

:root {
  --rotary-blue: #17458f;
  --rotary-gold: #f7a81b;
  --rotary-red: #c8102e;
  --niyojan-bg: #fff8ef;
  --ink: #1d2331;
  --muted: #6b7280;
}

html, body { background: var(--niyojan-bg); color: var(--ink); }

body { font-size: 16px; }

/* ---------- Brand strip ---------- */
.brand-strip {
  position: sticky; top: 0; z-index: 1030;
  background: #ffffff; border-bottom: 1px solid #e5e7eb;
  padding: 10px 14px;
}
.brand-strip .strip-inner {
  display: flex; align-items: center; gap: 14px;
  max-width: 1100px; margin: 0 auto;
}
.brand-strip .logo-rotary { height: 56px; width: auto; object-fit: contain; }
.brand-strip .logo-niyojan { height: 72px; width: auto; object-fit: contain; }
.brand-strip .divider {
  width: 1px; align-self: stretch; background: #e5e7eb; margin: 0 8px;
}
.brand-strip .strip-text {
  font-weight: 700; color: var(--rotary-red); letter-spacing: .2px;
  font-size: 16px; line-height: 1.1;
}
.brand-strip .strip-text small { color: var(--muted); font-weight: 500; display: block; margin-top: 2px; }

@media (max-width: 575.98px) {
  .brand-strip { padding: 8px 10px; gap: 8px; }
  .brand-strip .logo-rotary { height: 42px; }
  .brand-strip .logo-niyojan { height: 54px; }
  .brand-strip .strip-text { font-size: 13px; }
}

/* Logo placeholder fallback (when RD3234 PNG is missing) */
.logo-placeholder {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; min-width: 130px; padding: 0 10px; border-radius: 6px;
  background: var(--rotary-blue); color: #fff; font-weight: 700; font-size: 13px;
  letter-spacing: .3px;
}

/* ---------- Hero ---------- */
.hero {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 14px 0 16px;
}
.hero h1 {
  color: var(--rotary-red);
  font-weight: 800;
  letter-spacing: -0.4px;
  margin-bottom: 6px;
}
.hero .tagline { color: var(--muted); font-size: 15px; margin-bottom: 4px; }
.hero .niyojan-mark {
  display: block; margin: 0 0 8px; max-width: 180px; width: 100%; height: auto;
}
.hero img.portrait {
  max-width: 120px; border-radius: 10px; box-shadow: 0 4px 14px rgba(0,0,0,.08);
}
@media (max-width: 767.98px) {
  .hero { padding: 10px 0 12px; }
  .hero .niyojan-mark { margin: 0 auto 8px; max-width: 140px; }
  .hero img.portrait { max-width: 96px; }
  .hero .tagline { font-size: 14px; }
}

/* ---------- Cards ---------- */
.choice-card {
  border: 1px solid #e5e7eb; border-radius: 14px; padding: 28px 24px;
  background: #fff; transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  text-decoration: none; color: inherit; display: block; height: 100%;
}
.choice-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,.06); border-color: var(--rotary-blue); color: inherit; }
.choice-card .card-icon { font-size: 38px; line-height: 1; margin-bottom: 8px; }
.choice-card h3 { color: var(--rotary-blue); margin-bottom: 6px; font-weight: 700; }
.choice-card p { color: var(--muted); margin-bottom: 0; }

/* ---------- Forms ---------- */
.section-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 18px; }
.section-card h5 { color: var(--rotary-blue); margin-bottom: 12px; font-weight: 700; }

.attendee-row {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 8px;
  padding: 6px 10px; margin-bottom: 6px;
}
.attendee-row.has-error { border-color: var(--rotary-red); box-shadow: 0 0 0 2px rgba(200, 16, 46, .08); }
.attendee-row.is-submitter { border-color: var(--rotary-blue); background: #f4f8ff; }

.attendee-row .row-grid {
  display: grid;
  grid-template-columns: 200px minmax(190px, 1.6fr) minmax(180px, 1.4fr) 130px 110px;
  gap: 8px; align-items: center;
}
.attendee-row .position-label {
  font-weight: 700; color: var(--rotary-blue); font-size: 13px; line-height: 1.2;
  background: #eef3fb; padding: 6px 10px; border-radius: 6px; text-align: left;
}
.attendee-row .submitter-toggle {
  display: flex; align-items: center; gap: 6px; margin: 0;
  font-size: 13px; color: #374151; cursor: pointer;
  padding: 6px 8px; border-radius: 6px;
}
.attendee-row .submitter-toggle:hover { background: #f3f4f6; }
.attendee-row .submitter-toggle input[type=checkbox] { width: 18px; height: 18px; margin: 0; }

@media (max-width: 991.98px) {
  .attendee-row .row-grid {
    grid-template-columns: 130px 1fr;
  }
  .attendee-row .row-grid > select,
  .attendee-row .row-grid > input,
  .attendee-row .row-grid > .submitter-toggle { grid-column: 2; }
}
@media (max-width: 575.98px) {
  .attendee-row .row-grid {
    grid-template-columns: 1fr;
  }
  .attendee-row .row-grid > * { grid-column: 1; }
  .attendee-row .position-label { text-align: center; }
}

.club-locked {
  display: flex; align-items: center; gap: 10px;
  background: #f1f5fb; border: 1px solid #cfd8e8; padding: 10px 12px; border-radius: 8px;
  margin-top: 8px; font-weight: 600; color: var(--rotary-blue);
}
.club-locked .reset-link { color: var(--rotary-red); margin-left: auto; cursor: pointer; font-weight: 500; }

/* ---------- Sticky total bar ---------- */
.total-bar {
  position: sticky; bottom: 0; z-index: 1020;
  background: #fff; border-top: 1px solid #e5e7eb; padding: 10px 12px;
  display: flex; align-items: center; justify-content: center; gap: 18px;
}
.total-bar .total-amount { font-weight: 800; color: var(--rotary-red); font-size: 20px; }
.total-bar .btn { min-height: 44px; min-width: 200px; }

/* ---------- QR ---------- */
.qr-wrap {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: #fff8ef; border: 1px dashed #f3c47e; border-radius: 10px; padding: 14px;
}
.qr-wrap img { height: 200px; width: 200px; object-fit: contain; background: #fff; border-radius: 6px; }
.qr-wrap .qr-text { flex: 1 1 220px; }

/* ---------- Errors panel ---------- */
.errors-panel {
  background: #fff5f5; border: 1px solid #ffd6d6; color: #8b0000;
  border-radius: 8px; padding: 10px 12px; font-size: 14px; margin-bottom: 10px;
}
.errors-panel ul { margin: 0; padding-left: 18px; }

/* ---------- Admin ---------- */
.status-pill {
  display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700;
}
.status-pending { background: #fff3cd; color: #7a5d00; }
.status-verified { background: #d6f4dd; color: #1f7a3f; }
.status-rejected { background: #ffd6d6; color: #8b0000; }

/* ---------- Misc ---------- */
.tap-target { min-height: 44px; }
.text-rotary-red { color: var(--rotary-red); }
.text-rotary-blue { color: var(--rotary-blue); }
