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

:root {
  --navy: #020810;
  --red: #BF0A30;
  --white: #FFFFFF;
  --gold: #C9A84C;
  --text: #E8E6E1;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
}

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: var(--navy);
  color: var(--text);
  font-family: var(--font-body);
}

/* Dark scrollbars */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}
*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
*::-webkit-scrollbar-track {
  background: transparent;
}
*::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
}
*::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.25);
}

/* SECTIONS */
.section {
  display: none;
  width: 100%; height: 100%;
  position: absolute; top: 0; left: 0;
}
.section.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Scrollable sections */
.section--scroll.active {
  justify-content: flex-start;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* PETITION SECTION */
.petition-container {
  max-width: 720px;
  width: 100%;
  padding: 60px 28px 80px;
  margin: 0 auto;
}

.petition-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
}

.petition-counter {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--gold);
  letter-spacing: 0.06em;
}

.petition-counter span {
  font-size: 28px;
}

/* Petition document styling */
.petition-doc {
  border: 1px solid rgba(201,168,76,0.15);
  padding: 48px 40px;
  margin-bottom: 48px;
  position: relative;
  background: rgba(255,255,255,0.02);
}

.petition-doc::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold));
}

.petition-doc h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 36px);
  letter-spacing: 0.06em;
  color: var(--white);
  text-align: center;
  margin-bottom: 4px;
  line-height: 1.2;
}

.petition-doc h3 {
  font-family: var(--font-body);
  font-size: clamp(13px, 2vw, 16px);
  font-weight: 400;
  color: rgba(232,230,225,0.5);
  text-align: center;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.petition-doc h4 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: rgba(232,230,225,0.4);
  text-align: center;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 36px;
}

.petition-doc hr {
  border: none;
  border-top: 1px solid rgba(201,168,76,0.12);
  margin: 32px 0;
}

.petition-doc h5 {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.04em;
  color: var(--gold);
  margin-bottom: 16px;
}

.petition-doc p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  color: rgba(232,230,225,0.75);
  margin-bottom: 16px;
}

.petition-doc p strong {
  color: rgba(232,230,225,0.95);
  font-weight: 600;
}

.petition-doc .grievance {
  padding-left: 20px;
  border-left: 2px solid rgba(191,10,48,0.4);
  margin-bottom: 20px;
}

.petition-doc .grievance p:first-child strong {
  color: var(--white);
}

.petition-doc .declaration-item {
  padding-left: 20px;
  border-left: 2px solid rgba(201,168,76,0.3);
  margin-bottom: 16px;
}

.petition-doc .closing {
  text-align: center;
  font-style: italic;
  color: rgba(232,230,225,0.5);
  margin-top: 32px;
}

/* LANDING */
#landing {
  position: relative;
  overflow: hidden;
}

#flag-canvas {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -55%);
  width: min(90vw, 700px);
  height: min(60vw, 460px);
  z-index: 1;
}

.landing-overlay {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 24px;
  pointer-events: none;
  margin-top: min(42vw, 280px);
}

.landing-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 6vw, 64px);
  letter-spacing: 0.08em;
  color: var(--white);
  text-shadow: 0 2px 30px rgba(0,0,0,0.7), 0 0 80px rgba(10,22,40,0.9);
  line-height: 1.1;
  margin-bottom: 8px;
}

.landing-subtitle {
  font-size: clamp(13px, 2vw, 18px);
  font-weight: 400;
  color: rgba(232,230,225,0.7);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 40px;
  text-shadow: 0 1px 20px rgba(0,0,0,0.8);
}

.btn-row {
  display: flex;
  gap: 20px;
  pointer-events: all;
}

.btn {
  font-family: var(--font-display);
  font-size: clamp(16px, 2.5vw, 22px);
  letter-spacing: 0.12em;
  padding: 14px 36px;
  border: 2px solid var(--gold);
  background: var(--gold);
  color: var(--navy);
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: transparent;
  transition: background 0.3s ease;
  z-index: -1;
}

