.ebike-checker * { box-sizing: border-box; margin: 0; padding: 0; }

.ebike-checker {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  max-width: 680px;
  margin: 2rem auto;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.06);
  overflow: hidden;
  color: #1a1a2e;
  line-height: 1.6;
}

.ec-header {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  padding: 2rem 2rem 1.8rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ec-header::before {
  content: '';
  position: absolute;
  top: -40%; right: -20%;
  width: 300px; height: 300px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}
.ec-header-icon {
  font-size: 2.6rem;
  margin-bottom: 0.5rem;
  display: block;
}
.ec-header h2 {
  color: #fff;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}
.ec-header p {
  color: rgba(255,255,255,0.85);
  font-size: 0.92rem;
  font-weight: 400;
}

.ec-body { padding: 1.8rem 2rem 2rem; }

.ec-progress {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 1.6rem;
}
.ec-progress-bar {
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: #e8ecf1;
  transition: background 0.4s ease;
}
.ec-progress-bar.active { background: #007bff; }
.ec-progress-bar.done { background: #28a745; }
.ec-progress-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #8892a4;
  min-width: fit-content;
  white-space: nowrap;
}

.ec-step { display: none; animation: ecFadeIn 0.35s ease; }
.ec-step.active { display: block; }
@keyframes ecFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.ec-question {
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: #1a1a2e;
}
.ec-hint {
  font-size: 0.82rem;
  color: #6b7b8d;
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

.ec-options { display: flex; flex-direction: column; gap: 10px; }

.ec-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid #e4e8ee;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.95rem;
  font-weight: 500;
  background: #fafbfc;
  color: #1a1a2e !important;
  user-select: none;
  width: 100%;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.ec-option:hover {
  border-color: #007bff;
  background: #f0f6ff;
  transform: translateX(3px);
}
.ec-option .ec-opt-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.ec-option,
.ec-option span,
.ec-option strong,
.ec-option em {
  color: #1a1a2e !important;
}
.ec-option span:last-child {
  display: block;
  min-width: 0;
  flex: 1 1 auto;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.ec-option:hover,
.ec-option:hover span,
.ec-option:hover strong,
.ec-option:hover em,
.ec-option:focus,
.ec-option:focus span,
.ec-option:active,
.ec-option:active span {
  color: #1a1a2e !important;
}
.ec-option:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

.ec-result { display: none; animation: ecFadeIn 0.4s ease; }
.ec-result.active { display: block; }

.ec-verdict {
  padding: 1.6rem;
  border-radius: 14px;
  margin-bottom: 1.2rem;
  position: relative;
  overflow: hidden;
}
.ec-verdict::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 120px; height: 120px;
  border-radius: 50%;
  opacity: 0.08;
}
.ec-verdict.legal {
  background: linear-gradient(135deg, #e8f8ed 0%, #d4f1de 100%);
  border: 2px solid #28a745;
}
.ec-verdict.legal::before { background: #28a745; }
.ec-verdict.illegal {
  background: linear-gradient(135deg, #fdeaea 0%, #f8d7d7 100%);
  border: 2px solid #dc3545;
}
.ec-verdict.illegal::before { background: #dc3545; }
.ec-verdict.warning {
  background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
  border: 2px solid #ffc107;
}
.ec-verdict.warning::before { background: #ffc107; }

.ec-verdict-icon { font-size: 2.2rem; margin-bottom: 0.4rem; display: block; }
.ec-verdict-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}
.ec-verdict.legal .ec-verdict-title { color: #1b7a34; }
.ec-verdict.illegal .ec-verdict-title { color: #b71c2c; }
.ec-verdict.warning .ec-verdict-title { color: #8d6e00; }
.ec-verdict-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #333;
}

.ec-detail-section {
  background: #f7f8fa;
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
  margin-bottom: 0.8rem;
}
.ec-detail-section h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #007bff;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ec-detail-section ul {
  list-style: none;
  padding: 0;
}
.ec-detail-section li {
  font-size: 0.85rem;
  padding: 4px 0;
  padding-left: 18px;
  position: relative;
  color: #444;
  line-height: 1.55;
}
.ec-detail-section li::before {
  content: '›';
  position: absolute;
  left: 4px;
  color: #007bff;
  font-weight: 700;
}

.ec-penalty-box {
  background: linear-gradient(135deg, #fff3f3 0%, #ffe8e8 100%);
  border-left: 4px solid #dc3545;
  border-radius: 0 12px 12px 0;
  padding: 1rem 1.2rem;
  margin-bottom: 0.8rem;
}
.ec-penalty-box h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #dc3545;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ec-penalty-box p {
  font-size: 0.84rem;
  color: #555;
  line-height: 1.55;
}

.ec-cta {
  display: block;
  text-align: center;
  padding: 14px 20px;
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.92rem;
  margin-top: 1rem;
  transition: all 0.2s ease;
  box-shadow: 0 3px 12px rgba(0,123,255,0.25);
}
.ec-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(0,123,255,0.35);
}

.ec-buttons {
  display: flex;
  gap: 10px;
  margin-top: 1.4rem;
}
.ec-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}
.ec-btn-secondary {
  background: #f0f2f5;
  color: #444;
}
.ec-btn-secondary:hover { background: #e4e7eb; }

.ec-legal {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid #eaedf1;
  font-size: 0.74rem;
  color: #99a3b0;
  line-height: 1.55;
}

@media (max-width: 600px) {
  .ebike-checker {
    margin: 1rem;
    border-radius: 16px;
  }

  .ec-header {
    padding: 1.5rem 1.3rem;
  }

  .ec-header h2 {
    font-size: 1.3rem;
  }

  .ec-body {
    padding: 1.3rem 1.3rem 1.5rem;
  }

  .ec-question {
    font-size: 1.02rem;
  }

  .ec-options {
    gap: 8px;
  }

  .ec-option {
    align-items: flex-start;
    padding: 12px 13px;
    gap: 10px;
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .ec-option .ec-opt-icon {
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
    flex: 0 0 32px;
    margin-top: 1px;
  }
}