/* Survey
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.survey_hero_wrapper {
  background-color: var(--peach);
  padding: 40px 0;
  padding-bottom:60px;
}

.survey_hero {
  max-width: 640px;
  margin: 0 auto;
}

.survey_hero h1 {
  font-family: "Ivar";
  font-weight: 400;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: var(--soft-black);
  text-wrap: pretty;
  margin-bottom: 18px;
}

.survey_hero p {
  font-family: "Inter", -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.4;
  color: var(--peach-text);
  text-wrap: pretty;
  margin-bottom:14px
}

@media (min-width: 900px) {
  .survey_hero_wrapper {
    padding: 70px 0;
    padding-bottom:80px;
  }

  .survey_hero h1 {
    font-size: 44px;
  }

  .survey_hero p {
    font-size: 19px;
  }
}

.survey_wrapper {
  padding: 30px 0;
}

.survey_card {
  max-width: 640px;
  margin: 0 auto;
}

.paper.survey_card {
  border-radius:14px;
  transform:translateY(-70px);
}

.survey_card .content {
  padding: 24px 20px;
}

@media (min-width: 900px) {
  .survey_card .content {
    padding: 40px;
  }
}

/* Progress
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.survey_progress {
  margin-bottom: 28px;
}

.survey_progress_text {
  display: block;
  font-family: "Matter SemiMono", monospace;
  font-size: 13px;
  color: var(--soft-grey);
  margin-bottom: 8px;
}

.survey_progress_track {
  height: 4px;
  border-radius: 2px;
  background-color: var(--gridline);
  overflow: hidden;
}

.survey_progress_fill {
  height: 100%;
  width: 0%;
  background-color: var(--forest);
  border-radius: 2px;
  transition: width 250ms ease;
}

/* Steps
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.survey_step[hidden] {
  display: none;
}

.survey_step h2 {
  font-family: "Ivar";
  font-weight: 400;
  font-size: 24px;
  letter-spacing: -0.3px;
  color: var(--soft-black);
  text-wrap: pretty;
  margin-bottom: 22px;
  outline: none;
}

.survey_question {
  border: none;
  padding: 0;
  margin: 0 0 26px;
}

.survey_question legend {
  font-family: "Inter", -apple-system, sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--soft-black);
  text-wrap: pretty;
  margin-bottom: 12px;
  padding: 0;
}

.survey_options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.survey_option {
  display: block;
}

.survey_option label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--gridline);
  border-radius: 11px;
  cursor: pointer;
  font-family: "Inter", -apple-system, sans-serif;
  font-size: 15px;
  font-weight:400;
  color: var(--soft-black);
  margin-bottom:0;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.survey_option input {
  margin-bottom:0;
}

.survey_option label:hover {
  border-color: var(--forest);
}

.survey_option label:has(input:checked) {
  border-color: var(--forest);
  background-color: rgba(16, 139, 109, 0.07);
}

.survey_option input[type="radio"],
.survey_option input[type="checkbox"] {
  accent-color: var(--forest);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.survey_option_other[hidden] {
  display: none;
}

.survey_other_input {
  width: 100%;
  min-height: 48px;
  margin-bottom: 0;
  padding: 12px 16px;
  border: 1px solid var(--gridline);
  border-radius: 11px;
  font-family: "Inter", -apple-system, sans-serif;
  font-size: 15px;
  color: var(--soft-black);
  box-sizing: border-box;
}

.survey_other_input:focus {
  outline: none;
  border-color: var(--forest);
}

.survey_question_error {
  margin-top: 8px;
  font-family: "Matter SemiMono", monospace;
  font-size: 13px;
  color: var(--alert-red);
}

.survey_question_error[hidden] {
  display: none;
}

.survey_textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px 16px;
  border: 1px solid var(--gridline);
  border-radius: 11px;
  font-family: "Inter", -apple-system, sans-serif;
  font-size: 15px;
  color: var(--soft-black);
  resize: vertical;
  box-sizing: border-box;
}

.survey_textarea:focus {
  outline: none;
  border-color: var(--forest);
}

/* Actions
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.survey_actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 30px;
}

.survey_actions .action_button, input.action_button {
  margin-top:0;
}

.survey_actions.survey_actions_end {
  justify-content: flex-end;
}

.survey_back_button,
.survey_next_button {
  appearance: none;
  cursor: pointer;
  border-radius: 11px;
  padding: 3px 22px;
  font-family: "Inter";
  font-size: 15px;
  text-decoration: none;
  margin-bottom:0;
}

.survey_back_button {
  background-color: transparent;
  border: 1px solid var(--gridline);
  color: var(--soft-black);
}

.survey_back_button:hover {
  border-color: var(--hard-grey);
}

.survey_next_button {
  background-color: var(--forest);
  border: 1px solid var(--forest);
  color: var(--gentle-white);
}

.survey_next_button:hover, .survey_next_button:active, .survey_next_button:focus {
  background-color: #0e795f;
  color: var(--gentle-white);
}

.survey_turnstile_wrapper {
  margin: 24px 0;
}

.cf-turnstile {
  max-width: 300px;
}

/* Thanks panel
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.survey_thanks {
  text-align: center;
  padding: 20px 4px;
}

.survey_thanks h1 {
  font-family: "Ivar";
  font-weight: 400;
  font-size: 30px;
  color: var(--soft-black);
  margin-bottom: 14px;
}

.survey_thanks p {
  font-family: "Inter", -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--peach-text);
  max-width: 480px;
  margin: 0 auto 24px;
  text-wrap: pretty;
}

.survey_share {
  border-top: 1px solid var(--gridline);
  margin: 28px auto 28px;
  padding-top: 24px;
  max-width: 480px;
}

.survey_share p {
  margin-bottom: 16px !important;
}

.survey_share_buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.survey_share_button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  background-color: transparent;
  border: 1px solid var(--gridline);
  border-radius: 11px;
  padding: 11px 18px;
  font-family: "Matter SemiMono", monospace;
  font-size: 14px;
  color: var(--soft-black);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 150ms ease;
  margin-bottom:0;
  line-height:1;
}

.survey_share_button:hover {
  border-color: var(--forest);
  color: var(--forest);
}

/* Not eligible panel
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.survey_not_eligible {
  text-align: center;
  padding: 20px 4px;
}

.survey_not_eligible[hidden] {
  display: none;
}

.survey_not_eligible h2 {
  font-family: "Ivar";
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.3px;
  color: var(--soft-black);
  text-wrap: balance;
  margin-bottom: 14px;
  outline: none;
}

.survey_not_eligible p {
  font-family: "Inter", -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--peach-text);
  max-width: 480px;
  margin: 0 auto 24px;
  margin-bottom:20px !important;
  text-wrap: pretty;
}

.survey_actions_stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.survey_not_eligible_link {
  font-family: "Matter SemiMono", monospace;
  font-size: 14px;
  color: var(--forest);
}

/* Admin results
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.survey_results_section_title {
  font-family: "Matter SemiMono", monospace;
  font-size: 14px;
  color: var(--soft-grey);
  margin: 32px 0 12px;
}

.survey_results_row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--gridline);
  font-family: "Inter", -apple-system, sans-serif;
  font-size: 14px;
}

.survey_results_row .survey_results_label {
  flex: 0 0 200px;
  color: var(--soft-black);
}

.survey_results_row .survey_results_bar_track {
  flex: 1;
  height: 8px;
  background-color: var(--gridline);
  border-radius: 4px;
  overflow: hidden;
}

.survey_results_row .survey_results_bar_fill {
  height: 100%;
  background-color: var(--forest);
  border-radius: 4px;
}

.survey_results_row .survey_results_count {
  flex: 0 0 70px;
  text-align: right;
  font-family: "Matter SemiMono", monospace;
  color: var(--soft-grey);
}

.survey_results_comment {
  border: 1px solid var(--gridline);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 10px;
}

.survey_results_comment .survey_results_comment_date {
  display: block;
  font-family: "Matter SemiMono", monospace;
  font-size: 12px;
  color: var(--soft-grey);
  margin-bottom: 6px;
}


p.survey_email_message {
  margin-bottom:10px !important;
  font-family: "Matter SemiMono", monospace;
  font-size:14px;
  color:var(--hard-grey);
}