/* =========================================================
   Pesquisa ColdCheck — VisionLab Tecnologia
   ========================================================= */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../lib/inter/inter-latin-wght-normal.woff2") format("woff2");
}

:root {
  --cc-green: #00875f;
  --cc-green-600: #00764f;
  --cc-green-700: #006244;
  --cc-green-dark: #063f2e;
  --cc-green-soft: #dcf1e8;
  --cc-green-tint: #f0f9f5;
  --cc-ink: #101828;
  --cc-text: #475467;
  --cc-muted: #667085;
  --cc-border: #e2e7ed;
  --cc-border-strong: #c9d1da;
  --cc-bg: #ecf0f4;
  --cc-surface: #ffffff;
  --cc-gray-btn: #eef1f4;
  --cc-gray-btn-hover: #e3e7ec;
  --cc-danger: #b42318;
  --cc-radius: 20px;
  --cc-radius-sm: 10px;
  --cc-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 32px rgba(16, 24, 40, .07);
  --cc-focus: 0 0 0 4px rgba(0, 135, 95, .2);

  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bs-body-color: var(--cc-ink);
  --bs-body-bg: var(--cc-bg);
  --bs-link-color: var(--cc-green);
  --bs-link-color-rgb: 0, 135, 95;
  --bs-link-hover-color: var(--cc-green-700);
  --bs-link-hover-color-rgb: 0, 98, 68;
  --bs-border-color: var(--cc-border);
  --bs-primary: var(--cc-green);
  --bs-primary-rgb: 0, 135, 95;
}

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--bs-body-font-family);
  background: var(--cc-bg);
  color: var(--cc-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; }

code { color: var(--cc-text); }

a { color: var(--cc-green); }
a:hover { color: var(--cc-green-700); }

:focus-visible { outline: none; box-shadow: var(--cc-focus); }

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: var(--cc-green);
  box-shadow: var(--cc-focus);
}

.form-check-input:checked {
  background-color: var(--cc-green);
  border-color: var(--cc-green);
}

/* ---------- Estrutura ---------- */

.cc-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 16px 20px;
}

.cc-shell {
  width: 100%;
  max-width: 760px;
  background: var(--cc-surface);
  border-radius: var(--cc-radius);
  box-shadow: var(--cc-shadow);
  overflow: hidden;
  position: relative;
}

.cc-shell--wide { max-width: 1140px; }

.cc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 32px;
  border-bottom: 1px solid #eef1f4;
  background: var(--cc-surface);
  position: relative;
  z-index: 2;
}

.cc-logo { display: block; height: auto; flex-shrink: 1; min-width: 0; }
.cc-logo--visionlab { width: 158px; }
.cc-logo--coldcheck { width: 132px; }

.cc-footer {
  margin-top: 18px;
  font-size: .8125rem;
  color: var(--cc-muted);
  text-align: center;
}
.cc-footer a { color: var(--cc-muted); text-decoration: underline; text-underline-offset: 2px; }
.cc-footer a:hover { color: var(--cc-green); }

/* ---------- Botões ---------- */

.cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 11px 24px;
  border-radius: var(--cc-radius-sm);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .05s ease;
  cursor: pointer;
  white-space: nowrap;
}
.cc-btn:active { transform: translateY(1px); }
.cc-btn .bi { font-size: 1.05em; line-height: 1; }

.cc-btn-primary {
  background: var(--cc-green);
  color: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .08), 0 4px 12px rgba(0, 135, 95, .18);
}
.cc-btn-primary:hover,
.cc-btn-primary:focus-visible { background: var(--cc-green-600); color: #fff; }
.cc-btn-primary:disabled,
.cc-btn-primary.is-loading { background: var(--cc-green-600); color: #fff; opacity: .8; cursor: progress; }

.cc-btn-secondary {
  background: var(--cc-gray-btn);
  color: var(--cc-ink);
}
.cc-btn-secondary:hover,
.cc-btn-secondary:focus-visible { background: var(--cc-gray-btn-hover); color: var(--cc-ink); }

.cc-btn-outline {
  background: #fff;
  color: var(--cc-ink);
  border-color: var(--cc-border-strong);
}
.cc-btn-outline:hover { border-color: var(--cc-green); color: var(--cc-green-700); }

.cc-btn-lg { min-height: 56px; padding: 14px 32px; font-size: 1.0625rem; }
.cc-btn-sm { min-height: 38px; padding: 7px 14px; font-size: .875rem; }

/* ---------- Página inicial ---------- */

.cc-hero {
  position: relative;
  overflow: hidden;
  min-height: 600px;
  background: #f7f9fa;
}

.cc-hero-media {
  position: absolute;
  inset: 0 0 0 auto;
  width: 54%;
  z-index: 0;
}
.cc-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% center;
  display: block;
}
.cc-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #f7f9fa 0%, rgba(247, 249, 250, .88) 18%, rgba(247, 249, 250, .35) 46%, rgba(247, 249, 250, 0) 72%);
}

