/* wa-lint: skip */
/* Blog-hero: kontaktform → match-flow */

.blog-hero-match {
  width: 100%;
  aspect-ratio: 600 / 380;
  background: rgb(255, 255, 255);
  border-radius: 24px;
  box-shadow: 0 1px 0 rgba(49, 79, 89, 0.04), 0 30px 60px -20px rgba(49, 79, 89, 0.25);
  padding: 0;
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .blog-hero-match { background: var(--surface); }

.blog-hero-match__slider {
  display: flex;
  width: 200%;
  height: 100%;
  animation: blog-match-slide 14s ease-in-out infinite;
}

.blog-hero-match__panel {
  width: 50%;
  height: 100%;
  flex-shrink: 0;
  padding: 16px 24px 20px;
  display: flex;
  flex-direction: column;
}

.blog-hero-match__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(49, 79, 89, 0.10);
  margin-bottom: 14px;
  font-family: var(--font-display, system-ui), sans-serif;
}

.blog-hero-match__title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(12px, 1.5vw, 15px);
  font-weight: 700;
  color: var(--primary, rgb(49, 79, 89));
}

.blog-hero-match__sub {
  font-size: clamp(9px, 1.05vw, 11px);
  color: rgba(49, 79, 89, 0.55);
}
.blog-hero-match__sub--ok { color: var(--brand-success, rgb(0, 136, 60)); font-weight: 700; }

/* PANEL 1: form */
.blog-hero-match__form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.blog-hero-match__row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.blog-hero-match__row label {
  font-family: var(--font-display, system-ui), sans-serif;
  font-size: clamp(9px, 1.05vw, 11px);
  font-weight: 700;
  color: rgba(49, 79, 89, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.blog-hero-match__input {
  height: 28px;
  border: 1px solid rgba(49, 79, 89, 0.18);
  border-radius: 4px;
  background: rgba(49, 79, 89, 0.03);
}
.blog-hero-match__input--area {
  height: 50px;
}
[data-theme="dark"] .blog-hero-match__input {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.12);
}

.blog-hero-match__btn-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.blog-hero-match__btn {
  padding: 7px 18px;
  border-radius: 6px;
  background: var(--brand-50, rgb(49, 79, 89));
  color: rgb(255, 255, 255);
  font-family: var(--font-display, system-ui), sans-serif;
  font-size: clamp(10px, 1.2vw, 12px);
  font-weight: 700;
}

.blog-hero-match__hint {
  margin-top: 10px;
  padding: 7px 11px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.08);
  font-family: var(--font-display, system-ui), sans-serif;
  font-size: clamp(10px, 1.2vw, 12px);
  font-style: italic;
  color: rgb(185, 28, 28);
  text-align: center;
}

/* PANEL 2: flow */
.blog-hero-match__flow {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 0;
}

.blog-hero-match__q {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 5px 10px;
  border-radius: 5px;
  background: rgba(49, 79, 89, 0.03);
  font-family: var(--font-display, system-ui), sans-serif;
  font-size: clamp(9px, 1.1vw, 11px);
  color: var(--text, rgb(29, 35, 39));
}
[data-theme="dark"] .blog-hero-match__q { background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.85); }

.blog-hero-match__q--done { border-left: 3px solid var(--brand-success, rgb(0, 136, 60)); }
.blog-hero-match__q--skip { border-left: 3px solid rgba(49, 79, 89, 0.25); opacity: 0.72; }

.blog-hero-match__q-num {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-success, rgb(0, 136, 60));
  color: rgb(255, 255, 255);
  font-weight: 700;
  font-size: 9px;
}
.blog-hero-match__q-num--skip {
  background: rgba(49, 79, 89, 0.35);
}

.blog-hero-match__q-ans {
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.85em;
  white-space: nowrap;
}
.blog-hero-match__q-ans--yes {
  background: rgba(0, 136, 60, 0.15);
  color: var(--brand-success, rgb(0, 136, 60));
}
.blog-hero-match__q-ans--no {
  background: rgba(49, 79, 89, 0.08);
  color: rgba(49, 79, 89, 0.65);
}

.blog-hero-match__outcome {
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-family: var(--font-display, system-ui), sans-serif;
  font-size: clamp(10px, 1.2vw, 12px);
  font-weight: 700;
}
.blog-hero-match__outcome--match {
  background: var(--brand-success, rgb(0, 136, 60));
  color: rgb(255, 255, 255);
}

@keyframes blog-match-slide {
  0%, 32%    { transform: translateX(0); }
  42%, 93%   { transform: translateX(-50%); }
  100%       { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .blog-hero-match__slider { animation: none; transform: translateX(-50%); }
}