.btn:hover {
  background: transparent;
  color: var(--gold);
}

.btn:hover::before {
  background: transparent;
}

.btn--primary {
  border-color: var(--red);
  color: var(--white);
  background: var(--red);
}

.btn--primary::before {
  background: transparent;
}

.btn--primary:hover {
  background: transparent;
  color: #FFF;
}

/* PETITION SECTION */
#petition {
  background: var(--navy);
  overflow-y: auto;
}

#petition.active {
  display: block;
}

.petition-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.petition-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
}

/* Congressional bill styling */
.bill {
  background: #FAFAF7;
  border: 1px solid rgba(0,0,0,0.08);
  padding: 64px 56px;
  position: relative;
  font-family: var(--font-body);
  box-shadow: 0 4px 40px rgba(0,0,0,0.4), 0 1px 3px rgba(0,0,0,0.2);
}

@media (max-width: 600px) {
  .bill { padding: 40px 24px; }
}

/* Top ornamental line */
.bill::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #8B1A2B, #C9A84C, #8B1A2B);
}

/* Bill number / session line */
.bill-session {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #8B7355;
  margin-bottom: 8px;
}

/* Chamber / congress line */
.bill-chamber {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(14px, 2.5vw, 18px);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 28px;
}

/* Centered title block */
.bill-title {
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid #DDD;
}

.bill-title h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 32px);
  letter-spacing: 0.06em;
  color: #1A1A1A;
  margin-bottom: 12px;
  line-height: 1.2;
}

.bill-title .bill-purpose {
  font-size: clamp(13px, 2vw, 15px);
  font-style: italic;
  color: #666;
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto;
}

/* Submitted-to line */
.bill-submitted {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 36px;
}

/* Section headers */
.bill-section-header {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8B1A2B;
  text-align: center;
  margin: 40px 0 20px;
}

/* Horizontal rule */
.bill-rule {
  border: none;
  height: 1px;
  background: #DDD;
  margin: 32px auto;
  max-width: 180px;
}

/* Whereas clauses */
.whereas {
  font-size: 14px;
  line-height: 2;
  color: #333;
  margin-bottom: 18px;
  text-indent: 2em;
}

.whereas-label {
  font-style: italic;
  color: #8B1A2B;
  font-weight: 600;
  margin-right: 4px;
}

.whereas strong {
  color: #1A1A1A;
  font-weight: 600;
}

/* Resolved clauses */
.resolved {
  font-size: 14px;
  line-height: 2;
  color: #333;
  margin-bottom: 18px;
  padding-left: 2em;
  text-indent: -2em;
  margin-left: 2em;
}

.resolved-label {
  font-style: italic;
  font-weight: 600;
  color: #8B1A2B;
  margin-right: 4px;
}

.section-num {
  font-weight: 700;
  color: #1A1A1A;
  margin-right: 6px;
}

/* Preamble text */
.bill-preamble {
  font-size: 14px;
  line-height: 2;
  color: #333;
  margin-bottom: 14px;
  text-indent: 2em;
}

.bill-preamble em {
  color: #1A1A1A;
}

/* Closing / attestation */
.bill-closing {
  text-align: center;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #DDD;
}

.bill-closing p {
  font-size: 13px;
  font-style: italic;
  color: #888;
  line-height: 1.8;
  margin-bottom: 6px;
}

.bill-closing .bill-seal {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8B7355;
  margin-top: 20px;
}

/* Line numbers */
.bill-body {
  position: relative;
  counter-reset: bill-line;
  padding-left: 40px;
}

.bill-body .ln {
  counter-increment: bill-line;
  position: relative;
}

.bill-body .ln::before {
  content: counter(bill-line);
  position: absolute;
  left: -36px;
  font-size: 11px;
  color: #999;
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
  width: 20px;
  text-align: right;
}

@media (max-width: 600px) {
  .bill-body { padding-left: 0; }
  .bill-body .ln::before { display: none; }
}

