:root {
  --nvr-ink: #1f2327;
  --nvr-paper: #faf6ee;
  --nvr-card: #fff;
  --nvr-rust: #a54931;
  --nvr-green: #566b40;
  --nvr-line: #e8dac5;
  --nvr-muted: #444a52;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body.nv-research-runtime {
  margin: 0;
  background: var(--nvr-paper);
  color: var(--nvr-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.nvr-header,
.nvr-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px clamp(20px, 5vw, 72px);
  background: #fff;
  border-bottom: 1px solid var(--nvr-line);
}

.nvr-header img { display: block; width: min(260px, 52vw); height: 72px; object-fit: contain; object-position: left center; }
.nvr-header a,
.nvr-footer a { color: var(--nvr-ink); font-weight: 700; text-decoration: none; }
.nvr-main { width: min(920px, calc(100% - 32px)); margin: 48px auto 72px; }

.nvr-intro {
  padding: clamp(28px, 5vw, 54px);
  background: var(--nvr-green);
  color: #fff;
  border-radius: 32px;
}

.nvr-intro span { font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; }
.nvr-intro h1 { font-size: clamp(2.2rem, 6vw, 4.8rem); line-height: .98; margin: 18px 0; }
.nvr-intro p { font-size: 1.08rem; line-height: 1.65; max-width: 720px; }
.nvr-progress { height: 8px; margin-top: 30px; background: #1f2327; border-radius: 9px; overflow: hidden; }
.nvr-progress i { display: block; width: 0; height: 100%; background: #e8dac5; transition: width .25s; }
#nvr-survey { margin-top: 28px; }

.nvr-section,
.nvr-consent {
  margin: 22px 0;
  padding: clamp(24px, 5vw, 46px);
  background: var(--nvr-card);
  border: 1px solid var(--nvr-line);
  border-radius: 26px;
  box-shadow: 0 14px 45px #593f2510;
}

.nvr-section.nvr-step-inactive,
.nvr-consent.nvr-step-inactive { display: none; }

.nvr-section legend { float: left; width: 100%; margin: 0 0 28px; font-size: clamp(1.55rem, 4vw, 2.4rem); font-weight: 800; }
.nvr-section legend + * { clear: both; }
.nvr-section legend small { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-right: 14px; border-radius: 50%; background: var(--nvr-paper); color: var(--nvr-rust); font-size: .82rem; }
.nvr-field { margin: 26px 0; }
.nvr-label { display: block; margin-bottom: 9px; font-weight: 760; font-size: 1rem; }
.nvr-label em { color: var(--nvr-rust); font-style: normal; }
.nvr-help,
.nvr-section-description,
.nvr-field small { color: var(--nvr-muted); line-height: 1.5; }

.nvr-field input[type=text],
.nvr-field input[type=email],
.nvr-field input[type=tel],
.nvr-field input[type=url],
.nvr-field input[type=date],
.nvr-field input[type=search],
.nvr-field input[type=number],
.nvr-field textarea,
.nvr-field select {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid #b9b0a3;
  border-radius: 13px;
  background: #fff;
  color: var(--nvr-ink);
  font: inherit;
}

.nvr-country-combobox { position: relative; }
.nvr-country-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.nvr-country-listbox {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: min(360px, 45vh);
  overflow-y: auto;
  padding: 6px;
  border: 1px solid #9f9587;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 48px #31271d24;
}
.nvr-country-listbox[hidden] { display: none; }
.nvr-country-option {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--nvr-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.nvr-country-option small { color: var(--nvr-muted); font-weight: 800; letter-spacing: .08em; }
.nvr-country-option:hover,
.nvr-country-option.is-active { background: #f4eadc; outline: 2px solid transparent; }
.nvr-country-empty { margin: 0; padding: 14px; color: var(--nvr-muted); }
.nvr-country-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 9px; }
.nvr-country-chips:empty { display: none; }
.nvr-country-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 8px 7px 12px; border: 1px solid #c9b79f; border-radius: 999px; background: #f7efe2; font-weight: 700; }
.nvr-country-chip button { display: grid; width: 26px; height: 26px; padding: 0; place-items: center; border: 0; border-radius: 50%; background: #ded0bd; color: var(--nvr-ink); font: inherit; cursor: pointer; }
.nvr-field textarea { resize: vertical; }
.nvr-field input:focus,
.nvr-field textarea:focus,
.nvr-field select:focus { outline: 3px solid #b64d2d24; border-color: var(--nvr-rust); }
.nvr-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.nvr-choice { display: flex; align-items: flex-start; gap: 10px; padding: 13px 14px; border: 1px solid var(--nvr-line); border-radius: 13px; background: #fff; }
.nvr-choice input { margin-top: 3px; accent-color: var(--nvr-rust); }
.nvr-error { display: block; color: #a72f25; margin-top: 7px; font-size: .9rem; }
.nvr-conditional-note { display: block; margin-top: 10px; padding: 11px 13px; border-left: 4px solid #c98246; border-radius: 8px; background: #fff4df; color: #603b22; font-size: .92rem; line-height: 1.45; }
.nvr-field.has-error input,
.nvr-field.has-error select,
.nvr-field.has-error textarea { border-color: #a72f25; }
.nvr-field.has-error { padding: 12px; margin-inline: -12px; border-radius: 14px; background: #fff1ed; }
.nvr-consent h2 { margin-top: 0; }
.nvr-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 4px; }
.nvr-actions p { color: var(--nvr-muted); }
.nvr-step-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.nvr-actions button { border: 1px solid var(--nvr-rust); border-radius: 999px; padding: 15px 28px; background: var(--nvr-rust); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.nvr-actions button.nvr-button-secondary { background: transparent; color: var(--nvr-rust); }
.nvr-actions button[disabled] { opacity: .5; cursor: wait; }
#nvr-status { padding: 16px 0; font-weight: 700; }
.nvr-success { padding: 40px; background: #fff; border: 1px solid var(--nvr-line); border-radius: 24px; }
.nvr-hp { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; }
.nvr-footer { border-top: 1px solid var(--nvr-line); border-bottom: 0; color: var(--nvr-muted); }

@media (max-width: 640px) {
  .nvr-header img { width: min(220px, 64vw); height: 62px; }
  .nvr-main { margin-top: 24px; }
  .nvr-intro,
  .nvr-section,
  .nvr-consent { border-radius: 20px; }
  .nvr-actions,
  .nvr-footer { align-items: stretch; flex-direction: column; }
  .nvr-step-actions { display: grid; grid-template-columns: 1fr; }
  .nvr-actions button { width: 100%; }
  .nvr-choices { grid-template-columns: 1fr; }
}

/* Survey steps keep their content readable at narrow widths and high zoom. */
body.nv-research-runtime{font-size:16px;line-height:1.6}
body.nv-research-runtime .nvr-main{width:min(880px,calc(100% - 32px));margin-top:32px}
body.nv-research-runtime :is(.nvr-header,.nvr-footer){flex-wrap:wrap;gap:12px 24px}
body.nv-research-runtime :is(.nvr-intro,.nvr-section,.nvr-consent,.nvr-success){min-width:0;border-radius:18px;overflow-wrap:anywhere;box-shadow:none}
body.nv-research-runtime .nvr-intro{padding:clamp(24px,4vw,40px)}
body.nv-research-runtime .nvr-intro h1{max-width:24ch;font-family:Manrope,Inter,system-ui,sans-serif;font-size:clamp(2rem,4.2vw,3.2rem);line-height:1.12;letter-spacing:-.025em;text-wrap:balance}
body.nv-research-runtime :is(.nvr-section,.nvr-consent){padding:clamp(20px,4vw,36px)}
body.nv-research-runtime .nvr-section legend{font-size:clamp(1.4rem,3vw,1.9rem);line-height:1.3}
body.nv-research-runtime .nvr-field{min-width:0;margin-block:24px}
body.nv-research-runtime .nvr-field :is(input,select,textarea){min-width:0;max-width:100%;border-radius:10px;font-size:1rem}
body.nv-research-runtime .nvr-field :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea):not(:disabled):not([aria-invalid="true"]){border-color:#73777c}
body.nv-research-runtime :is(a,button,input,select,textarea,summary):focus-visible{outline:3px solid #235478;outline-offset:3px;box-shadow:0 0 0 2px #fff}
body.nv-research-runtime .nvr-choices{grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))}
body.nv-research-runtime .nvr-choice{min-height:48px;align-items:flex-start;border-radius:10px;cursor:pointer;line-height:1.55}
body.nv-research-runtime .nvr-choice input{flex:0 0 20px;width:20px;height:20px;margin:2px 0 0}
body.nv-research-runtime .nvr-choice:has(input:checked){border-color:var(--nvr-green);background:#f1f5ec}
body.nv-research-runtime .nvr-consent>label{display:flex;align-items:flex-start;gap:10px;line-height:1.6}
body.nv-research-runtime .nvr-consent>label input{flex:0 0 20px;width:20px;height:20px;margin:3px 0 0;accent-color:var(--nvr-rust)}
body.nv-research-runtime .nvr-field small{font-size:.88rem;color:#515c55}
body.nv-research-runtime .nvr-country-chip{max-width:100%;overflow-wrap:anywhere}
body.nv-research-runtime .nvr-country-chip button{flex:0 0 36px;width:36px;height:36px}
body.nv-research-runtime .nvr-country-option{gap:12px;text-align:left;white-space:normal}
body.nv-research-runtime .nvr-actions{flex-wrap:wrap;gap:16px}
body.nv-research-runtime .nvr-actions p{flex:1 1 200px;margin:0}
body.nv-research-runtime .nvr-step-actions{flex-wrap:wrap;min-width:0}
body.nv-research-runtime .nvr-actions button{min-height:48px;padding:12px 22px;border-radius:11px;line-height:1.4;white-space:normal}
body.nv-research-runtime #nvr-status:empty{padding:0}
@media(max-width:640px){body.nv-research-runtime .nvr-main{margin-top:24px}body.nv-research-runtime .nvr-step-actions{width:100%}body.nv-research-runtime .nvr-actions p{flex-basis:auto}body.nv-research-runtime .nvr-section legend small{width:32px;height:32px;margin-right:8px}}
@media(prefers-reduced-motion:reduce){body.nv-research-runtime .nvr-progress i{transition:none}}
