/* Vehicle Tyre Finder — clean, professional UI (theme-safe) */
.vtf {
  --vtf-radius: 14px;
  --vtf-border: rgba(15, 23, 42, 0.14);
  --vtf-muted: rgba(15, 23, 42, 0.65);
  --vtf-bg: rgba(255, 255, 255, 0.92);
  --vtf-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --vtf-ring: 0 0 0 3px rgba(59, 130, 246, 0.25);
  --vtf-focus: rgba(59, 130, 246, 0.9);

  font-family: inherit;
  max-width: 1100px;
}

.vtf__header {
  margin: 0 0 14px 0;
}

.vtf__title {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.vtf__subtitle {
  margin: 8px 0 0 0;
  color: var(--vtf-muted);
  font-size: 15px;
  line-height: 1.5;
}

.vtf__card {
  background: var(--vtf-bg);
  border: 1px solid var(--vtf-border);
  border-radius: var(--vtf-radius);
  box-shadow: var(--vtf-shadow);
  padding: 18px;
}

.vtf__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 14px;
  align-items: end;
}

@media (max-width: 980px) {
  .vtf__grid {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }
}
@media (max-width: 560px) {
  .vtf__grid {
    grid-template-columns: 1fr;
  }
}

.vtf__field {
  display: grid;
  gap: 8px;
}

.vtf__label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.88);
}

.vtf__control {
  position: relative;
}

/* Custom select arrow */
.vtf__control::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 10px;
  height: 10px;
  pointer-events: none;
  transform: translateY(-50%) rotate(45deg);
  border-right: 2px solid rgba(15, 23, 42, 0.45);
  border-bottom: 2px solid rgba(15, 23, 42, 0.45);
}

/* Select base */
.vtf__select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  height: 44px;
  padding: 0 42px 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  background: rgba(255, 255, 255, 0.98);

  font-size: 14px;
  line-height: 1;
  color: rgba(15, 23, 42, 0.92);

  transition: border-color 140ms ease, box-shadow 140ms ease,
    background 140ms ease;
}

.vtf__select:hover {
  border-color: rgba(15, 23, 42, 0.28);
}

.vtf__select:focus {
  outline: none;
  border-color: var(--vtf-focus);
  box-shadow: var(--vtf-ring);
}

.vtf__select:disabled {
  background: rgba(148, 163, 184, 0.12);
  color: rgba(15, 23, 42, 0.45);
  cursor: not-allowed;
}

/* Result area */
.vtf__result {
  margin-top: 16px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(248, 250, 252, 0.9);
  padding: 14px;
}

.vtf__hint {
  color: rgba(15, 23, 42, 0.6);
  font-size: 14px;
}

/* Make lists in result look crisp */
.vtf__result ul {
  margin: 8px 0 0 18px;
}
.vtf__result li {
  margin: 4px 0;
}

.vtf-search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.vtf-search-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  background: #fff;
}

.vtf-search-size {
  font-size: 15px;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.92);
}

.vtf-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s ease, transform 0.15s ease;
}

.vtf-search-btn:hover {
  background: #1d4ed8;
  color: #fff;
  transform: translateY(-1px);
}

@media (max-width: 560px) {
  .vtf-search-grid {
    grid-template-columns: 1fr;
  }
}
