/* Linella 25 — квиз + регистрация (адаптив) */
.linella-quiz {
  --lq-green: #00a651;
  --lq-green-2: #61bc4d;
  --lq-title: #437437;
  --lq-text: #383534;
  --lq-muted: #64696c;
  --lq-bg: #f3f8f0;
  --lq-card: #fff;
  --lq-border: #dcead6;
  --lq-red: #ed1c24;
  padding: 28px 0 40px;
  background:
    radial-gradient(ellipse 70% 40% at 0% 0%, rgba(97, 188, 77, 0.16), transparent 55%),
    radial-gradient(ellipse 60% 35% at 100% 10%, rgba(0, 166, 81, 0.1), transparent 50%),
    var(--lq-bg);
  font-family: Rubik, Roboto, sans-serif;
  color: var(--lq-text);
}

.linella-quiz__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 15px;
}

.linella-quiz__badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 14px;
  border-radius: 6px;
  background: linear-gradient(225deg, var(--lq-green-2) 0%, var(--lq-green) 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

.linella-quiz__progress {
  height: 8px;
  background: #e4efe0;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 18px;
}

.linella-quiz__progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--lq-green-2), var(--lq-green));
  border-radius: 999px;
  transition: width 0.35s ease;
}

.lq-screen {
  display: none;
}

.lq-screen.active {
  display: block;
  animation: lqFade 0.28s ease;
}

@keyframes lqFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.lq-card {
  background: var(--lq-card);
  border: 1px solid var(--lq-border);
  border-radius: 14px;
  padding: 22px 22px 20px;
  box-shadow: 0 10px 28px rgba(0, 100, 50, 0.08);
}

.lq-eyebrow {
  margin: 0 0 8px;
  color: var(--lq-green);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.lq-title {
  margin: 0 0 10px;
  color: var(--lq-title);
  font-size: clamp(1.35rem, 4.2vw, 1.85rem);
  line-height: 1.2;
  font-weight: 700;
}

.lq-subtitle {
  margin: 0 0 18px;
  color: var(--lq-muted);
  font-size: clamp(0.95rem, 2.8vw, 1.05rem);
  line-height: 1.45;
}

.lq-options {
  display: grid;
  gap: 10px;
}

.lq-option {
  width: 100%;
  text-align: left;
  border: 1.5px solid var(--lq-border);
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: var(--lq-text);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
  min-height: 52px;
}

.lq-option:hover {
  border-color: var(--lq-green);
  background: #f7fbf5;
}

.lq-option.selected {
  border-color: var(--lq-green);
  background: linear-gradient(180deg, #f3faf4, #eaf6ea);
  box-shadow: inset 0 0 0 1px rgba(0, 166, 81, 0.15);
}

.lq-option:active {
  transform: scale(0.99);
}

.lq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 8px;
  padding: 0.85rem 1.2rem;
  border: none;
  border-radius: 8px;
  background: linear-gradient(225deg, var(--lq-green-2) 0%, var(--lq-green) 100%);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.lq-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.lq-btn:hover:not(:disabled) {
  filter: brightness(1.03);
}

.lq-form {
  display: grid;
  gap: 14px;
}

.lq-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--lq-title);
}

.lq-field input {
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 10px 14px;
  border: 1.5px solid var(--lq-border);
  border-radius: 8px;
  font: inherit;
  font-size: 16px; /* iOS zoom fix */
  color: var(--lq-text);
  background: #fff;
}

.lq-field input:focus {
  outline: none;
  border-color: var(--lq-green);
  box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.15);
}

.lq-field-error {
  display: none;
  margin-top: 6px;
  color: var(--lq-red);
  font-size: 13px;
}

.lq-field.has-error input {
  border-color: var(--lq-red);
}

.lq-field.has-error .lq-field-error {
  display: block;
}

.lq-phone-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.lq-phone-prefix {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1.5px solid var(--lq-border);
  border-radius: 8px;
  background: #f7faf6;
  font-weight: 600;
  color: var(--lq-muted);
  min-height: 48px;
}

.lq-phone-row input {
  flex: 1;
}

.lq-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.4;
  color: var(--lq-muted);
}

.lq-check input {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  accent-color: var(--lq-green);
  flex-shrink: 0;
}

.lq-check a {
  color: var(--lq-green);
}

.lq-note {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--lq-muted);
  line-height: 1.4;
}

@media (max-width: 767px) {
  .linella-quiz {
    padding: 20px 0 28px;
  }

  .lq-card {
    padding: 16px 14px 14px;
    border-radius: 12px;
  }

  .lq-option {
    padding: 13px 14px;
    font-size: 0.98rem;
  }
}

@media (min-width: 768px) {
  .lq-options {
    grid-template-columns: 1fr 1fr;
  }

  .lq-options--stack {
    grid-template-columns: 1fr;
  }
}
