/* Private-group survey (survey.html). Uses the tokens from home-v2.css. */

/* ---------- Hero ---------- */
.survey-hero {
  position: relative;
  min-height: 36vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: #1b2a33 center / cover no-repeat;
}
.survey-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 18, 26, 0.55) 0%, rgba(10, 18, 26, 0.2) 40%, rgba(10, 18, 26, 0.85) 100%);
}
.survey-hero .container {
  position: relative;
  padding-top: 120px;
  padding-bottom: 48px;
}
.survey-hero h1 {
  font-size: clamp(34px, 5.5vw, 60px);
  margin: 14px 0 10px;
}
.survey-hero p {
  max-width: 620px;
  font-size: clamp(16px, 1.8vw, 18px);
  font-weight: 300;
  opacity: 0.92;
}

/* ---------- Layout ---------- */
.survey-section {
  padding-top: 48px;
}
.survey-wrap {
  max-width: 820px;
  scroll-margin-top: 90px;
}
.survey-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.survey-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--orange);
  border-radius: inherit;
  transition: width 0.35s ease;
}
.survey-step-label {
  margin: 12px 0 18px;
  min-height: 1.4em;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.survey-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 44px);
}

/* ---------- Text ---------- */
.sv-title {
  font-size: clamp(26px, 3.4vw, 34px);
  line-height: 1.2;
  margin-bottom: 16px;
}
.sv-text {
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.sv-sub {
  font-size: 17px;
  margin: 18px 0 8px;
}
.sv-note,
.sv-good {
  border-radius: 14px;
  padding: 18px 20px;
  margin: 22px 0 6px;
}
.sv-note {
  background: var(--sand);
}
.sv-good {
  background: #eef7f3;
}
.sv-note h3,
.sv-good h3 {
  font-size: 16px;
  margin-bottom: 10px;
}
.sv-note h3 i {
  color: var(--orange);
  margin-right: 6px;
}
.sv-note ul,
.sv-good ul {
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 15px;
}
.sv-good ul {
  list-style: none;
  padding-left: 0;
}

/* ---------- Questions ---------- */
.sv-field {
  margin-top: 28px;
}
.sv-q {
  font-weight: 600;
  margin-bottom: 6px;
}
.sv-q small {
  font-weight: 400;
  color: var(--muted);
}
.sv-hint {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 10px;
}
.sv-error {
  margin-top: 8px;
  font-size: 14px;
  color: #c0392b;
}
.sv-invalid .sv-choices,
.sv-invalid .sv-tours,
.sv-invalid input,
.sv-invalid select {
  border-color: #e3a49b;
}

.sv-field input[type="text"],
.sv-field input[type="tel"],
.sv-field input[type="email"],
.sv-field input[type="number"],
.sv-field select,
.sv-field textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.sv-field textarea {
  resize: vertical;
}
.sv-field input:focus,
.sv-field select:focus,
.sv-field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(250, 116, 54, 0.15);
}
.sv-inline {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sv-inline input[type="number"] {
  width: 120px;
}
.sv-other {
  margin-top: 4px;
}

/* Checkbox / radio rows */
.sv-choices {
  display: grid;
  gap: 8px;
}
.sv-choices-row {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.sv-choice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1.5;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.sv-choice:hover {
  border-color: #f6b796;
}
.sv-choice input {
  flex: 0 0 auto;
  margin-top: 4px;
  width: 17px;
  height: 17px;
  accent-color: var(--orange);
}
.sv-choice:has(input:checked) {
  border-color: var(--orange);
  background: #fff6f1;
}

/* Tour cards */
.sv-tours {
  display: grid;
  gap: 10px;
}
.sv-tour {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.sv-tour:hover {
  border-color: #f6b796;
}
.sv-tour input {
  flex: 0 0 auto;
  margin-top: 5px;
  width: 18px;
  height: 18px;
  accent-color: var(--orange);
}
.sv-tour:has(input:checked) {
  border-color: var(--orange);
  background: #fff6f1;
}
.sv-tour-body {
  display: grid;
  gap: 4px;
}
.sv-tour-name {
  font-weight: 600;
}
.sv-stars {
  color: var(--orange);
  letter-spacing: 1px;
  font-size: 14px;
  white-space: nowrap;
}
.sv-season {
  font-size: 13px;
  color: var(--green-dark);
}
.sv-season i {
  margin-right: 4px;
}
.sv-tour-note {
  font-size: 14px;
  color: var(--ink-soft);
}
.sv-tour-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--orange-dark);
  text-decoration: none;
  width: fit-content;
}
.sv-tour-link:hover {
  text-decoration: underline;
}

/* Tour questions: number, "Important" tag, Yes / Not sure / No side by side */
.sv-kicker {
  margin: -6px 0 14px;
  font-size: 14px;
  font-weight: 500;
}
.sv-kicker a {
  color: var(--orange-dark);
  text-decoration: none;
}
.sv-qnum {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--sand);
  font-size: 13px;
  vertical-align: 1px;
}
.sv-must {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #fdeee6;
  color: var(--orange-dark);
  font-size: 11px;
  font-weight: 600;
  vertical-align: 2px;
  white-space: nowrap;
}
.sv-yesno {
  grid-template-columns: repeat(3, 1fr);
}
.sv-yesno .sv-choice {
  justify-content: center;
  align-items: center;
  padding: 10px 8px;
}
.sv-yesno .sv-choice input {
  margin-top: 0;
}
.sv-num {
  max-width: 140px;
}

