/* Immersive Fullscreen Conversational Form v1.2 */
:root {
  --tlcf-brand: #6A8D4D;
  --tlcf-bg: #f3f6ef;
  --tlcf-text: #0b1411;
  --tlcf-muted: #6b7280;
}

.tlcf-wrapper, .tlcf-fullscreen {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 6px 1fr auto;
  background: radial-gradient(1200px 800px at 20% 10%, rgba(106,141,77,0.08), transparent 60%),
              radial-gradient(1000px 700px at 80% 90%, rgba(106,141,77,0.10), transparent 60%),
              var(--tlcf-bg);
  padding: clamp(16px, 3vw, 32px);
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  color: var(--tlcf-text);
}

.tlcf-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
}
.tlcf-logo {
  height: clamp(28px, 5vw, 44px);
  width: auto;
  object-fit: contain;
}

.tlcf-progress {
  height: 6px;
  width: 100%;
  background: rgba(0,0,0,0.06);
  border-radius: 8px;
  overflow: hidden;
}
.tlcf-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--tlcf-brand);
  transition: width 420ms ease;
}

.tlcf-stage {
  display: grid;
  place-items: center;
}

/* Intro */
.tlcf-intro {
  width: min(900px, 100%);
}
.tlcf-intro-card {
  background: #fff;
  border-radius: 28px;
  padding: clamp(28px, 5vw, 56px);
  box-shadow: 0 24px 70px rgba(0,0,0,0.08);
  text-align: center;
  animation: tlcf-rise 320ms ease;
}
.tlcf-intro-title {
  font-weight: 800;
  font-size: clamp(28px, 4.8vw, 48px);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.tlcf-intro-sub {
  color: var(--tlcf-muted);
  font-size: clamp(14px, 1.4vw, 18px);
  margin: 0 0 24px;
}
.tlcf-start {
  background: var(--tlcf-brand) !important;
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 14px 22px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.tlcf-start:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.10);
}

/* Steps */
.tlcf-step {
  width: min(820px, 100%);
  display: none;
  animation: tlcf-rise 320ms ease;
  background: #ffffff;
  border-radius: 24px;
  padding: clamp(20px, 4vw, 48px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}
.tlcf-step.is-active { display: block; }

.tlcf-question {
  font-size: clamp(24px, 4vw, 40px);
  line-height: 1.15;
  margin: 6px 0 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.tlcf-input {
  width: 100%;
  font-size: clamp(16px, 1.6vw, 18px);
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #e5e8ef;
  outline: none;
  transition: box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
  box-sizing: border-box;
  background: #fbfcfe;
}
.tlcf-input:focus {
  border-color: color-mix(in srgb, var(--tlcf-brand), white 60%);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--tlcf-brand), transparent 80%);
  background: white;
}

.tlcf-help {
  opacity: 0.7;
  color: var(--tlcf-muted);
  font-size: 13px;
  margin-top: 8px;
}

.tlcf-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.tlcf-actions .button {
  background: #e6efe0;
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}
.tlcf-actions .button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.06);
}
.tlcf-actions .button-primary {
  background: var(--tlcf-brand);
  color: #fff;
}

/* Thanks / Animated ending */
.tlcf-thanks {
  text-align: center;
  position: relative;
  overflow: hidden;
}
.tlcf-home {
  display: inline-block;
  margin-top: 14px;
  text-decoration: none;
  background: var(--tlcf-brand);
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
}

/* Confetti animation */
.tlcf-confetti {
  position: absolute;
  inset: -20px 0 0 0;
  pointer-events: none;
}
.tlcf-confetti span {
  position: absolute;
  top: -10px;
  width: 10px;
  height: 14px;
  background: var(--tlcf-brand);
  opacity: .9;
  transform: rotate(15deg);
  animation: tlcf-fall 1400ms ease-in forwards;
}
.tlcf-confetti span:nth-child(odd) { background: #88a96d; }
.tlcf-confetti span:nth-child(1) { left: 10%; animation-delay: 0ms; }
.tlcf-confetti span:nth-child(2) { left: 25%; animation-delay: 80ms; }
.tlcf-confetti span:nth-child(3) { left: 40%; animation-delay: 160ms; }
.tlcf-confetti span:nth-child(4) { left: 55%; animation-delay: 240ms; }
.tlcf-confetti span:nth-child(5) { left: 70%; animation-delay: 320ms; }
.tlcf-confetti span:nth-child(6) { left: 85%; animation-delay: 400ms; }
.tlcf-confetti span:nth-child(7) { left: 15%; animation-delay: 480ms; }
.tlcf-confetti span:nth-child(8) { left: 35%; animation-delay: 560ms; }
.tlcf-confetti span:nth-child(9) { left: 60%; animation-delay: 620ms; }
.tlcf-confetti span:nth-child(10){ left: 80%; animation-delay: 700ms; }

@keyframes tlcf-fall {
  0%   { transform: translateY(-20px) rotate(0deg); opacity: 0; }
  15%  { opacity: 1; }
  100% { transform: translateY(260px) rotate(250deg); opacity: 0; }
}

@keyframes tlcf-rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .tlcf-step, .tlcf-intro-card {
    border-radius: 18px;
    padding: 20px;
  }
}