/* =========================================================
   Jetour Survey — shared styles
   Matches the supplied wireframe: mobile card, black/white,
   pill inputs, stepper, rounded checkboxes/radios.
   ========================================================= */

:root {
  --black: #111111;
  --white: #ffffff;
  --border: #d9d9d9;
  --border-light: #e8e8e8;
  --text-muted: #8a8a8a;
  --text-body: #3a3a3a;
  --radius: 10px;
  --radius-full: 999px;
  --font: 'Helvetica Neue', Arial, -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  background: #f4f4f4;
  color: var(--text-body);
  display: flex;
  justify-content: center;
  padding: 32px 12px;
}

.card {
  width: 100%;
  max-width: 400px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  min-height: 780px;
  display: flex;
  flex-direction: column;
}

/* ---------- Header ---------- */
.brand-header {
  background: var(--black);
  color: var(--white);
  padding: 18px 24px;
}
.brand-header .logo {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 1px;
}
.brand-header .tagline {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #bbbbbb;
  margin-top: 2px;
}

/* ---------- Body ---------- */
.body-content {
  padding: 28px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

h1.page-title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.3px;
  margin: 8px 0 24px;
}

.subtitle-block { margin-bottom: 20px; }
.subtitle-block h1 { margin-bottom: 4px; }
.subtitle-block p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Stepper (step 2 & 3) ---------- */
.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 4px 0 26px;
}
.step-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  border: 2px solid var(--black);
  background: var(--white);
  color: var(--black);
  flex-shrink: 0;
}
.step-circle.done,
.step-circle.active {
  background: var(--black);
  color: var(--white);
}
.step-line {
  width: 46px;
  height: 2px;
  background: var(--black);
}
.step-line.pending { background: var(--border); }
.step-circle.pending { border-color: var(--border); color: var(--text-muted); }

/* ---------- Form fields ---------- */
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}
.input-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 12px 18px;
  font-size: 13px;
}
.input-pill svg { flex-shrink: 0; color: var(--text-muted); }
.input-pill input,
.input-pill select {
  border: none;
  outline: none;
  flex: 1;
  font-size: 13px;
  font-family: var(--font);
  background: transparent;
  color: var(--text-body);
  appearance: none;
}
.input-pill input::placeholder { color: #b5b5b5; }
.input-pill select { color: #b5b5b5; }
.input-pill select.has-value { color: var(--text-body); }

/* Plain rounded-rect select (question 2 on survey) */
.select-box {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 13px;
  width: 100%;
  color: #b5b5b5;
  background: var(--white);
  appearance: none;
  font-family: var(--font);
}
.select-box.has-value { color: var(--text-body); }

/* ---------- Checkbox row (terms) ---------- */
.terms-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-body);
  margin-bottom: 22px;
}
.terms-row a { color: var(--black); text-decoration: underline; }
.checkbox {
  width: 18px;
  height: 18px;
  border: 1px solid var(--border);
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 1px;
  accent-color: var(--black);
}

/* ---------- Buttons ---------- */
.btn-primary {
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  padding: 15px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  width: 100%;
  margin-top: auto;
}
.btn-primary:hover { background: #2b2b2b; }
.btn-primary:disabled { background: #b5b5b5; cursor: not-allowed; }

.btn-row { display: flex; gap: 12px; margin-top: 8px; }
.btn-secondary {
  flex: 1;
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.btn-row .btn-primary { flex: 1.4; margin-top: 0; }

/* ---------- Survey questions ---------- */
.question { margin-bottom: 22px; }
.question p.q-label {
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 12px;
}
.option-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 13px;
}
.option-row input[type="radio"],
.option-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--black);
}
hr.divider {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 18px 0;
}
.other-specify {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
  width: 100%;
  margin-top: 8px;
  font-family: var(--font);
}

/* NPS score row */
.nps-row {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.nps-row label {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  font-size: 12.5px;
  border-right: 1px solid var(--border);
  cursor: pointer;
  position: relative;
}
.nps-row label:last-child { border-right: none; }
.nps-row input { position: absolute; opacity: 0; }
.nps-row input:checked + span {
  display: inline-flex;
  width: 100%;
  height: 100%;
}
.nps-row label:has(input:checked) { background: var(--black); color: var(--white); }
.nps-scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
}

textarea.comments-box {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 13px;
  font-family: var(--font);
  width: 100%;
  min-height: 90px;
  resize: vertical;
}

/* ---------- Thank you page ---------- */
.thankyou-center { text-align: center; padding-top: 6px; }
.gift-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px auto 24px;
  position: relative;
}
.thankyou-center h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 10px;
}
.thankyou-center p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 auto 22px;
  max-width: 280px;
}
.section-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-align: left;
  margin-bottom: 12px;
}
.prize-card {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 26px;
  text-align: left;
}
.prize-thumb {
  width: 52px;
  height: 52px;
  border: 1px solid var(--border);
  border-radius: 6px;
  flex-shrink: 0;
  background: repeating-linear-gradient(45deg, #f0f0f0 0 2px, transparent 2px 8px);
}
.prize-info { flex: 1; }
.prize-info .name { font-size: 13px; font-weight: 700; }
.prize-info .stock { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.prize-radio {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1px solid var(--border); flex-shrink: 0;
  accent-color: var(--black);
}

/* ---------- Follow & share row ---------- */
.social-row {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.social-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 6px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--black);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.social-btn:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

/* ---------- Utility ---------- */
.error-text { color: #c0392b; font-size: 12px; margin-top: 6px; }
.arrow-connector {
  text-align: center;
  color: var(--text-muted);
  font-size: 20px;
  padding: 8px 0;
}
a.plain { color: inherit; text-decoration: none; }
