/* ========================================
   SURVEY TEMPLATE STYLES
   Template-specific styles for survey pages
======================================== */

.survey-with-video {
  width: 100%;
  max-width: 100%;
}

.survey-video-wrapper {
  margin: 0;
  padding: 0;
}

.survey-video-wrapper .video-card {
  margin: 0 !important;
  padding: 0 !important;
}

.survey-template {
  --survey-accent: #c62828;
  /* --survey-accent-soft was a soft pink (#ffe7e7) used for the radio
     :checked halo + :focus-visible ring. Removed for the same reason
     as the petition template — see petition-template.css top-of-file
     comment for the full rationale. */
  --survey-ink: #1f2d3d;
  --survey-muted: #4b5d6b;
  --survey-border: #e2e8f0;
  --survey-surface: #fff7f7;
  background: #ffffff;
}

.survey-content {
  display: block;
}

.survey-template h1 {
  color: var(--survey-ink);
}

/* Survey Content */
.survey-intro p {
  font-size: 1.1em;
  margin: 0.5em 0;
  color: var(--survey-muted);
}

/* Survey Form Overrides */
.survey-form {
  margin: 1.5em 0 0 0;
}

.survey-form-details {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 1.4s ease, max-height 1.4s ease, transform 1.4s ease;
}

.survey-form--revealed .survey-form-details {
  max-height: 2000px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.survey-form--revealed .survey-form-details .form-grid {
  margin-top: 1.5rem;
}

.survey-form-list-member {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 1.4s ease, max-height 1.4s ease, transform 1.4s ease;
}

.survey-form--list-member-ready .survey-form-list-member {
  max-height: 600px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  margin-top: 1.5rem;
}

.survey-form--list-member .survey-form-details {
  display: none;
}

.survey-form .form-group {
  display: flex;
  flex-direction: column;
}

.survey-cta-note {
  margin: 1rem 0 0.5rem;
  text-align: center;
  color: var(--survey-muted);
}

/* Survey Image Override */
.survey-image img {
  box-shadow: 0 10px 24px rgba(198, 40, 40, 0.12);
}

/* Survey Question Styles */
.survey-questions {
  margin-top: 1.5rem;
}

.survey-question {
  border: 1px solid var(--survey-border);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  background: #ffffff;
}

.survey-question-title {
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--survey-ink);
  font-size: 1.15rem;
  line-height: 1.35;
}

.survey-choice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.4rem 0;
  font-size: 1.15rem;
  line-height: 1.4;
  position: relative;
  padding-left: 2.1rem;
  cursor: pointer;
  color: var(--survey-ink);
}

.survey-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.survey-choice span {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.survey-choice span::before {
  content: "";
  position: absolute;
  left: -2.1rem;
  top: 0.1rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  border: 2px solid var(--survey-accent);
  background: #ffffff;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.survey-choice span::after {
  content: "✓";
  position: absolute;
  left: -1.8rem;
  top: 0.06rem;
  font-size: 0.95rem;
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.2s ease;
  font-weight: 700;
}

.survey-choice input:checked + span::before {
  background: var(--survey-accent);
  border-color: var(--survey-accent);
  /* No box-shadow halo on :checked — see petition-template.css for
     the rationale. Deep-red fill + checkmark is the selected cue. */
}

.survey-choice input:checked + span::after {
  opacity: 1;
}

.survey-choice input:focus-visible + span::before {
  /* Neutral cool-gray keyboard focus indicator — never tinted by the
     accent palette. ~3.5:1 contrast on white at 4px thickness passes
     WCAG 2.4.11 non-text contrast. */
  box-shadow: 0 0 0 4px #94a3b8;
}

.survey-choice:hover span::before {
  border-color: #a61f1f;
}

/* Survey-specific alert overrides */
.survey-success {
  text-align: center;
}

.survey-error {
  text-align: center;
}

/* Footer Content */
.survey-privacy {
  margin-top: 1em;
  font-size: 0.95em;
  color: #6a7a8a;
  text-align: center;
}

.survey-privacy p::before {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%236a7a8a' d='M144 144v48H304V144c0-44.2-35.8-80-80-80s-80 35.8-80 80zM80 192V144C80 64.5 144.5 0 224 0s144 64.5 144 144v48h16c35.3 0 64 28.7 64 64V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V256c0-35.3 28.7-64 64-64H80z'/%3E%3C/svg%3E");
  display: inline-block;
  width: 1rem;
  height: 1rem;
  margin-right: 0.45rem;
  vertical-align: -0.12em;
}

