/* ============================================================
   [Client Name] — theme tokens
   Edit this :root block to match the client's brand. Everything
   else in this file reads from these variables — you shouldn't
   need to touch color/spacing values anywhere else for a reskin.
   ============================================================ */
:root {
  --color-text: #000000;
  --color-eyebrow: #6B6B6B;
  --color-bg: #FFFFFF;
  --color-field-bg: #0345BF;   /* primary brand color — buttons, answer tiles, selects */
  --color-field-bg-hover: #02349b;
  --color-accent: #0345BF;     /* secondary accent — price/highlight text */
  --color-star: #15C504;
  --color-border: #E4E4E1;
  --color-error: #C0392B;
  --radius: 8px;
  --radius-sm: 4px;
  --font: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 640px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; }

/* ---------- Header ---------- */
.site-header {
  padding: 14px 24px;
  background: var(--color-field-bg);
}
.site-header__logo img {
  height: 32px;
  width: auto;
}

/* ---------- Layout ---------- */
.app {
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
}

.screen {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 24px 24px 56px;
  animation: screenEnter 480ms ease both;
}
.screen.leaving {
  animation: screenLeave 320ms ease both;
}
/* Tighter top spacing on the landing screen specifically — helps the
   CTA button land closer to (or above) the fold on mobile. Remove the
   class in app.js's renderStart() if you don't want this. */
.screen--tight-top { padding-top: 8px; }
@keyframes screenEnter {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes screenLeave {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-10px); }
}

.narrow { max-width: var(--max-width); margin-left: auto; margin-right: auto; }

/* ---------- Typography ---------- */
.eyebrow {
  color: var(--color-eyebrow);
  font-size: 16px;
  line-height: 1.5;
  margin: 0 0 8px;
}
h1.headline {
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 700;
  margin: 0 0 20px;
  padding: 16px 0;
  color: var(--color-text);
}
h1.headline .accent { color: var(--color-accent); }

h2.question {
  font-size: 24px;
  line-height: 1.25;
  font-weight: 400;
  color: var(--color-text);
  text-align: center;
  margin: 8px 0 6px;
}
.question-sub {
  text-align: center;
  font-size: 15px;
  color: var(--color-eyebrow);
  margin: 0 0 28px;
}
.body-text {
  color: var(--color-eyebrow);
  font-size: 16px;
  line-height: 1.5;
  margin: 0 0 24px;
}

@media (min-width: 640px) {
  h1.headline { font-size: 34px; }
  h2.question { font-size: 32px; }
}

.question-head { text-align: center; margin-bottom: 28px; }

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  background: var(--color-field-bg);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  transition: background 150ms ease, transform 150ms ease;
}
.btn-primary:hover { background: var(--color-field-bg-hover); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary .btn-sub {
  font-weight: 300;
  font-size: 13px;
  opacity: 0.85;
}
.btn-primary-wrap { display: flex; justify-content: center; margin: 4px 0 32px; }

/* ---------- Choice answers (emoji / text) ---------- */
.answers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 32px;
}
@media (min-width: 560px) {
  .answers-grid.cols-2 { grid-template-columns: 1fr 1fr; }
}

.answer-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--color-field-bg);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  transition: background 150ms ease, transform 150ms ease;
}
.answer-tile:hover { background: var(--color-field-bg-hover); }
.answer-tile:active { transform: scale(0.98); }
.answer-tile .emoji { font-size: 22px; line-height: 1; }

/* ---------- Choice answers (image cards) ----------
   2-up by default, even on the narrowest phones — flexbox +
   justify-content:center so a leftover odd card (e.g. the 3rd of 3)
   centers itself instead of stretching or sticking to the left, which
   a plain CSS grid wouldn't do. Expands to the full column count at
   768px. Don't assume your source platform uses this exact pattern —
   verify its real responsive behavior before reusing these numbers
   (see the "Discovery" section of the skill this template ships with). */
.answers-media-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}
.answers-media-grid .answer-card { width: calc(50% - 8px); }
@media (min-width: 768px) {
  .answers-media-grid.cols-3 .answer-card { width: calc(33.333% - 11px); }
  .answers-media-grid.cols-4 .answer-card { width: calc(25% - 12px); }
}

.answer-card {
  display: flex;
  flex-direction: column;
  border: none;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-field-bg);
  transition: transform 150ms ease, box-shadow 150ms ease;
  text-align: center;
}
.answer-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }
.answer-card:active { transform: scale(0.98); }
.answer-card__media {
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  background: var(--color-field-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 18%;
}
/* This client's answer cards are all line icons (not photos) — recolor
   the icons8 black-on-transparent source to white so they read against
   the blue card background, and use `contain` so they don't crop. */
.answer-card__media img { width: 100%; height: 100%; object-fit: contain; filter: brightness(0) invert(1); }
.answer-card__media svg { width: 56%; height: 56%; }
.answer-card__label {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 16px;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
}
.answer-card__label small {
  display: block;
  font-weight: 300;
  font-size: 13px;
  margin-top: 2px;
  opacity: 0.9;
}

/* ---------- Multi-select checklist (e.g. "which services?") ---------- */
.answers-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.answer-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 16px;
  font-weight: 400;
  text-align: left;
  color: var(--color-text);
  transition: border-color 150ms ease;
}
.answer-row .emoji { font-size: 20px; line-height: 1; }
.answer-row .answer-row__label { flex: 1; }
.answer-row .answer-row__check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  flex-shrink: 0;
  position: relative;
}
.answer-row.selected { border-color: var(--color-field-bg); }
.answer-row.selected .answer-row__check {
  border-color: var(--color-field-bg);
  background: var(--color-field-bg);
}
.answer-row.selected .answer-row__check::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ---------- Progress bar ---------- */
.progress-bar {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  z-index: 50;
}
.progress-bar__fill {
  height: 100%;
  width: 0%;
  background: var(--color-field-bg);
  transition: width 320ms ease;
}

