/* MetroUsados Formularios — mismo look que tenían los formularios de JotForm
   (campos tipo píldora gris #ddd, botón amarillo #f8be00). */

.muf-form {
  --muf-input-bg: #dddddd;
  --muf-input-fg: #000000;
  --muf-accent: #f8be00;
  --muf-accent-hover: #e0ab00;
  --muf-error: #e5484d;
  --muf-text: #000d1a;
  --muf-muted: #555555;
  font-family: "Trebuchet MS", sans-serif;
  color: var(--muf-text);
  text-align: left;
  max-width: 560px;
  margin: 0 auto;
}
.muf-form--dark {
  --muf-text: #ffffff;
  --muf-muted: #d9d9d9;
  --muf-error: #ff8a8d;
}

.muf-form *,
.muf-form *::before,
.muf-form *::after { box-sizing: border-box; }

.muf-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.muf-hp { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.muf-field { margin: 0 0 16px; }

.muf-input {
  display: block;
  width: 100%;
  height: 56px;
  padding: 0 24px;
  border: 2px solid transparent;
  border-radius: 35px;
  background: var(--muf-input-bg);
  color: var(--muf-input-fg);
  font: 400 14px/1.2 "Trebuchet MS", sans-serif;
  box-shadow: none;
  outline: none;
  transition: border-color .15s ease, background-color .15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.muf-input::placeholder { color: #000; opacity: 1; }
.muf-input:focus { border-color: var(--muf-accent); background: #e8e8e8; }

.muf-select {
  cursor: pointer;
  padding-right: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23000' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 24px center;
}

.muf-help {
  display: block;
  margin: 6px 0 0 14px;
  font-size: 10px;
  color: var(--muf-muted);
}

.muf-field.is-invalid .muf-input { border-color: var(--muf-error); }
.muf-error {
  display: block;
  margin: 4px 0 0 14px;
  font-size: 12px;
  color: var(--muf-error);
}
.muf-error:empty { display: none; }

/* Resumen del vehículo (modal de usados) */
.muf-vehiculo {
  list-style: none;
  margin: 4px 0 18px;
  padding: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muf-text);
}
.muf-vehiculo li { margin: 0; padding: 0; }
.muf-vehiculo li[hidden] { display: none; }
.muf-vehiculo strong { font-weight: 700; }
.muf-vehiculo span { font-weight: 700; }

/* Radios y checkbox con el círculo de JotForm */
.muf-group-label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
}
.muf-req { color: var(--muf-accent); }
.muf-choices { display: flex; flex-wrap: wrap; gap: 8px 0; }
.muf-choices .muf-choice { flex: 0 0 50%; }
.muf-choice {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
  margin: 0;
  position: relative;
}
.muf-choice input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
}
.muf-choice__dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #555;
  border: 2px solid #555;
  flex: 0 0 auto;
  transition: background-color .15s ease, box-shadow .15s ease;
}
.muf-choice input:checked + .muf-choice__dot {
  background: var(--muf-accent);
  border-color: var(--muf-accent);
  box-shadow: inset 0 0 0 4px #555;
}
.muf-choice input:focus-visible + .muf-choice__dot { outline: 2px solid var(--muf-accent); outline-offset: 2px; }
.muf-field--check.is-invalid .muf-choice__dot,
.muf-field--radio.is-invalid .muf-choice__dot { border-color: var(--muf-error); }

.muf-legal {
  font-size: 11px;
  line-height: 1.6;
  margin: 6px 0 12px;
  color: var(--muf-text);
}
.muf-legal a { color: #8a8a8a; text-decoration: none; }
.muf-form--dark .muf-legal a { color: #bdbdbd; }
.muf-legal a:hover { text-decoration: underline; }

.muf-alert {
  margin: 0 0 14px;
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 13px;
  background: #fdecec;
  color: #8a1c1f;
}
.muf-alert[hidden] { display: none; }

.muf-submit {
  display: block;
  width: 100%;
  height: 60px;
  padding: 0 30px;
  margin-top: 8px;
  border: 0;
  border-radius: 100px;
  background: var(--muf-accent);
  color: #000;
  font: 400 14px/1 "Lucida Grande", "Trebuchet MS", sans-serif;
  cursor: pointer;
  transition: background-color .15s ease, opacity .15s ease;
}
.muf-submit:hover { background: var(--muf-accent-hover); }
.muf-submit:disabled { opacity: .65; cursor: progress; }

.muf-success {
  max-width: 560px;
  margin: 20px auto;
  padding: 24px;
  border-radius: 24px;
  background: #f4f4f4;
  color: #000d1a;
  font: 400 16px/1.5 "Trebuchet MS", sans-serif;
  text-align: center;
}

/* Dentro del modal de /compra-tu-carro/ (antes era un iframe) */
#myModal .modal-body .muf-form { padding: 10px 0 30px; }
