/* Shared minimal overrides for public + staff UI.
   Keep this small; prefer utility classes in templates. */

:root {
  --nw-max-width: 1100px;
  --nw-sticky-top: 5.5rem;
  --nw-choice-radius: 0.75rem;
}

.container {
  max-width: var(--nw-max-width);
}

body {
  background: #f8f9fa;
}

/* Django default error rendering -> Bootstrap-ish */
.errorlist {
  margin: 0.35rem 0 0;
  padding-left: 0;
  list-style: none;
  color: var(--bs-danger);
  font-size: 0.925rem;
}

.errorlist li {
  margin: 0.1rem 0;
}

/* Public form layout */
.nw-form-shell {
  padding-bottom: 1rem;
}

.nw-form-section {
  border-radius: 1rem;
}

.nw-sticky-summary {
  position: sticky;
  top: var(--nw-sticky-top);
}

.nw-help-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: rgba(var(--bs-primary-rgb), 0.12);
  color: var(--bs-primary);
  font-weight: 700;
  line-height: 1;
  cursor: help;
  user-select: none;
}

.nw-money {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.nw-hero-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  color: var(--bs-secondary-color);
  font-size: 0.925rem;
}

.nw-hero-list li {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
}

.nw-hero-list li::before {
  content: "✓";
  color: var(--bs-primary);
  font-weight: 700;
}

.nw-step {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--bs-primary-rgb), 0.12);
  color: var(--bs-primary);
  font-weight: 800;
  flex: 0 0 auto;
  line-height: 1;
}

/* Water consumption choice tiles */
.nw-choice {
  position: relative;
}

input.nw-choice-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nw-choice-label {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 3.25rem;
  padding: 0.75rem 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--nw-choice-radius);
  background: #fff;
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
  cursor: pointer;
}

.nw-choice-label:hover {
  border-color: rgba(var(--bs-primary-rgb), 0.45);
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

input.nw-choice-input:focus + .nw-choice-label {
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

input.nw-choice-input:checked + .nw-choice-label {
  border-color: rgba(var(--bs-primary-rgb), 0.85);
  box-shadow: 0 0.5rem 1.25rem rgba(var(--bs-primary-rgb), 0.12);
  background: rgba(var(--bs-primary-rgb), 0.06);
}

.nw-choice-title {
  font-weight: 700;
}

/* Signature pad */
.nw-signature {
  width: 100%;
  max-width: 720px;
}

.nw-signature canvas {
  width: 100%;
  height: 220px;
  display: block;
  touch-action: none;
}

header.bg-white {
  position: sticky;
  top: 0;
  z-index: 1020;
}

main.container {
  background: transparent;
}

.pricing-note {
  font-size: 0.70rem;
  line-height: 1.2;
}