/* SIGNING FORM */
.sign-card {
  background: #FAFAF7;
  border: 1px solid rgba(0,0,0,0.08);
  padding: 48px;
  margin-top: 40px;
  box-shadow: 0 4px 40px rgba(0,0,0,0.4), 0 1px 3px rgba(0,0,0,0.2);
  position: relative;
  z-index: 1;
}
@media (max-width: 600px) { .sign-card { padding: 32px 20px; } }
.sign-heading { font-family: var(--font-display); font-size: 28px; letter-spacing: 0.06em; color: #1A1A1A; text-align: center; margin-bottom: 6px; }
.sign-sub { font-size: 13px; color: #888; text-align: center; margin-bottom: 28px; }
.f-row { display: flex; gap: 16px; margin-bottom: 16px; }
@media (max-width: 600px) { .f-row { flex-direction: column; } }
.f-group { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.f-group label { font-size: 11px; font-weight: 600; color: #777; letter-spacing: 0.08em; text-transform: uppercase; }
.f-group input, .f-group select { font-family: var(--font-body); font-size: 15px; padding: 11px 12px; background: #FFF; border: 1px solid #DDD; color: #1A1A1A; transition: border-color 0.2s; }
.f-group input:focus, .f-group select:focus { outline: none; border-color: #8B1A2B; }
.f-group input::placeholder { color: #BBB; }
.f-group select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23999' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.f-checks { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 20px; }
.f-check { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: #555; cursor: pointer; line-height: 1.5; }
.f-check input[type="checkbox"] { appearance: none; width: 17px; height: 17px; min-width: 17px; margin-top: 2px; border: 1px solid #CCC; background: #FFF; cursor: pointer; position: relative; transition: all 0.2s; }
.f-check input[type="checkbox"]:checked { background: #8B1A2B; border-color: #8B1A2B; }
.f-check input[type="checkbox"]:checked::after { content: ''; position: absolute; top: 2px; left: 5px; width: 5px; height: 9px; border: solid #FFF; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.btn-submit { width: 100%; font-family: var(--font-display); font-size: 22px; letter-spacing: 0.1em; padding: 15px; border: none; background: #8B1A2B; color: #FFF; cursor: pointer; text-transform: uppercase; transition: background 0.2s; position: relative; z-index: 1; }
.btn-submit:hover { background: #6E1422; }
.btn-submit:disabled { opacity: 0.4; cursor: not-allowed; }
.f-note { font-size: 12px; color: #8B1A2B; text-align: center; margin-top: 14px; line-height: 1.6; font-weight: 600; }
.form-msg { text-align: center; padding: 12px; margin-bottom: 16px; font-size: 13px; }
.form-msg.err { background: #FDF0F0; border: 1px solid #E8BBBB; color: #993333; }
.form-msg.ok { background: #F0FDF0; border: 1px solid #BBE8BB; color: #339933; }

/* MAP SECTION */
#map {
  background: var(--navy);
}

.section-placeholder {
  text-align: center;
}

.section-placeholder h2 {
  font-family: var(--font-display);
  font-size: 48px;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  color: var(--white);
}

.section-placeholder p {
  color: rgba(232,230,225,0.6);
  margin-bottom: 30px;
  font-size: 16px;
}

.btn-back {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 28px;
  border: 1px solid rgba(232,230,225,0.3);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  letter-spacing: 0.06em;
  transition: all 0.25s ease;
}

.btn-back:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* SIGNATURE PAD */
.sig-pad-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sig-pad-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sig-pad-label label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(232,230,225,0.5);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sig-pad-clear {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: rgba(232,230,225,0.35);
  background: none;
  border: none;
  cursor: pointer;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.sig-pad-clear:hover {
  color: var(--gold);
}

.sig-pad-canvas {
  width: 100%;
  height: 140px;
  background: rgba(232,230,225,0.03);
  border: 1px solid rgba(232,230,225,0.12);
  cursor: crosshair;
  touch-action: none;
}

.sig-pad-hint {
  font-size: 11px;
  color: rgba(232,230,225,0.2);
  text-align: center;
}

/* Ambient glow behind flag */
.ambient-glow {
  position: absolute;
  top: 30%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(140,8,38,0.08) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

/* Fade-in animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.landing-title { animation: fadeUp 1s ease 0.3s both; }
.landing-subtitle { animation: fadeUp 1s ease 0.6s both; }
.btn-row { animation: fadeUp 1s ease 0.9s both; }

/* MAP SECTION */
#map {
  background: var(--navy);
  overflow-y: auto;
}
#map.active {
  display: block;
}
.map-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.map-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.map-total {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(232,230,225,0.5);
  letter-spacing: 0.04em;
}
.map-total span {
  font-weight: 700;
  color: var(--gold);
  font-size: 18px;
}
.map-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 48px);
  letter-spacing: 0.06em;
  color: var(--white);
  text-align: center;
  margin-bottom: 4px;
}
.map-sub {
  font-size: 14px;
  color: rgba(232,230,225,0.4);
  text-align: center;
  margin-bottom: 32px;
}
#map-container {
  position: relative;
}
#map-container svg .state {
  transition: fill 0.2s ease;
}
.state-detail {
  background: #FAFAF7;
  border: 1px solid rgba(0,0,0,0.08);
  padding: 32px;
  margin-top: 24px;
  position: relative;
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.state-detail h3 {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.06em;
  color: #1A1A1A;
  margin-bottom: 8px;
}
.detail-count {
  font-size: 16px;
  color: #555;
}
.detail-count span {
  font-weight: 700;
  font-size: 24px;
  color: #8B1A2B;
}
.state-detail-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  color: #AAA;
  cursor: pointer;
  line-height: 1;
}
.state-detail-close:hover {
  color: #333;
}

/* TERRITORY BOXES */
.territory-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.territory-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 16px;
  min-width: 100px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: border-color 0.2s;
}
.territory-box:hover {
  border-color: var(--gold);
}
.territory-code {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.08em;
}
.territory-count {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  margin: 4px 0 2px;
}
.territory-name {
  font-size: 10px;
  opacity: 0.7;
  text-align: center;
  letter-spacing: 0.04em;
}

/* SIGNATURE PAD */
.sig-pad {
  margin-bottom: 20px;
}
.sig-pad-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}
.sig-pad-header label {
  font-size: 11px;
  font-weight: 600;
  color: #777;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sig-pad-clear {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: #8B1A2B;
  background: none;
  border: none;
  cursor: pointer;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0;
}
.sig-pad-clear:hover {
  color: #6E1422;
}
.sig-pad-box {
  position: relative;
  border: 1px solid #DDD;
  background: #FFF;
  height: 140px;
  cursor: crosshair;
  transition: border-color 0.2s;
  overflow: hidden;
}
.sig-pad-box:hover,
.sig-pad-box.active {
  border-color: #8B1A2B;
}
.sig-pad-box canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.sig-pad-line {
  position: absolute;
  bottom: 36px;
  left: 24px;
  right: 24px;
  height: 1px;
  background: #E0E0E0;
  pointer-events: none;
}
.sig-pad-x {
  position: absolute;
  bottom: 40px;
  left: 14px;
  font-size: 13px;
  color: #CCC;
  pointer-events: none;
}
.sig-pad-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  color: #CCC;
  pointer-events: none;
  transition: opacity 0.3s;
}
.sig-pad-box.has-sig .sig-pad-hint {
  opacity: 0;
}
.f-optional-note {
  font-size: 12px;
  color: #8B7355;
  font-style: italic;
  text-align: center;
  margin-bottom: 12px;
  line-height: 1.5;
}

/* MILITARY RADIO GROUP */
.f-military {
  margin-bottom: 16px;
}
.f-military-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #777;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.f-radios {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.f-radio {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
}
.f-radio input[type="radio"] {
  appearance: none;
  width: 17px;
  height: 17px;
  min-width: 17px;
  border: 1px solid #CCC;
  border-radius: 50%;
  background: #FFF;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}
.f-radio input[type="radio"]:checked {
  border-color: #8B1A2B;
}
.f-radio input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #8B1A2B;
}

/* MAP STATS ROW */
.map-stats {
  display: flex;
  gap: 24px;
  align-items: center;
}

/* CAPITOL STENCIL BACKGROUND */
.capitol-bg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  height: 100vh;
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}

#petition .capitol-bg {
  position: fixed;
  top: 0;
  opacity: 0.07;
}

/* INFO BUTTON */
.info-btn {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  padding: 8px 24px;
  border-radius: 20px;
  border: 2px solid rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFF;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: all;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.info-btn:hover {
  background: rgba(255,255,255,0.95);
  color: #1A1A1A;
  border-color: #FFF;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  transform: translateX(-50%) scale(1.05);
}

/* INFO MODAL */
.info-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 100;
  display: none;
}
.info-modal.open {
  display: block;
}
.info-modal-backdrop {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.info-modal.open .info-modal-backdrop {
  opacity: 1;
}
.info-modal-sheet {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 90vh;
  background: #FAFAF7;
  border-radius: 16px 16px 0 0;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.info-modal.open .info-modal-sheet {
  transform: translateY(0);
}
.info-modal-handle {
  display: flex;
  justify-content: center;
  padding: 12px 0 8px;
  cursor: pointer;
  flex-shrink: 0;
}
.info-modal-handle span {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: #CCC;
}
.info-modal-content {
  flex: 1;
  overflow-y: auto;
  padding: 8px 48px 60px;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 600px) {
  .info-modal-content { padding: 8px 24px 60px; }
}
.info-modal-content h2 {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 0.06em;
  color: #1A1A1A;
  text-align: center;
  margin-bottom: 32px;
}
.info-modal-content h3 {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.04em;
  color: #8B1A2B;
  margin: 28px 0 10px;
}
.info-modal-content h3:first-of-type {
  margin-top: 0;
}
.info-modal-content p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 14px;
}

/* STATE DETAIL - EXPANDED */
.detail-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}
.detail-stat {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.detail-stat span {
  font-size: 24px;
  font-weight: 700;
  color: #8B1A2B;
  letter-spacing: 0;
  text-transform: none;
  margin-top: 2px;
}

/* SIGNER LIST */
.signer-list {
  max-height: 360px;
  overflow-y: auto;
  border: 1px solid #E8E8E4;
  background: #FFF;
}
.signer-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid #F0F0EC;
  font-size: 14px;
}
.signer-item:last-child {
  border-bottom: none;
}
.signer-name {
  color: #1A1A1A;
  font-weight: 600;
}
.signer-date {
  color: #AAA;
  font-size: 12px;
  flex-shrink: 0;
  margin-left: 16px;
}
.signer-empty, .signer-loading {
  text-align: center;
  padding: 24px;
  color: #AAA;
  font-size: 13px;
}
.signer-more {
  display: block;
  width: 100%;
  padding: 10px;
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: #8B1A2B;
  background: none;
  border: 1px solid #E8E8E4;
  cursor: pointer;
  transition: all 0.2s;
}
.signer-more:hover {
  background: #F5F5F2;
  border-color: #8B1A2B;
}

/* VERIFIED BADGE */
.signer-verified {
  display: inline-block;
  margin-left: 8px;
  font-size: 10px;
  font-weight: 700;
  color: #2A7A2A;
  background: #E8F5E8;
  padding: 2px 7px;
  border-radius: 3px;
  letter-spacing: 0.03em;
  vertical-align: middle;
}

/* SIGNATURE IMAGE IN SIGNER LIST */
.signer-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.signer-sig {
  height: 28px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  opacity: 0.8;
  flex-shrink: 0;
}

/* VERIFICATION INFO DIALOG */
.verify-dialog {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
}
.verify-dialog.open {
  display: flex;
}
.verify-dialog-backdrop {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
}
.verify-dialog-card {
  position: relative;
  background: #FAFAF7;
  max-width: 480px;
  width: calc(100% - 48px);
  padding: 40px 36px;
  box-shadow: 0 8px 50px rgba(0,0,0,0.5);
  z-index: 1;
  max-height: 90vh;
  overflow-y: auto;
}
@media (max-width: 600px) {
  .verify-dialog-card { padding: 28px 20px; }
}
.verify-dialog-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.06em;
  color: #1A1A1A;
  text-align: center;
  margin-bottom: 12px;
}
.verify-dialog-card > p {
  font-size: 14px;
  color: #666;
  text-align: center;
  line-height: 1.7;
  margin-bottom: 24px;
}
.verify-dialog-benefits {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}
.verify-dialog-benefit {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.verify-dialog-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #E8F5E8;
  color: #2A7A2A;
  border-radius: 50%;
  font-size: 14px;
}
.verify-dialog-benefit strong {
  display: block;
  font-size: 14px;
  color: #1A1A1A;
  margin-bottom: 3px;
}
.verify-dialog-benefit p {
  font-size: 13px;
  color: #777;
  line-height: 1.6;
  margin: 0;
}
.verify-dialog-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.verify-dialog-yes {
  width: 100%;
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.08em;
  padding: 14px;
  border: none;
  background: #2A7A2A;
  color: #FFF;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.2s;
}
.verify-dialog-yes:hover {
  background: #1E5E1E;
}
.verify-dialog-no {
  width: 100%;
  font-family: var(--font-body);
  font-size: 13px;
  padding: 10px;
  border: none;
  background: none;
  color: #AAA;
  cursor: pointer;
  transition: color 0.2s;
}
.verify-dialog-no:hover {
  color: #666;
}

/* POST-SUBMIT EXPERIENCE */
.post-submit-card {
  background: #FAFAF7;
  border: 1px solid rgba(0,0,0,0.08);
  padding: 48px 40px;
  margin-top: 40px;
  box-shadow: 0 4px 40px rgba(0,0,0,0.4), 0 1px 3px rgba(0,0,0,0.2);
  text-align: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 600px) { .post-submit-card { padding: 36px 20px; } }
.post-submit-check {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #2A7A2A;
  color: #FFF;
  font-size: 28px;
  line-height: 56px;
  margin: 0 auto 16px;
}
.post-submit-card h3 {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.06em;
  color: #1A1A1A;
  margin-bottom: 8px;
}
.post-submit-card h4 {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.04em;
  color: #8B1A2B;
  margin-bottom: 10px;
}
.post-submit-card > p, .post-submit-card .post-submit-hint {
  font-size: 15px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 12px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}
.post-submit-hint {
  font-style: italic;
  color: #999 !important;
  margin-top: 16px !important;
}
.post-submit-divider {
  width: 60px;
  height: 2px;
  background: #E0E0DC;
  margin: 28px auto;
}
.post-submit-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  max-width: 360px;
  margin: 20px auto 28px;
}
.post-submit-step {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: #444;
  line-height: 1.5;
}
.post-submit-step span {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #8B1A2B;
  color: #FFF;
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 28px;
  text-align: center;
}
.post-submit-btn {
  display: block;
  width: 100%;
  max-width: 360px;
  margin: 0 auto 12px;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px;
  background: #2A7A2A;
  color: #FFF;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s;
}
.post-submit-btn:hover {
  background: #1E5E1E;
}
.post-submit-skip {
  display: block;
  margin: 0 auto;
  font-family: var(--font-body);
  font-size: 13px;
  color: #AAA;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.post-submit-skip:hover {
  color: #666;
}

/* DO IT LATER - BOOKMARK LINK */
.do-later-link {
  display: flex;
  gap: 8px;
  max-width: 400px;
  margin: 0 auto;
}
.do-later-url {
  flex: 1;
  font-family: var(--font-body);
  font-size: 12px;
  padding: 10px 12px;
  border: 1px solid #DDD;
  background: #FFF;
  color: #555;
  cursor: pointer;
  min-width: 0;
}
.do-later-url:focus {
  outline: none;
  border-color: #8B1A2B;
}
.do-later-copy {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 16px;
  border: none;
  background: #8B1A2B;
  color: #FFF;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.do-later-copy:hover {
  background: #6E1422;
}

/* SIGNER SEARCH */
.signer-search {
  margin-bottom: 12px;
}
.signer-search input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14px;
  padding: 10px 14px;
  border: 1px solid #E0E0DC;
  background: #FFF;
  color: #1A1A1A;
  transition: border-color 0.2s;
}
.signer-search input:focus {
  outline: none;
  border-color: #8B1A2B;
}
.signer-search input::placeholder {
  color: #BBB;
}

/* Light background scrollbars */
.bill, .sign-card, .state-detail, .signer-list, .info-modal-content, .verify-dialog-card {
  scrollbar-color: rgba(0,0,0,0.15) transparent;
}
.bill::-webkit-scrollbar-thumb,
.sign-card::-webkit-scrollbar-thumb,
.state-detail::-webkit-scrollbar-thumb,
.signer-list::-webkit-scrollbar-thumb,
.info-modal-content::-webkit-scrollbar-thumb,
.verify-dialog-card::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.15);
}
.bill::-webkit-scrollbar-thumb:hover,
.sign-card::-webkit-scrollbar-thumb:hover,
.state-detail::-webkit-scrollbar-thumb:hover,
.signer-list::-webkit-scrollbar-thumb:hover,
.info-modal-content::-webkit-scrollbar-thumb:hover,
.verify-dialog-card::-webkit-scrollbar-thumb:hover {
  background: rgba(0,0,0,0.25);
}