/* ---------- Secondary CTA (e.g. Trustpilot reviews link) ---------- */
.btn-secondary {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  background: #0E9801;
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.btn-secondary .btn-sub { font-weight: 300; font-size: 13px; opacity: 0.9; }
.btn-secondary-wrap { display: flex; justify-content: center; margin: 4px 0 32px; }

/* ---------- Paired dropdowns (e.g. budget/timeline, width/depth) ---------- */
.field-group { margin-bottom: 20px; }
.field-label {
  display: block;
  font-size: 17px;
  font-weight: 300;
  margin-bottom: 8px;
}
select.field-select {
  width: 100%;
  background-color: var(--color-field-bg);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 16px 44px 16px 16px;
  font-size: 17px;
  font-family: inherit;
  font-weight: 300;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 1.1rem;
}
select.field-select option { color: #000; background: #fff; }

/* ---------- Textarea ---------- */
.field-textarea-wrap {
  position: relative;
  margin-bottom: 8px;
}
.field-textarea-wrap .field-icon {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 18px;
}
textarea.field-textarea {
  width: 100%;
  min-height: 140px;
  resize: vertical;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 16px 16px 16px 46px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 300;
  color: var(--color-text);
}
textarea.field-textarea:focus {
  outline: none;
  border-color: var(--color-field-bg);
}

/* ---------- Contact form ---------- */
.contact-form { margin-bottom: 20px; }
.input-wrap {
  position: relative;
  margin-bottom: 14px;
}
.input-wrap .field-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  font-size: 17px;
  pointer-events: none;
}
.input-wrap input[type="text"],
.input-wrap input[type="email"],
.input-wrap input[type="tel"] {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 16px 16px 16px 46px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 300;
  color: var(--color-text);
}
.input-wrap input:focus {
  outline: none;
  border-color: var(--color-field-bg);
}

.phone-wrap {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 14px;
}
.phone-wrap:focus-within { border-color: var(--color-field-bg); }
.phone-code {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  background: #F5F5F3;
  border-right: 1px solid var(--color-border);
  font-size: 16px;
  white-space: nowrap;
}
.phone-wrap input[type="tel"] {
  border: none;
  flex: 1;
  min-width: 0;
  padding: 16px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 300;
  color: var(--color-text);
}
.phone-wrap input[type="tel"]:focus { outline: none; }

.field-error {
  color: var(--color-error);
  font-size: 13px;
  margin: -10px 0 14px 4px;
  display: none;
}
.field-error.visible { display: block; }

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 24px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text);
}
.consent-row input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--color-field-bg);
  flex-shrink: 0;
}
.consent-row a { text-decoration: underline; }

/* ---------- Reviews bar ---------- */
.reviews-bar {
  text-align: center;
  margin: 8px 0 12px;
}
.reviews-bar__avatars {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}
.reviews-bar__avatars img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #fff;
  object-fit: cover;
  margin-left: -10px;
}
.reviews-bar__avatars img:first-child { margin-left: 0; }
.reviews-bar__stars { color: var(--color-star); font-size: 18px; letter-spacing: 2px; margin-bottom: 6px; }
.reviews-bar__text { font-size: 14px; color: var(--color-text); }
.reviews-bar__text strong { font-weight: 700; }

/* ---------- Hero image ---------- */
.screen > img { margin-bottom: 24px; }

/* ---------- Thank-you page ---------- */
.thanks-headline {
  color: var(--color-field-bg);
  font-weight: 700;
  font-size: 24px;
  text-align: center;
  margin: 8px 0 24px;
}
.thanks-image {
  margin-bottom: 24px;
}
.thanks-body {
  font-size: 17px;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 32px;
}
.thanks-body strong { font-weight: 700; }

/* ---------- Confetti ---------- */
.confetti-piece {
  position: fixed;
  top: -10px;
  width: 8px;
  height: 14px;
  opacity: 0.9;
  z-index: 999;
  pointer-events: none;
  animation: confettiFall linear forwards;
}
@keyframes confettiFall {
  to { transform: translateY(110vh) rotate(540deg); opacity: 0.4; }
}

/* ---------- Cookie notice ---------- */
.cookie-notice {
  position: fixed;
  right: 16px;
  bottom: 16px;
  max-width: 280px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  padding: 16px;
  z-index: 60;
}
.cookie-notice p { font-size: 13px; line-height: 1.5; margin: 0 0 10px; }
.cookie-notice .btn-primary { padding: 10px 16px; font-size: 14px; }

/* ---------- Misc ---------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}
