:root {
  --ebh-bg: #f5f7fb;
  --ebh-surface: rgba(255,255,255,0.92);
  --ebh-surface-strong: #ffffff;
  --ebh-text: #111827;
  --ebh-muted: #5b6472;
  --ebh-border: rgba(17,24,39,0.12);
  --ebh-accent: #ffd400;
  --ebh-accent-soft: rgba(255,212,0,0.12);
  --ebh-shadow: 0 14px 34px rgba(15,23,42,0.10);
  --ebh-input-bg: rgba(255,255,255,0.96);
}

html.dark,
body.dark-mode,
body.dark,
[data-theme="dark"],
[data-color-mode="dark"] {
  --ebh-bg: #0b0f17;
  --ebh-surface: rgba(18,24,36,0.88);
  --ebh-surface-strong: rgba(13,18,28,0.96);
  --ebh-text: #f8fafc;
  --ebh-muted: #bec6d4;
  --ebh-border: rgba(255,255,255,0.12);
  --ebh-shadow: 0 18px 42px rgba(0,0,0,0.34);
  --ebh-input-bg: rgba(10,14,22,0.95);
}

.ebh-tool-wrap,
.ebh-card {
  color: var(--ebh-text);
}

.ebh-tool-wrap {
  display: grid;
  gap: 20px;
}

.ebh-card {
  background: var(--ebh-surface);
  border: 1px solid var(--ebh-border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--ebh-shadow);
  backdrop-filter: blur(10px);
}

.ebh-card-header h2,
.ebh-best-card h3,
.ebh-offer-card h4 {
  margin: 0 0 10px;
  line-height: 1.15;
}

.ebh-card-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.ebh-card-header p,
.ebh-offer-card p,
.ebh-contact-cta p,
.ebh-meta-pill span,
.ebh-help {
  color: var(--ebh-muted);
  margin-top: 0;
}

.ebh-kicker {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ebh-text);
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--ebh-accent-soft);
  border: 1px solid rgba(255,212,0,0.35);
  box-shadow:
    0 0 10px rgba(255,212,0,0.38),
    0 0 20px rgba(255,212,0,0.12),
    inset 0 0 10px rgba(255,212,0,0.1);
}

.ebh-meta-row,
.ebh-offer-list {
  display: grid;
  gap: 14px;
}

.ebh-meta-row {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin: 16px 0 20px;
}

.ebh-meta-row-compact {
  max-width: 520px;
}

.ebh-meta-pill,
.ebh-best-card,
.ebh-offer-card,
.ebh-checkcard {
  border: 1px solid var(--ebh-border);
  background: rgba(255,255,255,0.04);
  border-radius: 18px;
  padding: 16px;
}

.ebh-meta-pill strong,
.ebh-price {
  display: block;
  font-size: 1.1rem;
}

.ebh-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.ebh-field,
.ebh-actions,
.ebh-field-full {
  min-width: 0;
}

.ebh-field-full,
.ebh-actions {
  grid-column: 1 / -1;
}

.ebh-field label {
  display: block;
  margin-bottom: 7px;
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.2;
}

.ebh-field input,
.ebh-field textarea {
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  padding: 11px 13px;
  border: 1px solid var(--ebh-border);
  background: var(--ebh-input-bg);
  color: var(--ebh-text);
  outline: none;
  font-size: 15px;
  line-height: 1.3;
  box-sizing: border-box;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background-color .2s ease;
}

.ebh-field textarea {
  min-height: 110px;
  resize: vertical;
}

.ebh-field input::placeholder,
.ebh-field textarea::placeholder {
  color: color-mix(in srgb, var(--ebh-muted) 75%, transparent);
}

.ebh-field input:focus,
.ebh-field textarea:focus {
  border-color: rgba(255,212,0,0.85);
  box-shadow:
    0 0 0 3px rgba(255,212,0,0.13),
    0 0 14px rgba(255,212,0,0.16);
}

.ebh-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.ebh-checkcard,
.ebh-checkline {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.ebh-checkcard {
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.ebh-checkcard:hover {
  transform: translateY(-1px);
  border-color: rgba(255,212,0,0.45);
  box-shadow: 0 0 18px rgba(255,212,0,0.10);
}

.ebh-checkcard input,
.ebh-checkline input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #ffd400;
}

.ebh-checkline-legal {
  padding: 14px 16px;
  border: 1px solid var(--ebh-border);
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
}

.ebh-required {
  color: #c88a00;
}

.ebh-field.is-required-active label {
  text-shadow: 0 0 10px rgba(255,212,0,0.22);
}

.ebh-button {
  appearance: none;
  border: 0;
  border-radius: 14px;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.ebh-button:hover {
  transform: translateY(-1px);
}

.ebh-button-primary {
  background: linear-gradient(180deg, #ffe75a 0%, #ffd400 100%);
  color: #1f2937;
  box-shadow:
    0 0 14px rgba(255,212,0,0.48),
    0 10px 18px rgba(255,212,0,0.12);
}

.ebh-results {
  margin-top: 22px;
}

.ebh-offer-list {
  margin-top: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.ebh-offer-top,
.ebh-offer-meta {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.ebh-offer-meta {
  margin: 12px 0 10px;
  color: var(--ebh-muted);
  font-size: .95rem;
}

.ebh-offer-card.is-best,
.ebh-best-card {
  border-color: rgba(255,212,0,0.45);
  box-shadow: 0 0 18px rgba(255,212,0,0.10);
}

.ebh-success,
.ebh-error {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 14px;
}

.ebh-success {
  border: 1px solid rgba(34,197,94,0.28);
  background: rgba(34,197,94,0.1);
}

.ebh-error {
  border: 1px solid rgba(239,68,68,0.28);
  background: rgba(239,68,68,0.1);
}

@media (max-width: 720px) {
  .ebh-card {
    padding: 20px;
    border-radius: 20px;
  }

  .ebh-grid {
    grid-template-columns: 1fr;
  }
}
