/* ==========================================================================
   Kansas Property Tax Freedom Coalition — shared site styles
   Palette pulled from the logo: deep navy, periwinkle, and gold.
   ========================================================================== */

:root {
  --navy-dark: #0b1233;
  --navy: #141c4d;
  --navy-light: #223074;
  --periwinkle: #97a6f5;
  --gold: #e8b84b;
  --gold-dark: #a9823f;
  --white: #ffffff;
  --bg-light: #f4f5fa;
  --text-dark: #1a1a2e;
  --text-muted: #5a5f7a;

  --max-width: 1100px;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(11, 18, 51, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Verdana, Arial, sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--navy-light);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header / Nav ---------- */

.site-header {
  background: var(--navy-dark);
  border-bottom: 3px solid var(--gold);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--white);
}

.brand img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
}

.brand-text .brand-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
}

.brand-text span {
  font-size: 0.85rem;
  color: var(--periwinkle);
}

.brand:hover {
  text-decoration: none;
}

nav.main-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.main-nav-row {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

nav.main-nav a {
  display: inline-block;
  padding: 8px 14px;
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
}

nav.main-nav a:hover,
nav.main-nav a[aria-current="page"] {
  background: var(--navy-light);
  text-decoration: none;
}

/* Below this, the logo/title + 2x4 nav no longer fit side by side on one
   line — switch to the centered, stacked layout instead of letting it wrap
   awkwardly mid-row. */
@media (max-width: 900px) {
  .site-header .container {
    flex-direction: column;
    gap: 12px;
  }

  .brand {
    text-align: center;
  }

  .main-nav-row {
    flex-wrap: wrap;
  }
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(180deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.2rem;
  margin: 0 0 12px;
  color: var(--white);
}

.hero .tagline {
  color: var(--gold);
  font-size: 1.2rem;
  font-style: italic;
  margin: 0 auto 20px;
}

.hero p {
  max-width: 700px;
  margin: 0 auto 24px;
  color: var(--periwinkle);
}

.hero a:not(.btn) {
  color: var(--gold);
  text-decoration: underline;
  font-weight: 600;
}

.hero a:not(.btn):hover {
  color: var(--white);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-dark);
}

.btn-gold:hover {
  background: var(--gold-dark);
  text-decoration: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--gold);
}

.btn-outline:hover {
  background: rgba(232, 184, 75, 0.15);
  text-decoration: none;
}

/* Same idea as .btn-outline, but for light backgrounds (e.g. admin pages) —
   .btn-outline's white text is meant for the dark hero section and is
   nearly invisible anywhere else. */
.btn-outline-light {
  background: transparent;
  color: var(--navy);
  border-color: var(--gold-dark);
}

.btn-outline-light:hover {
  background: rgba(169, 130, 63, 0.1);
  text-decoration: none;
}

/* ---------- Page sections ---------- */

main {
  min-height: 60vh;
}

.section {
  padding: 50px 0;
}

