:root {
  --brand-deep: #2f6665;
  --brand-mid: #3f7f7d;
  --brand-soft: #7ca9a7;
  --brand-sand: #d7c8ad;
  --brand-cream: #f7f3ec;
  --slate-100: #f4f7f7;
  --slate-200: #dde6e6;
  --slate-500: #537072;
  --slate-700: #2d4a4d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background:
    radial-gradient(1000px 560px at 12% -8%, #d9e8e7 0%, rgba(217, 232, 231, 0) 58%),
    radial-gradient(800px 420px at 95% 100%, #efe3d0 0%, rgba(239, 227, 208, 0) 60%),
    linear-gradient(180deg, #fbf9f4 0%, #f6f9f9 100%);
  color: #183034;
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

.card {
  width: min(100%, 840px);
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 30px 80px -45px rgba(47, 102, 101, 0.5);
}

.brand-header {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.brand-logo {
  width: 108px;
  height: 108px;
  border-radius: 20px;
  border: 1px solid rgba(47, 102, 101, 0.2);
  box-shadow: 0 14px 34px -18px rgba(47, 102, 101, 0.55);
}

.brand-name {
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.76rem;
  color: var(--brand-mid);
  font-weight: 700;
}

.title {
  margin: 0;
  color: var(--brand-deep);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  text-align: center;
}

.subtitle {
  margin: 12px 0 0;
  color: var(--slate-700);
  text-align: center;
}

.subtitle-small {
  margin: 6px 0 0;
  color: var(--slate-500);
  font-size: 0.92rem;
  text-align: center;
}

.steps {
  margin-top: 22px;
  display: grid;
  gap: 14px;
}

.prefilter-step {
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfdfd 100%);
}

.question {
  margin: 0;
  font-weight: 600;
}

.answers {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.prefilter-btn {
  border: 0;
  border-radius: 12px;
  padding: 12px 10px;
  font-weight: 700;
  cursor: pointer;
}

.prefilter-yes {
  background: linear-gradient(180deg, var(--brand-mid) 0%, var(--brand-deep) 100%);
  color: #fff;
}

.prefilter-no {
  background: #e7efef;
  color: #24464a;
}

.prefilter-btn:disabled {
  cursor: not-allowed;
  opacity: 0.86;
}

.prefilter-selected-yes {
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.35);
  transform: translateY(-1px);
}

.prefilter-selected-no {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.28);
  transform: translateY(-1px);
}

.prefilter-back-btn {
  margin-top: 12px;
  border: none;
  background: transparent;
  color: var(--slate-500);
  font-weight: 700;
  cursor: pointer;
}

.prefilter-back-btn:hover {
  color: var(--brand-deep);
}

.status {
  margin-top: 16px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--slate-700);
}

.lead,
.result {
  margin-top: 22px;
  border: 1px solid var(--slate-200);
  background: var(--slate-100);
  border-radius: 16px;
  padding: 18px;
}

.lead h2,
.result h2 {
  margin: 0;
  color: var(--brand-deep);
  font-size: 1.2rem;
}

.lead-sub {
  margin-top: 6px;
  color: var(--slate-700);
  font-size: 0.94rem;
}

.lead-form {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.lead-form label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate-700);
}

.lead-form input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  padding: 12px;
  outline: none;
}

.lead-form input:focus {
  border-color: var(--brand-mid);
  box-shadow: 0 0 0 3px rgba(63, 127, 125, 0.16);
}

.cta-btn,
.wa-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 800;
}

.cta-btn {
  background: linear-gradient(180deg, #e2d2b8 0%, var(--brand-sand) 100%);
  color: #2d4448;
  cursor: pointer;
}

.wa-btn {
  margin-top: 14px;
  background: #25d366;
  color: #fff;
}

.error {
  margin: 0;
  color: #dc2626;
  font-weight: 600;
  font-size: 0.9rem;
}

.fine-print {
  margin: 0;
  color: var(--slate-500);
  font-size: 0.78rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(2, 6, 23, 0.6);
  padding: 16px;
}

.modal-card {
  position: relative;
  width: min(100%, 560px);
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.45);
}

.modal-close {
  position: absolute;
  right: 12px;
  top: 12px;
  border: 0;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  font-size: 1.1rem;
}

.modal-close:hover {
  color: #0f172a;
}

.not-ok {
  color: #dc2626;
  font-weight: 700;
}

.hidden {
  display: none !important;
}

@media (max-width: 640px) {
  .card {
    padding: 18px;
    border-radius: 18px;
  }

  .brand-logo {
    width: 94px;
    height: 94px;
  }

  .answers {
    grid-template-columns: 1fr;
  }
}
