/* ── Amenity Micro-Feedback Widget — Session 11B ── */

#amenity-vote-widget {
  margin-top: 48px;
  border: 1px solid var(--border-col, #e5e7eb);
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  overflow: hidden;
}

.av-inner {
  padding: 28px 24px;
}

.av-heading {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--headline, #1f2937);
  margin: 0 0 6px 0;
  text-align: center;
}

.av-subheading {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.88rem;
  color: var(--body-light, #6b7280);
  margin: 0 0 20px 0;
  text-align: center;
}

/* ── Checkbox Grid ── */

.av-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .av-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .av-grid {
    grid-template-columns: 1fr;
  }
}

.av-checkbox {
  display: block;
  cursor: pointer;
}

.av-check-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.av-check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border-col, #e5e7eb);
  border-radius: 10px;
  background: var(--surface, #fff);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.85rem;
  color: var(--body, #374151);
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  user-select: none;
}

.av-check-input:checked + .av-check-label {
  border-color: var(--teal, #0d9488);
  background: rgba(13, 148, 136, 0.06);
  box-shadow: 0 0 0 1px var(--teal, #0d9488);
  color: var(--headline, #1f2937);
  font-weight: 600;
}

.av-check-label:hover {
  border-color: var(--teal, #0d9488);
  background: rgba(13, 148, 136, 0.03);
}

.av-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.av-name {
  line-height: 1.3;
}

/* ── Submit Button ── */

.av-submit {
  display: block;
  margin: 0 auto;
  padding: 12px 32px;
  border: none;
  border-radius: 10px;
  background: var(--teal, #0d9488);
  color: #fff;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
}

.av-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.av-submit:not(:disabled):hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ── Honeypot (hidden) ── */

.av-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ── Confetti Canvas ── */

.av-confetti-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 10;
}

/* ── Bar Chart (Reveal State) ── */

.av-reveal .av-heading {
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.av-chart {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.av-bar-row {
  display: grid;
  grid-template-columns: minmax(120px, 200px) 1fr 42px;
  align-items: center;
  gap: 10px;
}

@media (max-width: 480px) {
  .av-bar-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .av-bar-track {
    height: 18px !important;
  }
}

.av-bar-label {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.82rem;
  color: var(--body, #374151);
  text-align: right;
  line-height: 1.2;
}

@media (max-width: 480px) {
  .av-bar-label {
    text-align: left;
    font-weight: 600;
  }
}

.av-bar-selected .av-bar-label {
  color: var(--teal, #0d9488);
  font-weight: 600;
}

.av-check-mark {
  color: var(--teal, #0d9488);
  font-weight: 700;
}

.av-bar-track {
  background: var(--bg-alt, #f3f4f6);
  border-radius: 6px;
  height: 22px;
  overflow: hidden;
}

.av-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal, #0d9488), #14b8a6);
  border-radius: 6px;
  min-width: 4px;
  transition: width 0.6s ease-out;
}

.av-bar-selected .av-bar-fill {
  background: linear-gradient(90deg, var(--teal, #0d9488), #0f766e);
}

.av-bar-pct {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--headline, #1f2937);
  text-align: right;
}

.av-voter-count {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.82rem;
  color: var(--body-light, #6b7280);
  text-align: center;
  margin: 8px 0 0 0;
}

.av-compare-cta {
  text-align: center;
  margin: 16px 0 0 0;
}

.av-compare-cta a {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.88rem;
  color: var(--teal, #0d9488);
  text-decoration: none;
}

.av-compare-cta a:hover {
  text-decoration: underline;
}

/* ── Thanks / Below Threshold ── */

.av-thanks {
  text-align: center;
  padding: 36px 24px;
}

/* ── Returning Visitor ── */

.av-returning-note {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.85rem;
  color: var(--body-light, #6b7280);
  text-align: center;
  margin: 0 0 4px 0;
  padding: 16px 24px 0;
}
