:root {
  --bg: #f2f6fb;
  --card: #ffffff;
  --text: #1f2937;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --success: #16a34a;
  --border: #d1d5db;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: radial-gradient(circle at top, #edf2ff 0%, #f8fafc 65%);
  color: var(--text);
}

.container {
  width: min(100%, 620px);
  margin: 40px auto;
  padding: 0 16px 40px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.08);
}

h1 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.6rem;
}

h2 {
  margin: 0;
  font-size: 1rem;
}

p {
  margin: 0 0 24px;
  line-height: 1.6;
}

label {
  display: block;
  margin-bottom: 18px;
  font-weight: 600;
  font-size: 0.95rem;
}

input {
  width: 100%;
  margin-top: 8px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  background: #fff;
}

.button {
  width: 100%;
  border: none;
  background: var(--accent);
  color: #fff;
  padding: 16px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.button:hover {
  background: var(--accent-hover);
}

.hidden {
  display: none;
}

.payment-result {
  margin-top: 20px;
  padding: 16px;
  border-radius: 14px;
  background: #dcfce7;
  color: #166534;
  font-weight: 700;
  border: 1px solid #bbf7d0;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.brand-logo {
  width: 160px;
  height: auto;
  display: block;
  object-fit: contain;
}

.brand-text {
  flex: 1;
  min-width: 0;
}

.brand-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
}

.brand-subtitle {
  margin: 6px 0 0;
  color: #475569;
  font-size: 0.94rem;
  line-height: 1.4;
}

.selection-panel {
  display: grid;
  gap: 12px;
  margin: 8px 0 16px;
}

.selection-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.selection-count {
  font-size: 0.9rem;
  font-weight: 700;
  color: #475569;
}

.option-card {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.option-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.option-card.is-selected {
  border-color: var(--accent);
  background: #eff6ff;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.16);
}

.option-bar {
  width: 8px;
  height: 40px;
  border-radius: 999px;
  flex-shrink: 0;
}

.option-bar.regular { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.option-bar.temporary { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.option-bar.stickers { background: linear-gradient(135deg, #0f766e, #5eead4); }
.option-bar.inspection { background: linear-gradient(135deg, #ea580c, #fb923c); }
.option-bar.insurance { background: linear-gradient(135deg, #dc2626, #f87171); }
.option-bar.license { background: linear-gradient(135deg, #15803d, #4ade80); }
.option-bar.title { background: linear-gradient(135deg, #0ea5e9, #7dd3fc); }

.option-label {
  font-weight: 700;
  font-size: 0.98rem;
}

.summary-card {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-weight: 600;
}

.payment-brands {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 20px;
  overflow-x: auto;
}

.payment-brands svg {
  width: 100%;
  max-width: 360px;
  height: 40px;
  display: block;
}

.row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
}

.spinner-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 6px solid rgba(37, 99, 235, 0.12);
  border-top-color: var(--accent);
  animation: spin 1s linear infinite;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.button:disabled {
  opacity: 0.6;
  cursor: default;
}