.cc-hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  padding: 56px 0 48px 56px;
}

.cc-hero-title {
  font-size: clamp(1.95rem, 1.2rem + 2.6vw, 3rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--cc-green-dark);
  margin-bottom: 20px;
}

.cc-hero-lead {
  font-size: 1.125rem;
  line-height: 1.55;
  color: #344054;
  margin-bottom: 12px;
}

.cc-hero-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--cc-text);
  margin-bottom: 10px;
}

.cc-highlights {
  list-style: none;
  padding: 0;
  margin: 26px 0 30px;
  display: grid;
  gap: 14px;
}
.cc-highlights li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .975rem;
  line-height: 1.4;
  color: #344054;
}

.cc-icon-circle {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cc-green-soft);
  color: var(--cc-green);
  font-size: 1.3rem;
}

.cc-hero-cta { min-width: 260px; }

.cc-time {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0;
  font-size: .9rem;
  color: var(--cc-muted);
}

/* ---------- Questionário ---------- */

.cc-survey { padding: 26px 40px 32px; }

.cc-stepper {
  list-style: none;
  display: flex;
  padding: 0;
  margin: 0 auto 22px;
  max-width: 560px;
}

.cc-step {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  text-align: center;
}
.cc-step:not(:first-child)::before {
  content: "";
  position: absolute;
  top: 17px;
  left: calc(-50% + 26px);
  right: calc(50% + 26px);
  height: 2px;
  border-radius: 2px;
  background: #e4e7ec;
  transition: background-color .25s ease;
}
.cc-step.is-done::before,
.cc-step.is-active::before { background: var(--cc-green); }

.cc-step-dot {
  width: 36px;
  height: 36px;
  margin: 0 auto 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: .9375rem;
  background: var(--cc-gray-btn);
  color: var(--cc-muted);
  border: 2px solid transparent;
  transition: all .25s ease;
}
.cc-step-check { display: none; font-size: 1.1rem; }

.cc-step.is-active .cc-step-dot {
  background: var(--cc-green);
  color: #fff;
  box-shadow: 0 0 0 5px rgba(0, 135, 95, .14);
}
.cc-step.is-done .cc-step-dot {
  background: #fff;
  color: var(--cc-green);
  border-color: var(--cc-green);
}
.cc-step.is-done .cc-step-num { display: none; }
.cc-step.is-done .cc-step-check { display: inline-block; }

.cc-step-label {
  display: block;
  font-size: .8125rem;
  line-height: 1.25;
  color: var(--cc-muted);
  padding: 0 4px;
}
.cc-step.is-active .cc-step-label { color: var(--cc-green); font-weight: 600; }

.cc-progress { margin-bottom: 26px; }
.cc-progress .progress {
  height: 9px;
  border-radius: 99px;
  background: #e9edf1;
}
.cc-progress .progress-bar {
  background: var(--cc-green);
  border-radius: 99px;
  transition: width .35s ease;
}
.cc-progress-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: .8125rem;
  color: var(--cc-muted);
}

.js .cc-screen:not(.is-active) { display: none; }
.cc-screen:focus { outline: none; }

.cc-intro { margin-bottom: 24px; }
.cc-intro-title {
  font-size: clamp(1.3rem, 1.05rem + 1vw, 1.65rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -.015em;
  color: var(--cc-ink);
  margin-bottom: 8px;
}
.cc-intro-text {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--cc-text);
  margin: 0;
}

.cc-question {
  border: 0;
  padding: 0;
  margin: 0 0 26px;
  min-width: 0;
}
.cc-question:last-of-type { margin-bottom: 8px; }

.cc-question-title {
  display: flex;
  gap: 6px;
  float: none;
  width: 100%;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--cc-ink);
  margin: 0 0 12px;
  padding: 0;
}
.cc-qnum { flex: 0 0 auto; min-width: 1.4em; }
.cc-required { color: var(--cc-danger); margin-left: 2px; }
.cc-optional { font-weight: 400; color: var(--cc-muted); white-space: nowrap; }

.cc-options { display: grid; gap: 8px; }

