.vehicle-form-open {
  font-family: inherit;
  cursor: pointer;
}

body.vehicle-dialog-open {
  overflow: hidden;
}

.vehicle-dialog[hidden] {
  display: none;
}

.vehicle-dialog {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.vehicle-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: #030405d9;
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.vehicle-form-card {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  padding: clamp(28px, 5vw, 50px);
  border: 1px solid #45484d;
  background: linear-gradient(145deg, #17191d, #0d0f12);
  box-shadow: 0 28px 90px #000c;
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.vehicle-dialog.is-open .vehicle-dialog-backdrop,
.vehicle-dialog.is-open .vehicle-form-card {
  opacity: 1;
}

.vehicle-dialog.is-open .vehicle-form-card {
  transform: translateY(0) scale(1);
}

.vehicle-form-close {
  position: absolute;
  top: 15px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid #ffffff2b;
  background: #111317;
  color: #f3f1ec;
  font: 300 1.8rem/1 Manrope, sans-serif;
  cursor: pointer;
}

.vehicle-form-index {
  margin: 0 54px 8px 0;
  color: #d8b36b;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.vehicle-form-card h2 {
  margin: 0;
  font: 600 clamp(2.4rem, 6vw, 4.4rem)/1 Oswald, sans-serif;
}

.vehicle-form-intro {
  max-width: 560px;
  margin: 14px 0 26px;
  color: #a7aaae;
  font-size: 1rem;
  line-height: 1.7;
}

.vehicle-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.vehicle-form-grid label {
  display: grid;
  gap: 8px;
}

.vehicle-form-grid label > span {
  color: #d5d6d7;
  font-size: 0.875rem;
  font-weight: 700;
}

.vehicle-form-grid label b {
  color: #d8b36b;
}

.vehicle-form-grid input,
.vehicle-form-grid textarea {
  width: 100%;
  border: 1px solid #363a40;
  border-radius: 0;
  outline: none;
  background: #0b0d10;
  color: #f3f1ec;
  font: 500 1rem/1.5 Manrope, sans-serif;
}

.vehicle-form-grid input {
  min-height: 50px;
  padding: 0 14px;
}

.vehicle-form-grid textarea {
  min-height: 88px;
  padding: 12px 14px;
  resize: vertical;
}

.vehicle-form-grid input:focus,
.vehicle-form-grid textarea:focus {
  border-color: #d8b36b;
  box-shadow: 0 0 0 3px #d8b36b1f;
}

.vehicle-form-wide {
  grid-column: 1 / -1;
}

.vehicle-channel-picker {
  margin: 26px 0 0;
  padding: 20px;
  border: 1px solid #30343a;
}

.vehicle-channel-picker legend {
  padding: 0 8px;
  color: #d8b36b;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.vehicle-channel-picker > p {
  margin: 0 0 15px;
  color: #85898e;
  font-size: 0.82rem;
  line-height: 1.55;
}

.vehicle-channel-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.vehicle-channel-list button {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #45494f;
  background: #171a1e;
  color: #f3f1ec;
  font: 700 0.875rem Manrope, sans-serif;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}

.vehicle-channel-list button:hover,
.vehicle-channel-list button:focus-visible {
  border-color: #d8b36b;
  color: #d8b36b;
  outline: none;
  transform: translateY(-1px);
}

.vehicle-channel-list button b {
  font-size: 1.05rem;
}
.vehicle-channel-list button .platform-icon{display:block;width:20px;height:20px;object-fit:contain}

.vehicle-form-status {
  min-height: 44px;
  margin: 14px 0 0;
  color: #d8b36b;
  font-size: 0.875rem;
  line-height: 1.55;
}

.fitment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.fitment-actions .button {
  min-width: 190px;
}

.fitment-actions button {
  background: transparent;
  color: #f3f1ec;
  cursor: pointer;
}

@media (max-width: 520px) {
  .fitment-actions .button {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .vehicle-dialog {
    align-items: end;
    padding: 12px;
  }

  .vehicle-form-card {
    max-height: calc(100dvh - 24px);
    padding: 28px 18px calc(22px + env(safe-area-inset-bottom));
  }

  .vehicle-form-card h2 {
    font-size: 2.55rem;
  }

  .vehicle-form-intro {
    margin-bottom: 20px;
    font-size: 0.94rem;
  }

  .vehicle-form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .vehicle-form-wide {
    grid-column: auto;
  }

  .vehicle-channel-picker {
    margin-top: 20px;
    padding: 16px 12px;
  }

  .vehicle-channel-list {
    gap: 7px;
  }

  .vehicle-channel-list button {
    min-height: 50px;
    flex-direction: column;
    gap: 3px;
    font-size: 0.75rem;
  }
}
