/*
-----------------------------------------------------------------------
  Formularios públicos: Libro de Reclamaciones y Contacto
-----------------------------------------------------------------------
*/
.fx-contenedor { max-width: 820px; margin: 0 auto; padding: 28px 0 56px; }

.fx-tarjeta {
  background: #fff;
  border: 1px solid #e3e6ef;
  border-radius: 12px;
  padding: 22px 18px;
}

.fx-proveedor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin: 0 0 24px;
  padding: 14px 16px;
  background: #f6f7fb;
  border-radius: 10px;
  font-size: 14px;
}
.fx-proveedor dt { color: #6b7189; font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.fx-proveedor dd { margin: 0; color: #0b2350; font-weight: 600; overflow-wrap: anywhere; }

.fx-form fieldset { border: 0; margin: 0 0 26px; padding: 0; min-width: 0; }
.fx-form legend {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  color: #0b2350;
  margin-bottom: 14px;
  float: none;
  width: auto;
}
.fx-form legend span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0b2350;
  color: #ff6a45;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fx-grid { display: grid; gap: 0 16px; }
.fx-campo { margin-bottom: 14px; }
.fx-label { display: block; font-size: 14px; font-weight: 500; color: #2b3148; margin-bottom: 6px; }
.fx-campo .form-control,
.fx-campo select {
  width: 100%;
  min-height: 48px;
  font-size: 16px; /* evita el zoom automático en iOS */
  border-radius: 8px;
}
.fx-campo textarea.form-control { min-height: 0; }
.fx-campo.has-error .form-control { border-color: #d92d20; }
.fx-ayuda { margin: 4px 0 0; font-size: 13px; color: #6b7189; }
.fx-error { margin: 4px 0 0; font-size: 13px; color: #d92d20; }

.fx-opciones { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-opcion { position: relative; margin: 0; cursor: pointer; }
.fx-opcion input { position: absolute; opacity: 0; pointer-events: none; }
.fx-opcion span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #dde1ea;
  border-radius: 999px;
  font-size: 15px;
  background: #fff;
}
.fx-opcion input:checked + span { background: #0b2350; border-color: #0b2350; color: #fff; }
.fx-opcion input:focus-visible + span { outline: 2px solid #0b2350; outline-offset: 2px; }

.fx-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 14px;
  font-size: 15px;
  cursor: pointer;
}
.fx-check input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; }
.fx-check.has-error span { color: #d92d20; }

.fx-definiciones {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-left: 4px solid #0b2350;
  background: #fff0eb;
  border-radius: 4px;
  font-size: 14px;
}
.fx-definiciones p { margin: 0; }
.fx-definiciones p + p { margin-top: 4px; }

.fx-enviar { width: 100%; min-height: 52px; font-size: 16px; }
.fx-nota { margin: 16px 0 0; font-size: 13px; color: #6b7189; }

/* Campo trampa para bots: fuera de la vista, pero no display:none (algunos bots lo detectan) */
.fx-trampa { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.fx-exito {
  text-align: center;
  background: #fff;
  border: 1px solid #e3e6ef;
  border-radius: 12px;
  padding: 36px 20px;
}
.fx-exito > i { font-size: 44px; color: #c8441f; margin-bottom: 10px; }
.fx-exito h2 { font-size: 22px; color: #0b2350; margin: 0 0 10px; }
.fx-exito p { margin: 0 0 8px; }
.fx-exito .btn-theme { margin-top: 14px; display: inline-block; }
.fx-codigo { font-size: 20px; letter-spacing: .04em; color: #0b2350; }

@media (min-width: 576px) {
  .fx-tarjeta { padding: 30px 32px; }
  .fx-grid { grid-template-columns: 1fr 1fr; }
  .fx-col-2 { grid-column: 1 / -1; }
  .fx-proveedor { grid-template-columns: 2fr 1fr; }
  .fx-enviar { width: auto; padding: 0 32px; }
}
@media (min-width: 768px) {
  .fx-contenedor { padding: 40px 0 72px; }
}