.cc-option { position: relative; }
.cc-option-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.cc-option-label {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 11px 16px;
  margin: 0;
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius-sm);
  background: #fff;
  font-size: .9688rem;
  line-height: 1.4;
  color: #344054;
  cursor: pointer;
  user-select: none;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.cc-option-label:hover { border-color: var(--cc-border-strong); background: #fafbfc; }

.cc-radio {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid #98a2b3;
  background: #fff;
  position: relative;
  transition: border-color .15s ease;
}
.cc-radio::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--cc-green);
  transform: scale(0);
  transition: transform .15s ease;
}

.cc-option-text { min-width: 0; overflow-wrap: anywhere; }

.cc-option-input:checked + .cc-option-label {
  border-color: var(--cc-green);
  background: var(--cc-green-tint);
  color: var(--cc-ink);
  font-weight: 500;
}
.cc-option-input:checked + .cc-option-label .cc-radio { border-color: var(--cc-green); }
.cc-option-input:checked + .cc-option-label .cc-radio::after { transform: scale(1); }
.cc-option-input:focus-visible + .cc-option-label { box-shadow: var(--cc-focus); border-color: var(--cc-green); }

.cc-other {
  margin: 2px 0 4px 34px;
}
.js .cc-other:not(.is-visible) { display: none; }
.cc-other .form-label { font-size: .875rem; color: var(--cc-text); margin-bottom: 6px; }

.form-control,
.form-control:focus,
.form-select,
.form-select:focus,
.form-check-input:not(:checked) {
  background-color: #fff;
}

.form-control {
  border-color: var(--cc-border-strong);
  border-radius: var(--cc-radius-sm);
  padding: 10px 14px;
  font-size: .9688rem;
  color: var(--cc-ink);
}
.form-control::placeholder { color: #98a2b3; }

.cc-textarea { min-height: 112px; resize: vertical; }
.cc-counter {
  text-align: right;
  font-size: .75rem;
  color: var(--cc-muted);
  margin-top: 4px;
}

.cc-error {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: .875rem;
  color: var(--cc-danger);
}
.cc-error:empty,
.cc-error[hidden] { display: none; }
.has-error .cc-option-label { border-color: #f1c4bf; }

.cc-alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 16px;
  margin-bottom: 20px;
  border-radius: var(--cc-radius-sm);
  background: #fff8ed;
  border: 1px solid #f5d9a8;
  color: #7a4a00;
  font-size: .9375rem;
}

.cc-privacy {
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: 14px;
  background: #f6f8fa;
  border: 1px solid var(--cc-border);
}
.cc-privacy-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--cc-ink);
}
.cc-privacy-head .bi { color: var(--cc-green); font-size: 1.1rem; }
.cc-privacy p { font-size: .9rem; line-height: 1.55; color: var(--cc-text); margin-bottom: 12px; }
.cc-privacy .form-check { display: flex; gap: 10px; align-items: flex-start; padding-left: 0; margin: 0; }
.cc-privacy .form-check-input { margin: 2px 0 0; width: 1.2em; height: 1.2em; flex: 0 0 auto; float: none; border-color: #98a2b3; }
.cc-privacy .form-check-label { font-size: .9375rem; font-weight: 500; color: var(--cc-ink); }

.cc-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}
.cc-nav .cc-btn { min-width: 150px; }
.cc-nav [data-action="prev"] { min-width: 130px; }
html:not(.js) .cc-nav [data-action="prev"],
html:not(.js) .cc-nav [data-action="next"] { display: none; }
html:not(.js) .cc-nav { justify-content: flex-end; }
.js .cc-nav [data-action="submit"]:not(.is-visible),
.js .cc-nav [data-action="next"].is-hidden { display: none; }

.cc-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.spinner-border-sm { --bs-spinner-border-width: .15em; }

/* ---------- Agradecimento ---------- */

.cc-thanks {
  position: relative;
  padding: 56px 32px 64px;
  text-align: center;
  overflow: hidden;
  background-image: url("../img/waves.svg");
  background-repeat: no-repeat;
  background-position: center 62%;
  background-size: 140% auto;
}

.cc-thanks > * { position: relative; z-index: 1; }

.cc-thanks-icon {
  width: 104px;
  height: 104px;
  margin: 0 auto 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cc-green-soft);
  color: var(--cc-green);
  font-size: 3.3rem;
  box-shadow: 0 0 0 10px rgba(220, 241, 232, .45);
}

.cc-thanks h1 {
  font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--cc-ink);
  margin-bottom: 18px;
}

.cc-thanks-text {
  max-width: 520px;
  margin: 0 auto 30px;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--cc-text);
}

