@import "../../assets/css/breakpoints.css";

/* ─── Form surface ──────────────────────────────────────────── */
.contact-form_bg {
  padding: clamp(var(--space-8), 4vw, var(--space-12));
}

/* ─── Form field row ────────────────────────────────────────── */
.contact-form_item--label {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  line-height: var(--leading-snug);
}

/* ─── Car selector cards ────────────────────────────────────── */
.slide-input_item {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: var(--space-4);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-primary);
  cursor: pointer;
  text-align: left;
  transition:
    border-color 180ms var(--ease-out),
    box-shadow   180ms var(--ease-out),
    background   180ms var(--ease-out),
    transform    180ms var(--ease-out);
}

.slide-input_item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.slide-input_item .body {
  margin-top: var(--space-3);
}

.slide-input_item .body .title {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  line-height: var(--leading-snug);
  transition: color 180ms var(--ease-out);
}

.slide-input_item .body .price {
  margin-top: var(--space-1);
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
}

.slide-input_item .body .price .fw-500 {
  color: var(--color-red-600);
  font-weight: var(--weight-semibold);
}

.slide-input_item .check {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background: var(--color-neutral-200);
  color: transparent;
  font-size: 11px;
  transition: background 180ms var(--ease-out), color 180ms var(--ease-out);
}

.slide-input_item:hover {
  border-color: var(--color-red-400);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.slide-input_item.active {
  border-color: var(--color-red-600);
  background: var(--color-red-50);
  box-shadow: var(--shadow-red);
}

.slide-input_item.active .body .title {
  color: var(--color-red-600);
}

.slide-input_item.active .check {
  background: var(--color-red-600);
  color: var(--color-white);
}

/* ─── Checkbox error state ──────────────────────────────────── */
.form-check-input.error {
  border-color: var(--color-error);
}

/* ─── Submit button ─────────────────────────────────────────── */
.form-button .btn {
  min-width: 200px;
}

/* ─── Mobile ────────────────────────────────────────────────── */
@media (--bp-lt-md) {
  .contact-form_bg {
    padding: var(--space-5);
  }

  .contact-form_item--label {
    margin-bottom: var(--space-1);
  }

  .slide-input_item {
    padding: var(--space-3);
  }

  .form-button .btn {
    width: 100%;
    min-width: unset;
  }
}
