/* =========================
   WTL Modern / Minimal UI
   Scope: SOLO web-to-lead
========================= */

html, body{
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

body.web-to-lead{
  background: #f6f7fb !important;
  color: #0f172a !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* -------------------------
   FULL WIDTH (romper bootstrap "frame")
------------------------- */

/* Quitar offsets/cols angostos típicos del WTL */
body.web-to-lead .col-md-6.col-md-offset-3,
body.web-to-lead .col-md-8.col-md-offset-2{
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  float: none !important;
}

/* El container y row no deben crear márgenes laterales */
body.web-to-lead .container-fluid{
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.web-to-lead .row{
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* -------------------------
   FORM WRAPPER (Card)
   - En móvil: full width
   - En desktop: ancho pro (ajustable)
------------------------- */

body.web-to-lead .form-col{
  width: 100% !important;
  max-width: 1100px; /* 👈 Ajusta aquí si lo quieres aún más ancho */
  margin: 18px auto !important;

  background: #fff !important;
  border: 1px solid rgba(15, 23, 42, .10) !important;
  border-radius: 18px !important;
  box-shadow: 0 12px 40px rgba(15, 23, 42, .08) !important;

  padding: 20px !important;
}

/* En móviles: full width real (sin “angostar”) */
@media (max-width: 768px){
  body.web-to-lead .form-col{
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border-left: 0 !important;
    border-right: 0 !important;
    padding: 16px !important;
  }
}

/* -------------------------
   Typography
------------------------- */

body.web-to-lead label{
  font-weight: 700 !important;
  color: #0f172a !important;
}

body.web-to-lead p,
body.web-to-lead .text-muted{
  color: rgba(15, 23, 42, .62) !important;
}

/* -------------------------
   Inputs
------------------------- */

body.web-to-lead input[type="text"],
body.web-to-lead input[type="email"],
body.web-to-lead input[type="tel"],
body.web-to-lead input[type="number"],
body.web-to-lead input[type="date"],
body.web-to-lead textarea,
body.web-to-lead select{
  width: 100% !important;
  border-radius: 14px !important;
  border: 1px solid rgba(15, 23, 42, .14) !important;
  padding: 12px 14px !important;
  height: auto !important;
  box-shadow: none !important;
  outline: none !important;
  background: #fff !important;
}

body.web-to-lead input:focus,
body.web-to-lead textarea:focus,
body.web-to-lead select:focus{
  border-color: rgba(37, 99, 235, .55) !important;
}

/* Evita zoom raro iOS */
@media (max-width: 768px){
  body.web-to-lead input,
  body.web-to-lead select,
  body.web-to-lead textarea{
    font-size: 16px !important;
  }
}

/* -------------------------
   Submit button
------------------------- */

body.web-to-lead #form_submit{
  width: 100% !important;
  border-radius: 16px !important;
  padding: 14px 18px !important;
  font-weight: 800 !important;
  letter-spacing: .2px !important;
}

/* ================================
   BATTERY PICKER UI + QTY (ed-*)
   (esto es lo que usa tu JS nuevo)
================================ */

.ed-battery-picker{
  width: 100%;
  border: 1px solid #e9eef5;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.ed-battery-item{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid #eef2f7;
}

.ed-battery-item:last-child{ border-bottom: 0; }

.ed-battery-left{
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1 1 auto;
}

.ed-battery-label{
  font-weight: 800;
  line-height: 1.15;
  white-space: normal;
}

/* Caja qty a la derecha */
.ed-battery-qty{
  flex: 0 0 auto;
  width: 96px;
}

.ed-battery-qty input{
  width: 100%;
  height: 44px;
  border-radius: 14px;
  border: 1px solid #d9e2ef;
  text-align: center;
  font-weight: 700;
  outline: none;
}

/* Checkbox grande y consistente SOLO en el picker */
.ed-battery-picker input[type="checkbox"]{
  width: 34px;
  height: 34px;
  border-radius: 12px;
}

/* Mobile: asegura que no se monte */
@media (max-width: 480px){
  .ed-battery-item{
    padding: 14px;
    gap: 10px;
  }
  .ed-battery-qty{
    width: 86px;
  }
}

/* Si el label está “cortando” feo, esto ayuda */
.ed-battery-label{
  word-break: break-word;
}