/* ---------- Navigation ---------- */
.sv-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.sv-nav-end {
  justify-content: flex-start;
}

/* ---------- Result ---------- */
.sv-result {
  text-align: left;
  border-radius: 14px;
  padding: 26px 24px;
  border-left: 6px solid;
}
.sv-result-fit {
  background: #eef7f3;
  border-color: var(--green);
}
.sv-result-maybe {
  background: #fff6e8;
  border-color: #f0a73a;
}
.sv-result-no {
  background: #fdeeec;
  border-color: #d9584a;
}
.sv-result-icon {
  font-size: 40px;
  margin-bottom: 12px;
}
.sv-result-fit .sv-result-icon {
  color: var(--green-dark);
}
.sv-result-maybe .sv-result-icon {
  color: #e08e16;
}
.sv-result-no .sv-result-icon {
  color: #c0392b;
}
.sv-reasons {
  padding-left: 20px;
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
}
.sv-suggest {
  margin-top: 20px;
}
.sv-suggest h3 {
  font-size: 16px;
  margin-bottom: 8px;
}
.sv-suggest a {
  display: block;
  padding: 10px 0;
  font-weight: 500;
  color: var(--orange-dark);
  text-decoration: none;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.sv-suggest a:hover {
  text-decoration: underline;
}
.sv-status {
  margin-top: 20px;
  font-size: 15px;
  color: var(--ink-soft);
}
.sv-status.ok i {
  color: var(--green-dark);
  margin-right: 6px;
}
.sv-status.err {
  color: #c0392b;
}

@media (max-width: 640px) {
  .sv-nav .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* Intensity stars and season (same as the homepage cards) */
.sv-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 2px 0 6px;
}
.sv-facts b {
  font-weight: 600;
  color: var(--ink);
}
.sv-facts i.fa-calendar {
  color: var(--orange);
}
.sv-facts .sv-stars {
  display: inline-flex;
  gap: 2px;
  color: var(--orange);
  font-size: 12px;
  vertical-align: 1px;
}
.sv-title + .sv-facts {
  margin: -8px 0 12px;
}

/* Register box, shown when the result is a fit */
.sv-register {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding: 22px 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fa7436, #f05323);
  color: #fff;
  box-shadow: 0 14px 30px rgba(240, 83, 35, 0.28);
}
.sv-register h3 {
  font-size: 19px;
  margin-bottom: 4px;
  color: #fff;
}
.sv-register h3 i {
  margin-right: 6px;
}
.sv-register p {
  font-size: 14.5px;
  opacity: 0.92;
  max-width: 46ch;
}
.sv-register .sv-register-btn {
  background: #fff;
  color: #f05323;
  font-weight: 700;
  padding: 13px 26px;
}
.sv-register .sv-register-btn:hover {
  background: #fff6f1;
  color: #d94310;
}
@media (max-width: 640px) {
  .sv-register .sv-register-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Keyboard focus ring */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--orange, #fa7436);
  outline-offset: 3px;
}

/* Respect "reduce motion" */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* bigger tap area for the "see the tour" link under each tour */
.sv-tour-link {
  display: inline-block;
  padding: 8px 0;
}

/* The questions are added by JS a moment after the page opens. Reserving the
   space first stops the footer from jumping down when they appear. */
.survey-card:empty {
  min-height: 100vh;
}