.section h2 {
  color: var(--navy);
  font-size: 1.8rem;
  border-bottom: 3px solid var(--gold);
  display: block;
  width: fit-content;
  padding-bottom: 6px;
  margin-top: 0;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Admin panel keeps its original left-aligned layout throughout — the
   centered treatment below is only for public-facing pages. See the
   .admin-area body class in admin/includes/layout-header.php (and
   admin/login.php, admin/setup.php, which don't use that shared template). */
.admin-area .section h2 {
  display: inline-block;
  width: auto;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.section-alt {
  background: var(--white);
}

/* ---------- Public-page centering ---------- */

body:not(.admin-area) .section .container > p {
  text-align: center;
}

body:not(.admin-area) .card-grid {
  justify-content: center;
}

body:not(.admin-area) .card {
  text-align: center;
}

body:not(.admin-area) .contact-form {
  margin-left: auto;
  margin-right: auto;
}

body:not(.admin-area) .contact-form > div {
  text-align: center;
}

body:not(.admin-area) .contact-form input,
body:not(.admin-area) .contact-form textarea,
body:not(.admin-area) .contact-form select {
  text-align: left;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.card {
  background: var(--white);
  border: 1px solid #e1e3ef;
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.card h3 {
  color: var(--navy);
  margin-top: 0;
}

/* ---------- County list (Chapters index) ---------- */

.county-list {
  column-count: 4;
  column-gap: 30px;
  margin-top: 24px;
}

.county-list a {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid #e1e3ef;
  break-inside: avoid;
  font-weight: 600;
}

.county-list a[hidden] {
  display: none;
}

@media (max-width: 900px) {
  .county-list {
    column-count: 2;
  }
}

@media (max-width: 550px) {
  .county-list {
    column-count: 1;
  }
}

/* ---------- Gallery (Media: Events / Shareables pages) ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.gallery-grid figure {
  margin: 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  cursor: pointer;
}

.gallery-grid figcaption {
  padding: 10px 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- Lightbox (click a gallery photo to see it full-size) ---------- */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 18, 51, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  z-index: 1000;
}

.lightbox-overlay[hidden] {
  display: none;
}

.lightbox-overlay img {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 10px;
}

.lightbox-close:hover {
  color: var(--gold);
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(11, 18, 51, 0.6);
  border: none;
  color: var(--white);
  font-size: 3rem;
  line-height: 1;
  cursor: pointer;
  padding: 8px 18px;
  border-radius: var(--radius);
}

.lightbox-arrow:hover {
  color: var(--gold);
  background: rgba(11, 18, 51, 0.85);
}

.lightbox-prev {
  left: 12px;
}

.lightbox-next {
  right: 12px;
}

@media (max-width: 600px) {
  .lightbox-arrow {
    font-size: 2rem;
    padding: 6px 12px;
  }
}

/* ---------- Videos (Media: Videos page) ---------- */

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.video-grid figure {
  margin: 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.video-grid video {
  display: block;
  width: 100%;
}

.video-grid figcaption {
  padding: 10px 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.placeholder-box {
  background: var(--white);
  border: 2px dashed var(--gold-dark);
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
}

/* ---------- Chapter photo ---------- */

.chapter-photo {
  margin: 0 0 24px;
}

.chapter-photo img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.chapter-photo .placeholder-box {
  max-width: 320px;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* ---------- Chapter flyer ---------- */

.chapter-flyer {
  margin: 0 0 24px;
}

.chapter-flyer a {
  display: inline-block;
}

.chapter-flyer img {
  max-width: 220px;
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}

.chapter-flyer p {
  margin-top: 8px;
  font-size: 0.9rem;
}

/* ---------- Contact form ---------- */

.contact-form {
  max-width: 560px;
  display: grid;
  gap: 16px;
}

.contact-form label {
  font-weight: 600;
  color: var(--navy);
  display: block;
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccd0e6;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

/* display:none (not just moved off-screen) — real browser autofill and
   password-manager extensions can still fill an off-screen-but-visible
   field, silently submitting garbage into it and tripping the honeypot
   check on a genuine visitor's real submission. display:none is skipped
   by autofill everywhere that matters; a handful of naive bots that
   specifically dodge display:none is an acceptable tradeoff against
   silently losing real survey/contact/newsletter submissions. */
.hp-field {
  display: none;
}

.form-status {
  max-width: 560px;
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.form-status-success {
  background: #e6f4ea;
  color: #1e4620;
  border: 1px solid #a8d5b5;
}

.form-status-error {
  background: #fbe9e7;
  color: #611a15;
  border: 1px solid #e6a29a;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-dark);
  color: var(--periwinkle);
  padding: 30px 0;
  text-align: center;
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--gold);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.footer-newsletter {
  margin-bottom: 20px;
}

.footer-newsletter-label {
  margin-bottom: 10px;
  font-weight: 600;
}

.newsletter-inline-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
}

.newsletter-inline-form input[type="email"] {
  flex: 1 1 220px;
  padding: 10px 12px;
  border: 1px solid #ccd0e6;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
}

/* ---------- Store (product grid) ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.product-card {
  display: block;
  margin: 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.15s ease;
}

.product-card:hover {
  box-shadow: 0 4px 16px rgba(11, 18, 51, 0.2);
  text-decoration: none;
}

.product-card-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.product-card-image.placeholder-box {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  border-width: 0 0 2px;
}

.product-card-caption {
  padding: 12px 14px;
}

.product-card h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  color: var(--navy);
}

.product-card-price {
  font-weight: 600;
  color: var(--navy);
}

.product-card-variant-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- Product detail page ---------- */

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 400px) 1fr;
  gap: 32px;
  margin-top: 24px;
  align-items: start;
}

@media (max-width: 700px) {
  .product-detail {
    grid-template-columns: 1fr;
  }
}

.product-detail-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}

.product-detail-image.placeholder-box {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-detail-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
}

.product-picker-label {
  display: block;
  font-weight: 600;
  color: var(--navy);
  margin: 16px 0 6px;
}

.product-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-option-btn {
  background: var(--white);
  border: 2px solid #ccd0e6;
  border-radius: var(--radius);
  padding: 8px 14px;
  cursor: pointer;
  font: inherit;
}

.product-option-btn-selected {
  border-color: var(--gold);
  background: rgba(232, 184, 75, 0.15);
}

.product-option-btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.product-qty-input {
  width: 80px;
  padding: 8px 10px;
  border: 2px solid #ccd0e6;
  border-radius: var(--radius);
  font: inherit;
}

/* ---------- Cart page ---------- */

.cart-table td {
  vertical-align: middle;
}

.cart-subtotal {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 16px;
}

.tag-sold-out {
  display: inline-block;
  background: var(--gold-dark);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}

.tag-sale {
  display: inline-block;
  background: var(--navy-light);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}

/* ---------- Admin ---------- */

.admin-login-section {
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.admin-login-container {
  max-width: 420px;
  width: 100%;
}

.admin-form select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccd0e6;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
}

.admin-table-wrap {
  overflow-x: auto;
  margin-top: 16px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid #e6e8f2;
  white-space: nowrap;
}

.admin-table th {
  background: var(--bg-light);
  color: var(--navy);
}

/* Scoped to the walk-in sale "Current Sale" table only — on a narrow phone
   screen, five columns of nowrap text plus a number input don't fit
   without forcing a sideways scroll. Dropping the (redundant, since Line
   Total already shows it) Price column and letting the item name wrap
   gets the whole row to fit without scrolling. */
@media (max-width: 600px) {
  .sale-table th,
  .sale-table td {
    white-space: normal;
    padding: 8px 8px;
  }
  .sale-table .col-price {
    display: none;
  }
  .sale-table .qty-input {
    width: 52px !important;
  }
}

.link-button {
  background: none;
  border: none;
  padding: 0;
  color: var(--navy-light);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}

.link-button:hover {
  color: var(--gold-dark);
}

.variant-color-block {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  margin-top: 16px;
}

.variant-color-block h3 {
  margin-top: 0;
}

/* ---------- Learn (educational content) ---------- */

/* Long-form explanatory text reads poorly centered — .article overrides the
   site-wide centered-paragraph rule above for these pages only, and keeps
   line length comfortable regardless of how wide .container gets. */
.article {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}

/* Matches the specificity + comes later than the global centered-paragraph
   rule above (body:not(.admin-area) .section .container > p — three
   classes: .admin-area, .section, .container), so this actually wins
   instead of losing the specificity fight silently. */
body:not(.admin-area) .section .article p,
body:not(.admin-area) .section .article li {
  text-align: left;
}

.article h3 {
  color: var(--navy);
  margin-top: 40px;
}

.article h3:first-child {
  margin-top: 0;
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
}

.topic-card {
  display: block;
  color: inherit;
}

.topic-card:hover {
  text-decoration: none;
  border-color: var(--gold-dark);
}

.topic-card h3 {
  margin-top: 0;
}

.topic-card .btn {
  margin-top: 12px;
}

.compare-bars {
  margin: 24px 0;
}

.compare-bar-row {
  margin-bottom: 16px;
}

.compare-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.compare-bar-track {
  background: var(--bg-light);
  border-radius: 4px;
  overflow: hidden;
  height: 28px;
}

.compare-bar-fill {
  background: var(--gold-dark);
  height: 100%;
  display: flex;
  align-items: center;
  padding-left: 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
}

.data-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
}

.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e1e3ef;
}

.data-table th {
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
}

.data-table tr:last-child td {
  border-bottom: none;
  font-weight: 700;
}

/* Long data listings (the county directory, and each county's year-by-year
   history) shouldn't bold their last row — it isn't a totals row. */
#countyTable tr:last-child td,
.county-history tr:last-child td {
  font-weight: 400;
}

.pct-up { color: #b8781f; }
.pct-down { color: #2f8f5b; }
.pct-flat { color: var(--text-muted); }

.county-spark-wrap {
  margin: 24px 0;
}
.county-spark {
  width: 100%;
  height: auto;
  max-height: 120px;
  display: block;
  background: var(--white);
  border: 1px solid #e1e3ef;
  border-radius: var(--radius);
  padding: 10px;
}
.county-spark-wrap figcaption {
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.county-history td:first-child {
  font-variant-numeric: tabular-nums;
}

.callout {
  background: var(--white);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 24px 0;
  box-shadow: var(--shadow);
}

.callout p {
  margin: 0;
}

.callout p + p {
  margin-top: 10px;
}

.source-note {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #e1e3ef;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 4px 20px;
  margin-bottom: 14px;
}

.faq-item summary {
  padding: 16px 0;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
}

.faq-item summary::marker {
  color: var(--gold-dark);
}

.faq-item[open] summary {
  border-bottom: 1px solid #e1e3ef;
}

.faq-item p {
  padding: 16px 0;
}

.glossary-list dt {
  font-weight: 700;
  color: var(--navy);
  margin-top: 20px;
}

.glossary-list dt:first-child {
  margin-top: 0;
}

.glossary-list dd {
  margin-left: 0;
  margin-top: 4px;
}

/* ---------- Process flow diagram (Amendment Mechanics) ---------- */

.process-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 24px 0;
}

.process-step {
  background: var(--white);
  border: 2px solid var(--navy-light);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
  box-shadow: var(--shadow);
  flex: 1 1 140px;
}

.process-arrow {
  color: var(--gold-dark);
  font-size: 1.3rem;
  font-weight: 700;
  flex: 0 0 auto;
}

@media (max-width: 700px) {
  .process-flow {
    flex-direction: column;
    align-items: stretch;
  }

  .process-arrow {
    text-align: center;
    transform: rotate(90deg);
  }
}

/* ---------- Figure tags (Official estimate / Coalition calculation / etc.) ---------- */

.figure-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 2px 8px;
  border-radius: 20px;
  margin-right: 6px;
  white-space: nowrap;
}

.figure-tag-official {
  background: #dbe9db;
  color: #1e5c1e;
}

.figure-tag-coalition {
  background: #fde9c8;
  color: #8a5a00;
}

.figure-tag-hypothetical {
  background: #e3e6f5;
  color: var(--navy);
}

.term-origin {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

/* ---------- Survey ---------- */

.survey-map {
  display: block;
  width: 100%;
  max-height: 420px;
  margin-top: 8px;
}

.choice-group {
  border: 1px solid #e1e3ef;
  border-radius: var(--radius);
  padding: 12px 16px 16px;
  margin: 0 0 20px;
}

.choice-group legend {
  font-weight: 700;
  padding: 0 4px;
}

.choice-group label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 8px 14px 0 0;
  font-weight: 400;
  cursor: pointer;
}

.choice-group input[type="radio"] {
  width: auto;
  margin: 0;
}

.location-results {
  position: relative;
  z-index: 5;
  margin-top: 6px;
  max-height: 260px;
  overflow-y: auto;
  background: var(--white);
  border: 1px solid #e1e3ef;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.location-result {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border: none;
  border-bottom: 1px solid #eef0f7;
  background: none;
  font: inherit;
  cursor: pointer;
}

.location-result:last-child {
  border-bottom: none;
}

.location-result:hover,
.location-result:focus {
  background: var(--bg, #f4f5fa);
}

.location-selected {
  margin-top: 8px;
  font-weight: 600;
  color: var(--navy);
}

/* ---------- Password show/hide toggle (js/password-field.js) ---------- */

.password-field-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.password-field-wrap input[type="password"],
.password-field-wrap input[type="text"] {
  flex: 1 1 auto;
  padding-right: 56px;
}

.password-toggle-btn {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 4px 6px;
}

.password-toggle-btn:hover,
.password-toggle-btn:focus {
  text-decoration: underline;
}

/* ---------- Responsive ---------- */

@media (max-width: 700px) {
  .hero h1 {
    font-size: 1.6rem;
  }
}
