/* ============================================================
   London Town Cabins — theme tokens (from the live Perspective funnel)
   ============================================================ */
:root {
  --color-text: #52574A;
  --color-eyebrow: #838388;
  --color-bg: #FFFFFE;
  --color-field-bg: #859079;   /* sage green — buttons, answer tiles, selects */
  --color-field-bg-hover: #76816c;
  --color-accent: #D9ADA0;     /* dusty rose — price highlight */
  --color-star: #FACC15;
  --color-border: #E4E4E1;
  --color-error: #C0392B;
  --radius: 10px;
  --radius-sm: 6px;
  --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: 20px 24px;
  background: var(--color-bg);
}
.site-header__logo img {
  height: 40px;
  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;
}
@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;
  color: var(--color-field-bg);
}
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), matching the
   original — 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 grid wouldn't do. Expands to
   the full column count at 768px (Tailwind's `md` breakpoint, which
   the original's own markup is built on). */
.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: 4 / 3;
  flex-shrink: 0;
  background: var(--color-field-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.answer-card__media img { width: 100%; height: 100%; object-fit: cover; }
.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;
}

/* ---------- Dimensions (selects) ---------- */
.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 carousel ---------- */
.hero-carousel {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
  aspect-ratio: 4 / 3;
  background: #eee;
}
@media (min-width: 560px) { .hero-carousel { aspect-ratio: 16 / 10; } }
.hero-carousel__track {
  position: relative;
  width: 100%;
  height: 100%;
}
.hero-carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 420ms ease;
}
.hero-carousel__slide.active { opacity: 1; }
.hero-carousel__slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--color-text);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.carousel-nav.prev { left: 12px; }
.carousel-nav.next { right: 12px; }

/* ---------- Testimonial slider ---------- */
.testimonial-slider {
  position: relative;
  text-align: center;
  max-width: 480px;
  margin: 0 auto 28px;
  padding: 0 44px;
}
.testimonial-slide { display: none; }
.testimonial-slide.active { display: block; animation: screenEnter 350ms ease both; }
.testimonial-slide img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px;
}
.testimonial-slide .quote {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 8px;
}
.testimonial-slide .name {
  font-size: 14px;
  color: var(--color-eyebrow);
}
.testimonial-slider .carousel-nav.prev { left: 0; }
.testimonial-slider .carousel-nav.next { right: 0; }

/* ---------- 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 {
  border-radius: 16px;
  overflow: hidden;
  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; }
}

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