.itv-page--app { min-height: 100vh; display: flex; flex-direction: column; }
.itv-app { flex: 1; padding: 18px 0 32px; }
.itv-app__shell { max-width: 680px; }

.itv-progress { margin-bottom: 18px; }
.itv-progress__top {
  display: flex;
  justify-content: space-between;
  color: var(--itv-muted);
  font-size: 0.9rem;
  font-family: var(--itv-nums);
  margin-bottom: 8px;
}
.itv-progress__track {
  height: 8px;
  background: #e4efe7;
  border-radius: 999px;
  overflow: hidden;
}
.itv-progress__track span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--itv-green);
  border-radius: inherit;
  transition: width .25s ease;
}

.itv-stage { min-height: 320px; }
.itv-stage__card {
  background: #fff;
  border-radius: 22px;
  padding: 22px 18px;
  box-shadow: var(--itv-shadow);
  border: 1px solid var(--itv-line);
}
.itv-stage__card.is-leave {
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity .18s ease, transform .18s ease;
}
.itv-stage__card.is-enter {
  opacity: 0;
  transform: translateX(12px);
}
.itv-stage__card.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .18s ease, transform .18s ease;
}

.itv-q-kicker {
  color: var(--itv-green);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.itv-q-title { font-size: 1.2rem; margin-bottom: 8px; }
.itv-q-hint { color: var(--itv-muted); font-size: 0.92rem; }

.itv-options {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.itv-option {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--itv-line);
  border-radius: 14px;
  padding: 14px 14px;
  cursor: pointer;
  background: #fff;
}
.itv-option:hover { border-color: #b7d4be; }
.itv-option:focus-within { border-color: var(--itv-green); box-shadow: 0 0 0 3px rgba(56, 102, 66, 0.16); }
.itv-option.is-checked,
.itv-option:has(input:checked) {
  border-color: var(--itv-green);
  background: var(--itv-mint-bg);
  box-shadow: inset 0 0 0 1px var(--itv-green);
}
.itv-option input {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #9bb7a2;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0;
  flex: 0 0 auto;
}
.itv-option input:checked {
  border-color: var(--itv-green);
  background: radial-gradient(circle, var(--itv-green) 45%, #fff 48%);
}

.itv-fields { display: grid; gap: 16px; margin-top: 8px; }
.itv-field label { display: block; font-weight: 700; margin-bottom: 8px; }
.itv-field input[type="text"],
.itv-field input[type="number"],
.itv-field input[type="tel"] {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--itv-line);
  border-radius: 16px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--itv-text);
}
.itv-glow-wrap { position: relative; }
.itv-field .itv-glow-wrap--icon input[type="text"],
.itv-field .itv-glow-wrap--icon input[type="number"],
.itv-field .itv-glow-wrap--icon input[type="tel"] {
  padding-inline-start: 52px;
  padding-inline-end: 14px;
}
.itv-field .itv-glow-wrap--icon input[dir="ltr"] {
  padding-left: 14px;
  padding-right: 52px;
}
.itv-field__ico {
  position: absolute;
  top: 50%;
  inset-inline-start: 14px;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 2;
  opacity: .88;
}
.itv-field--glow .itv-glow-wrap {
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(232, 247, 236, 0.9), rgba(255, 255, 255, 0.4));
  padding: 2px;
  box-shadow:
    0 10px 28px rgba(56, 102, 66, 0.08),
    0 0 0 6px rgba(219, 242, 226, 0.55);
}
.itv-field--glow input[type="text"],
.itv-field--glow input[type="number"],
.itv-field--glow input[type="tel"] {
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.itv-field--glow input::placeholder {
  color: #8aa090;
  font-size: 0.92rem;
}
.itv-field--glow input:focus {
  outline: none;
  background: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 0 0 3px rgba(109, 201, 88, 0.18);
}
.itv-field--glow .itv-glow-wrap:focus-within {
  box-shadow:
    0 12px 32px rgba(56, 102, 66, 0.12),
    0 0 0 7px rgba(219, 242, 226, 0.85),
    0 0 22px rgba(109, 201, 88, 0.18);
}
.itv-field .hint { color: var(--itv-muted); font-size: 0.85rem; margin-top: 6px; }

.itv-app__nav {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 10px;
  padding: 14px 0 calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, var(--itv-page) 24%);
}
.itv-app__nav .itv-btn { flex: 1; }
.itv-app__nav .itv-btn--ghost { flex: 0 0 auto; min-width: 108px; }

.itv-loading-box {
  text-align: center;
  padding: 28px 8px;
}
.itv-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--itv-mint);
  border-top-color: var(--itv-green);
  border-radius: 50%;
  margin: 0 auto 12px;
  animation: itvspin .7s linear infinite;
}
@keyframes itvspin { to { transform: rotate(360deg); } }

@media (min-width: 768px) {
  .itv-app { padding: 32px 0 48px; }
  .itv-stage__card { padding: 32px; }
  .itv-q-title { font-size: 1.4rem; }
}