.cc-thanks-note {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 470px;
  margin: 0 auto 34px;
  padding: 18px 22px;
  border-radius: 14px;
  background: #f2f5f8;
  text-align: left;
}
.cc-thanks-note p { margin: 0; font-size: .9688rem; line-height: 1.5; color: #344054; }
.cc-thanks-note .cc-icon-circle { width: 54px; height: 54px; font-size: 1.5rem; background: #fff; }

.cc-thanks .cc-btn { min-width: 220px; }

.cc-thanks-deco {
  position: absolute;
  right: -18px;
  bottom: -26px;
  z-index: 0 !important;
  font-size: 9rem;
  line-height: 1;
  color: var(--cc-green);
  opacity: .07;
  pointer-events: none;
}

/* ---------- Páginas de conteúdo ---------- */

.cc-content { padding: 36px 40px 40px; }
.cc-content h1 { font-size: 1.6rem; font-weight: 700; letter-spacing: -.015em; margin-bottom: 16px; }
.cc-content h2 { font-size: 1.05rem; font-weight: 700; margin: 22px 0 8px; }
.cc-content p,
.cc-content li { color: var(--cc-text); line-height: 1.6; }

.cc-privacy-notice h3 { font-size: 1rem; font-weight: 700; margin: 18px 0 6px; color: var(--cc-ink); }
.cc-privacy-notice h3:first-child { margin-top: 0; }
.cc-privacy-notice p,
.cc-privacy-notice li { font-size: .9375rem; line-height: 1.6; color: var(--cc-text); }
.cc-privacy-notice ul { padding-left: 1.2rem; }

.modal-content { border-radius: 16px; border: 0; }
.modal-header { border-bottom-color: #eef1f4; }
.modal-footer { border-top-color: #eef1f4; }

/* ---------- Responsividade ---------- */

@media (max-width: 991.98px) {
  .cc-hero { min-height: 0; }
  .cc-hero-media { width: 62%; }
  .cc-hero-media::after {
    background: linear-gradient(90deg, #f7f9fa 0%, rgba(247, 249, 250, .9) 30%, rgba(247, 249, 250, .55) 62%, rgba(247, 249, 250, .15) 100%);
  }
  .cc-hero-content { max-width: 560px; padding: 44px 0 40px 40px; }
}

@media (max-width: 767.98px) {
  .cc-page { padding: 12px 10px 16px; }
  .cc-shell { border-radius: 16px; }
  .cc-header { padding: 14px 20px; }
  .cc-logo--visionlab { width: 132px; }
  .cc-logo--coldcheck { width: 112px; }

  .cc-hero-media { width: 70%; }
  .cc-hero-content { max-width: none; padding: 30px 22px 32px; }
  .cc-hero-lead,
  .cc-hero-text,
  .cc-highlights,
  .cc-hero-title { max-width: 80%; }
  .cc-hero-lead { font-size: 1.0625rem; }

  .cc-survey { padding: 22px 20px 24px; }
  .cc-step-label { font-size: .75rem; }
  .cc-content { padding: 28px 22px 32px; }
  .cc-thanks { padding: 44px 22px 52px; background-size: 260% auto; }
}

@media (max-width: 575.98px) {
  .cc-hero-media { width: 78%; opacity: .55; }
  .cc-hero-media::after {
    background: linear-gradient(90deg, #f7f9fa 0%, rgba(247, 249, 250, .9) 40%, rgba(247, 249, 250, .55) 100%);
  }
  .cc-hero-lead,
  .cc-hero-text,
  .cc-highlights,
  .cc-hero-title { max-width: none; }
  .cc-hero-cta { width: 100%; min-width: 0; }

  .cc-nav .cc-btn { min-width: 0; flex: 1 1 0; padding-left: 14px; padding-right: 14px; }
  .cc-nav [data-action="prev"] { flex: 0 1 auto; min-width: 112px; }
  .cc-option-label { padding: 10px 14px; gap: 12px; font-size: .9375rem; }
  .cc-other { margin-left: 0; }
  .cc-thanks-note { flex-direction: column; text-align: center; gap: 12px; }
  .cc-thanks .cc-btn { width: 100%; min-width: 0; }
}

@media (max-width: 359.98px) {
  .cc-header { padding: 12px 14px; gap: 10px; }
  .cc-logo--visionlab { width: 112px; }
  .cc-logo--coldcheck { width: 96px; }
  .cc-survey { padding: 18px 14px 20px; }
  .cc-hero-content { padding: 24px 16px 26px; }
  .cc-step-label { font-size: .6875rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
