* {
  box-sizing: border-box;
  font-family: "Inter", Arial, sans-serif;
}

/* ===== BANNER ===== */
.home-banner img {
  width: 100%;
  display: block;
}

/* ===== FORM ===== */
.form-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

.form-title {
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/* ===== MARCA SELECTOR ===== */
.form-label {
  margin: 30px 0 16px;
  font-weight: 600;
}

.brand-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
  margin-top: 20px;
}

.brand-selector input {
  display: none;
}

.brand-selector label {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  background: #fff;
  transition: 0.25s;
}

.brand-selector img {
  max-height: 40px;
  max-width: 90%;
  object-fit: contain;
}

.brand-selector label:hover {
  border-color: #000;
}

.brand-selector input:checked + label {
  border-color: #000;
  box-shadow: 0 0 0 2px #000;
}

/* ===== CHECKBOX ===== */
.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ===== BUTTON ===== */
.btn-submit {
  padding: 14px 24px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.brand-logo {
  height: 80px;
  max-width: 120px;
  object-fit: contain;
}

/* 🔥 FORCE brand logos size */
.brand-selector img.brand-logo {
  width: auto !important;
  height: 80px !important;
  max-width: 120px !important;
  max-height: none !important;
  object-fit: contain;
}

/* ===== FORM GRID ===== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* Desktop */
@media (min-width: 992px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

/* Make grid fields breathe */
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
}

.form-group input {
  width: 100%;
}

.brand-selector.has-error {
  border: 2px solid #c0392b;
  padding: 12px;
  border-radius: 8px;
  color: #c0392b;
}

.field-error {
  margin-top: 10px;
  color: #c0392b;
  font-size: 14px;
  font-weight: 500;
}

/* ===== CONSENTS (checkbox + text aligned) ===== */
.consent-group {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: flex-start;
  max-width: 900px;   /* 👈 mismo ancho para ambos */
  margin: 16px 0;
}

.consent-group input[type="checkbox"] {
  margin-top: 4px;   /* alinea con el texto */
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.consent-group label {
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
}

/* Error below, aligned */
.field-error {
  max-width: 900px;
  margin-top: 6px;
  color: #c0392b;
  font-size: 13px;
}

/* ===== Marca selected state ===== */
.brand-option {
  padding: 12px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

/* Hide the radio but keep it accessible */
.brand-option input[type="radio"] {
  position: absolute;
  opacity: 0;
}

/* 🔥 BORDER when selected */
.brand-option input[type="radio"]:checked + .brand-logo {
  border: 3px solid #000;        /* color of the border */
  border-radius: 12px;
  padding: 8px;
  background: #fff;
}

/* Optional hover feedback */
.brand-option:hover .brand-logo {
  transform: scale(1.05);
}

.registro-intro{
  margin: 24px 0 12px;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  max-width: 900px;
}
