/* ═══════════════════════════════════════════════════════
   QUESTIONNAIRE  —  Teal/Blue Theme (matches landing page)
   ═══════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --qa: #0f9b8e;            /* accent – teal (matches landing --primary) */
  --qa-g: linear-gradient(135deg, #0b7d73 0%, #0ea5e9 100%);
  --qa-ok: #059669;        /* success */
  --qa-err: #dc2626;       /* error */
  --qt: #0f172a;           /* text */
  --qt2: #475569;          /* text-secondary */
  --qm: #94a3b8;           /* muted */
  --qb: rgba(15,23,42,.09);/* border */
  --qs: #ffffff;           /* surface */
  --qr: .24s cubic-bezier(.4,0,.2,1); /* transition */
}

body.q-body {
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
  color: var(--qt);
  background: #eef8fb;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Crect x='12' y='34' width='56' height='12' rx='4' fill='%230f9b8e' fill-opacity='.025'/%3E%3Crect x='34' y='12' width='12' height='56' rx='4' fill='%230f9b8e' fill-opacity='.025'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 80% 55% at 5% 5%,   rgba(15,155,142,.15) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 95% 95%, rgba(14,165,233,.12)  0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 50% 50%, rgba(94,234,212,.10)  0%, transparent 65%);
}

/* ── WRAP ──────────────────────────────────────────── */
.q-wrap {
  max-width: 1360px;
  margin: 0 auto;
  width: 100%;
  padding: 2rem 1.8rem 3rem;
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ── BRANDING HEADER ───────────────────────────────── */
.q-header {
  display: flex; flex-direction: column; align-items: center;
  padding: 2.2rem 0 1.6rem; text-align: center;
}

.q-logo-row {
  display: flex; align-items: center; gap: .65rem;
  margin-bottom: 1rem;
}

.q-diamond {
  width: 36px; height: 36px; flex-shrink: 0;
  background: linear-gradient(135deg, #0f9b8e, #0ea5e9);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  box-shadow: 0 4px 16px rgba(15,155,142,.35);
}

.q-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: .96rem; font-weight: 700;
  background: linear-gradient(135deg, #0f9b8e, #0ea5e9);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; letter-spacing: .1px;
}

.q-welcome {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem; font-weight: 700;
  color: var(--qt); letter-spacing: -.2px;
  line-height: 1.2;
}

.q-sub {
  font-size: .80rem; color: var(--qm); margin-top: .35rem; font-weight: 500;
}

/* ── STEPPER ───────────────────────────────────────── */
.q-stepper {
  display: flex; align-items: center;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(15,23,42,.06), 0 4px 24px rgba(15,155,142,.08);
  border: 1.5px solid rgba(15,155,142,.12);
  padding: 1.1rem 1.4rem;
  margin-bottom: 1.4rem;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.q-stepper::-webkit-scrollbar { display: none; }

.q-step-item {
  display: flex; flex-direction: column; align-items: center;
  gap: .32rem; flex-shrink: 0;
  background: none; border: none; padding: 0 6px;
  cursor: default; font-family: 'Inter', sans-serif;
  transition: opacity var(--qr);
}
.q-step-item.q-step-done   { cursor: pointer; }
.q-step-item.q-step-locked { cursor: not-allowed; opacity: .50; }

.q-step-circle {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .80rem; font-weight: 700;
  border: 2px solid #d3ece8; color: var(--qm); background: #fff;
  transition: all .28s ease;
  box-shadow: 0 1px 4px rgba(15,23,42,.06);
}
.q-step-item.q-step-active .q-step-circle {
  border-color: var(--qa); background: var(--qa-g); color: #fff;
  box-shadow: 0 4px 16px rgba(15,155,142,.32);
  transform: scale(1.08);
}
.q-step-item.q-step-done .q-step-circle {
  border-color: var(--qa-ok); background: var(--qa-ok); color: #fff;
  box-shadow: 0 3px 10px rgba(5,150,105,.28);
  transform: scale(1.0);
}

.q-step-num   { line-height: 1; }
.q-step-check { display: none; font-size: .85rem; line-height: 1; }
.q-step-item.q-step-done .q-step-num   { display: none; }
.q-step-item.q-step-done .q-step-check { display: block; }

.q-step-label {
  font-size: .60rem; font-weight: 600; color: var(--qm);
  text-align: center; max-width: 80px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color var(--qr);
}
.q-step-item.q-step-active .q-step-label { color: var(--qa); }
.q-step-item.q-step-done   .q-step-label { color: var(--qa-ok); }

.q-step-line {
  flex: 1; height: 2px; background: #d3ece8;
  min-width: 14px; border-radius: 2px;
  transition: background .35s ease;
}
.q-step-line.q-line-done { background: var(--qa-ok); }

/* ── STEP CARD ─────────────────────────────────────── */
.step-panel {
  background: var(--qs);
  border-radius: 20px;
  box-shadow:
    0 1px 2px rgba(15,23,42,.04),
    0 4px 20px rgba(15,23,42,.07),
    0 12px 40px rgba(15,155,142,.07);
  overflow: hidden;
  margin-bottom: 1.6rem;
  animation: panelIn .28s ease;
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── STEP TITLE BAR ────────────────────────────────── */
.step-title-bar {
  background: var(--qa-g);
  color: #fff;
  padding: 1.1rem 1.6rem;
  display: flex; align-items: center; gap: .85rem;
}

.step-label {
  font-size: .70rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  background: rgba(255,255,255,.18); padding: .22rem .75rem; border-radius: 30px;
  white-space: nowrap; flex-shrink: 0;
}

.step-name {
  font-family: 'Inter', sans-serif;
  font-size: .92rem; font-weight: 700; line-height: 1.3;
}

.step-subtitle {
  font-size: .78rem; color: var(--qt2);
  background: #f3fbfa; border-bottom: 1px solid #e7f5f2;
  padding: .75rem 1.6rem;
}

/* ── QUESTIONS ─────────────────────────────────────── */
.q-questions {
  background: transparent; border: none; border-radius: 0;
  padding: 1.8rem 1.8rem 1rem;
  display: flex; flex-wrap: wrap; gap: 1rem 1.2rem;
}

.q-item {
  display: flex; flex-direction: column; gap: .38rem;
}
.q-item[data-items="1"] { width: 100%; }
.q-item[data-items="2"] { width: calc(50% - .6rem); }
.q-item[data-items="3"] { width: calc(33.33% - .8rem); }

/* ── LABELS ────────────────────────────────────────── */
.q-label {
  font-size: .75rem; font-weight: 600; color: var(--qt2); letter-spacing: .1px;
}
.q-req { color: var(--qa-err); margin-left: .2rem; }

/* ── INPUTS ────────────────────────────────────────── */
.q-input {
  width: 100%;
  border: 1.5px solid #d3ece8;
  border-radius: 10px;
  padding: .65rem 1rem;
  font-size: .84rem; font-family: 'Inter', sans-serif;
  color: var(--qt); background: #f3fbfa;
  transition: border-color var(--qr), box-shadow var(--qr), background var(--qr);
}
.q-input:focus {
  outline: none;
  border-color: var(--qa); background: #fff;
  box-shadow: 0 0 0 3px rgba(15,155,142,.12);
}
.q-input.q-invalid {
  border-color: var(--qa-err);
  background: #fff8f8;
  box-shadow: 0 0 0 3px rgba(220,38,38,.08);
}

select.q-input { cursor: pointer; }
select.q-input option { background: #fff; color: var(--qt); }

.q-file {
  font-size: .80rem; color: var(--qt2);
  border: 1.5px dashed #d3ece8; border-radius: 10px;
  padding: .65rem 1rem; background: #f3fbfa; width: 100%; cursor: pointer;
}

.q-hint {
  font-size: .70rem; color: var(--qm); margin-top: .12rem;
}

.q-note-text {
  font-size: .80rem; line-height: 1.70; color: var(--qt2);
  background: #f3fbfa; border: 1.5px solid #d3ece8;
  border-radius: 10px; padding: .85rem 1.1rem;
  font-style: italic; width: 100%;
}

/* ── RADIO / CHECKBOX OPTIONS ──────────────────────── */
.q-options {
  display: flex; flex-direction: column; gap: .5rem;
}

.q-opt-label {
  display: flex; align-items: center; gap: .6rem;
  padding: .55rem .85rem; border-radius: 10px;
  border: 1.5px solid #d3ece8; background: #f3fbfa;
  font-size: .83rem; color: var(--qt); cursor: pointer;
  transition: all var(--qr);
}
.q-opt-label:hover {
  border-color: var(--qa); background: #e3f7f4;
}
.q-opt-label:has(input:checked) {
  border-color: var(--qa); background: #e3f7f4; color: var(--qa); font-weight: 600;
}
.q-opt-label input[type="radio"],
.q-opt-label input[type="checkbox"] {
  accent-color: var(--qa); width: 16px; height: 16px; flex-shrink: 0;
}

.q-invalid .q-opt-label { border-color: var(--qa-err); color: var(--qa-err); }

/* ── ACKNOWLEDGE CHECKBOX ──────────────────────────── */
.q-ack-label {
  display: flex; align-items: flex-start; gap: .65rem;
  padding: .85rem 1rem; border-radius: 12px;
  border: 1.5px solid #d3ece8; background: #f3fbfa;
  font-size: .85rem; font-weight: 500; color: var(--qt);
  cursor: pointer; margin-top: .4rem; line-height: 1.55;
  transition: all var(--qr);
}
.q-ack-label:hover { border-color: var(--qa); background: #e3f7f4; }
.q-ack-label input {
  accent-color: var(--qa); width: 17px; height: 17px;
  flex-shrink: 0; margin-top: .15rem;
}
.q-ack-label.q-invalid { border-color: var(--qa-err); background: #fff8f8; }

/* ── CONSENT BLOCK ─────────────────────────────────── */
.q-consent-block {
  width: 100%;
  background: #f3fbfa; border: 1.5px solid #d3ece8; border-radius: 12px;
  padding: 1.1rem 1.3rem; margin-bottom: .5rem;
  font-size: .78rem; line-height: 1.70; color: var(--qt2);
  max-height: 320px; overflow-y: auto;
}
.q-consent-block p  { margin-bottom: .55rem; }
.q-consent-block h4 { font-size: .80rem; margin: .8rem 0 .35rem; color: var(--qt); }

/* ── NAVIGATION ────────────────────────────────────── */
.step-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.8rem 1.4rem;
  border-top: 1px solid #eaf6f4;
}

.q-btn {
  font-family: 'Inter', sans-serif;
  font-size: .84rem; font-weight: 700;
  padding: .62rem 1.8rem; border-radius: 50px;
  border: none; cursor: pointer;
  transition: all var(--qr); letter-spacing: .1px;
  display: inline-flex; align-items: center; gap: .4rem;
}

.q-next, .q-submit {
  background: var(--qa-g); color: #fff;
  box-shadow: 0 3px 14px rgba(15,155,142,.28);
}
.q-next:hover, .q-submit:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(15,155,142,.36);
}
.q-submit { background: linear-gradient(135deg, #047857, #059669); box-shadow: 0 3px 14px rgba(5,150,105,.28); }
.q-submit:hover { box-shadow: 0 6px 22px rgba(5,150,105,.35); }

.q-prev {
  background: transparent; color: var(--qt2);
  border: 1.5px solid #d3ece8;
}
.q-prev:hover {
  border-color: var(--qa); color: var(--qa); background: #eafaf8;
}

/* ── FOOTER ────────────────────────────────────────── */
.q-footer {
  margin-top: auto;
  padding: 1.4rem 0 1.6rem;
  border-top: 1px solid rgba(15,23,42,.08);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: .6rem;
}

.q-footer-links {
  display: flex; gap: 1.2rem; flex-wrap: wrap; align-items: center;
  font-size: .73rem;
}
.q-footer-links a { color: var(--qa); text-decoration: none; font-weight: 600; }
.q-footer-links a:hover { text-decoration: underline; }
.q-footer-links span { color: var(--qt2); }

.q-sig {
  font-family: 'Brush Script MT', cursive, serif;
  font-size: 1.6rem; color: var(--qa);
}

/* ── THANK YOU ─────────────────────────────────────── */
.q-thankyou {
  background: var(--qs); border-radius: 20px;
  box-shadow: 0 4px 24px rgba(15,23,42,.08);
  padding: 3rem 2rem; text-align: center; margin: 1.5rem 0;
}
.ty-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, #047857, #059669);
  color: #fff; font-size: 1.9rem; line-height: 64px;
  margin: 0 auto 1.2rem;
  box-shadow: 0 6px 20px rgba(5,150,105,.30);
}
.q-thankyou h2 { font-size: 1.5rem; margin-bottom: .65rem; color: var(--qt); }
.q-thankyou p  { font-size: .88rem; color: var(--qt2); margin-bottom: .35rem; }

/* ── FULL-SCREEN LAYOUT ────────────────────────────── */

/* Shell: full-width background between site header and footer */
.q-shell {
  display: flex;
  justify-content: center;
  min-height: calc(100vh - 140px);
  width: 100%;
  background: #eef8fb;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Crect x='12' y='34' width='56' height='12' rx='4' fill='%230f9b8e' fill-opacity='.025'/%3E%3Crect x='34' y='12' width='12' height='56' rx='4' fill='%230f9b8e' fill-opacity='.025'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 80% 55% at 5% 5%,   rgba(15,155,142,.15) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 95% 95%, rgba(14,165,233,.12)  0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 50% 50%, rgba(94,234,212,.10)  0%, transparent 65%);
  -webkit-font-smoothing: antialiased;
}

/* Step content area */
.q-step-area { width: 100%; }

/* ── SURVEY HEADER CARD ──────────────────────────── */
.q-survey-hdr {
  background: linear-gradient(135deg, #0b7d73 0%, #0f9b8e 50%, #0ea5e9 100%);
  border-radius: 20px;
  padding: 2rem 2.2rem 1.8rem;
  margin-bottom: 1.8rem;
  box-shadow: 0 8px 32px rgba(11,125,115,.30), 0 2px 8px rgba(11,125,115,.15);
  position: relative; overflow: hidden;
}
/* subtle cross-pattern overlay */
.q-survey-hdr::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Crect x='8' y='26' width='44' height='8' rx='3' fill='%23fff' fill-opacity='.06'/%3E%3Crect x='26' y='8' width='8' height='44' rx='3' fill='%23fff' fill-opacity='.06'/%3E%3C/svg%3E");
  pointer-events: none;
}
/* decorative glow orb */
.q-survey-hdr::after {
  content: '';
  position: absolute; top: -40px; right: -40px;
  width: 180px; height: 180px; border-radius: 50%;
  background: rgba(255,255,255,.06);
  pointer-events: none;
}
.q-survey-diamond {
  width: 9px; height: 9px; flex-shrink: 0;
  background: rgba(255,255,255,.90);
  clip-path: polygon(50% 0%,100% 50%,50% 100%,0% 50%);
  display: inline-block;
}
.q-survey-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .64rem; font-weight: 700; letter-spacing: .8px;
  text-transform: uppercase;
  color: rgba(255,255,255,.85); background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  padding: .28rem .9rem; border-radius: 20px;
  margin-bottom: .75rem; border: 1px solid rgba(255,255,255,.20);
}
.q-survey-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  margin-bottom: .75rem;
  position: relative; z-index: 1;
}
.q-survey-meta .q-survey-badge { margin-bottom: 0; }
.q-survey-service {
  display: inline-flex; align-items: center; gap: .4rem;
  max-width: 100%;
  font-size: .72rem; font-weight: 600; letter-spacing: .2px;
  color: #0b7d73; background: rgba(255,255,255,.95);
  padding: .28rem .85rem .28rem .7rem; border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,.10);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.q-survey-service svg { flex-shrink: 0; color: #0f9b8e; }
.q-survey-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem; font-weight: 700;
  color: #fff; line-height: 1.2;
  margin-bottom: .5rem; letter-spacing: -.3px;
  text-shadow: 0 2px 12px rgba(0,0,0,.18);
  position: relative; z-index: 1;
}
.q-survey-sub {
  font-size: .76rem; color: rgba(255,255,255,.65);
  font-weight: 400; line-height: 1.6;
  position: relative; z-index: 1;
}

/* ── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 768px) {
  .q-wrap { padding: 1rem 1rem 2rem; }
  .q-survey-hdr { padding: 1.5rem 1.3rem 1.4rem; }
  .q-survey-title { font-size: 1.45rem; }
}

@media (max-width: 500px) {
  .q-item[data-items="2"],
  .q-item[data-items="3"] { width: 100%; }
  .q-questions { padding: 1.2rem 1.2rem .8rem; }
  .step-nav    { padding: .8rem 1.2rem 1.2rem; }
  .q-step-circle { width: 32px; height: 32px; font-size: .72rem; }
  .q-step-label  { font-size: .56rem; max-width: 62px; }
}