/* SHARE BAR */
.share-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
  padding: 16px;
}
.share-label {
  font-size: 13px;
  color: rgba(232,230,225,0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.share-buttons {
  display: flex;
  gap: 8px;
}
.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(232,230,225,0.2);
  background: rgba(232,230,225,0.06);
  color: rgba(232,230,225,0.6);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-family: var(--font-body);
}
.share-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,168,76,0.08);
}
.share-x { font-family: serif; font-style: italic; }
.share-fb { font-family: var(--font-display); font-size: 18px; }

/* MOBILE RESPONSIVENESS */
@media (max-width: 480px) {
  .landing-overlay {
    margin-top: min(50vw, 260px);
  }
  .btn-row {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    padding: 0 20px;
  }
  .btn-row .btn {
    width: 100%;
    text-align: center;
  }
  .petition-wrap {
    padding: 40px 12px 60px;
  }
  .bill {
    padding: 32px 16px;
  }
  .bill-body {
    padding-left: 0;
  }
  .whereas, .resolved, .bill-preamble {
    text-indent: 1em;
    font-size: 13px;
  }
  .resolved {
    padding-left: 1em;
    text-indent: -1em;
    margin-left: 1em;
  }
  .sign-card {
    padding: 28px 16px;
  }
  .f-row {
    flex-direction: column;
  }
  .map-wrap {
    padding: 24px 12px 60px;
  }
  .map-nav {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .map-stats {
    flex-wrap: wrap;
    gap: 12px;
  }
  .territory-row {
    gap: 8px;
  }
  .territory-box {
    min-width: 70px;
    padding: 8px 10px;
  }
  .state-detail {
    padding: 20px 16px;
  }
  .detail-stats {
    flex-wrap: wrap;
    gap: 12px;
  }
  .share-bar {
    flex-direction: column;
    gap: 10px;
  }
  .info-modal-content {
    padding: 8px 16px 40px;
  }
  .info-modal-content h2 {
    font-size: 24px;
  }
  .verify-dialog-card {
    padding: 24px 16px;
  }
  .post-submit-card {
    padding: 28px 16px;
  }
  .do-later-link {
    flex-direction: column;
  }
}

@media (max-width: 360px) {
  .landing-title {
    font-size: 28px;
  }
  .btn {
    font-size: 16px;
    padding: 12px 20px;
  }
  .bill-title h2 {
    font-size: 20px;
  }
  .map-title {
    font-size: 28px;
  }
}

/* RECAPTCHA WIDGET */
.recaptcha-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
