/* ==============================
   WeLeasing - Custom UI Overrides
   (Buttons + Simulator)
   ============================== */

/* Gradient button (matches UI mockups) */
.template-btn.btn-style-two.btn-gradient{
  border: 0;
  background: linear-gradient(90deg, #57B5C9 0%, #263D60 100%);
  border-radius: 999px;
  box-shadow: 0 14px 28px rgba(0,0,0,.18);
  color: #fff;
}
.template-btn.btn-style-two.btn-gradient:before{ display:none; }
.template-btn.btn-style-two.btn-gradient .btn-wrap .text-one,
.template-btn.btn-style-two.btn-gradient .btn-wrap .text-two{ color:#fff !important; }

/* WhatsApp pill */
.template-btn.btn-whatsapp{
  border: 0 !important;
  background: #11c15b;
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(0,0,0,.18);
  color: #fff;
}
.template-btn.btn-whatsapp:before{ display:none !important; }
.template-btn.btn-whatsapp .btn-wrap .text-one,
.template-btn.btn-whatsapp .btn-wrap .text-two{ color:#fff !important; }

/* Outline expert pill */
.template-btn.btn-experto{
  background: #fff !important;
  border: 2px solid #28b6d8 !important;
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(0,0,0,.12);
  color: #28b6d8 !important;
}
.template-btn.btn-experto:before{ display:none !important; }
.template-btn.btn-experto .btn-wrap .text-one,
.template-btn.btn-experto .btn-wrap .text-two{ color:#28b6d8 !important; }
.template-btn.btn-experto:hover{ background:#28b6d8 !important; }
.template-btn.btn-experto:hover .btn-wrap .text-one,
.template-btn.btn-experto:hover .btn-wrap .text-two{ color:#fff !important; }

/* Icon helper for buttons */
.template-btn .btn-ic{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-right:10px;
  line-height:0;
}
.template-btn .btn-ic svg{ width:18px; height:18px; display:block; }

/* Gradient text for first span in banner heading */
.banner-one_heading > span:first-of-type{
  background: linear-gradient(90deg, #57B5C9 0%, #263D60 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* ==============================
   Leasing Simulator
   ============================== */
.leasing-sim{
  padding: 90px 0 70px;
  position: relative;
}

.leasing-sim_card{
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(0,0,0,.08);
  padding: 26px 22px;
}

.leasing-sim_types{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:18px;
}
.leasing-type{
  appearance:none;
  border: 1px solid rgba(38,61,96,.18);
  background: #fff;
  color: #263D60;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  cursor:pointer;
  transition: all .2s ease;
}
.leasing-type:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,.08);
}
.leasing-type.active{
  border: 0;
  color: #fff;
  background: linear-gradient(90deg, #57B5C9 0%, #263D60 100%);
  box-shadow: 0 14px 28px rgba(0,0,0,.14);
}

.leasing-sim_grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 16px;
}

/* Slider layout (matches reference screenshot) */
.leasing-sim_grid--sliders{
  grid-template-columns: 1fr;
  gap: 18px;
}

.leasing-sim_slider-label{
  display:flex;
  align-items:center;
  gap: 10px;
}

.leasing-sim_slider-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(87,181,201,.14);
  font-size: 16px;
}

.leasing-sim_field label{
  display:block;
  font-weight: 700;
  margin-bottom: 8px;
  color:#263D60;
}

.leasing-sim_input{
  display:flex;
  align-items:center;
  gap:10px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 10px 12px;
  background:#fff;
}
.leasing-sim_prefix{ font-weight: 800; color:#263D60; }
.leasing-sim_hint{ font-size: 12px; color: rgba(38,61,96,.7); }

#ls-price{
  width:100%;
  border:0;
  outline:none;
  font-weight: 800;
  color:#263D60;
}

.leasing-sim_small{
  display:block;
  margin-top:8px;
  font-size:12px;
  color: rgba(38,61,96,.65);
}

.leasing-sim_field input[type="range"]{
  width:100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: #e7eff5; /* JS sets filled gradient */
  outline: none;
}

/* WebKit thumb */
.leasing-sim_field input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #16b6c7;
  box-shadow: 0 8px 18px rgba(0,0,0,.15);
  cursor: pointer;
}

/* Firefox track + thumb */
.leasing-sim_field input[type="range"]::-moz-range-track{
  height: 6px;
  border-radius: 999px;
  background: #e7eff5;
}
.leasing-sim_field input[type="range"]::-moz-range-progress{
  height: 6px;
  border-radius: 999px;
  background: #16b6c7;
}
.leasing-sim_field input[type="range"]::-moz-range-thumb{
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #16b6c7;
  box-shadow: 0 8px 18px rgba(0,0,0,.15);
  cursor: pointer;
}
.leasing-sim_range-meta{
  display:flex;
  justify-content:space-between;
  margin-top:6px;
  font-size:12px;
  color: rgba(38,61,96,.65);
}

select#ls-term{
  width:100%;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 12px;
  font-weight: 700;
  color:#263D60;
  outline:none;
  background:#fff;
}

.leasing-sim_result{
  border-radius: 22px;
  padding: 26px 22px;
  background: linear-gradient(90deg, #57B5C9 0%, #263D60 100%);
  color:#fff;
  box-shadow: 0 18px 40px rgba(0,0,0,.16);
}

.leasing-sim_badge{
  display:inline-flex;
  align-items:center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.22);
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 10px;
}

.leasing-sim_result h3{
  color:#fff;
  margin-bottom: 18px;
}

.leasing-sim_result-grid{
  display:grid;
  gap: 14px;
  margin-bottom: 14px;
}

.leasing-sim_metric{
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  padding: 14px 14px;
}
.leasing-sim_metric .label{ font-size: 13px; opacity: .95; }
.leasing-sim_metric .value{ font-size: 28px; font-weight: 900; line-height: 1.1; }
.leasing-sim_metric .sub{ font-size: 12px; opacity: .9; margin-top: 4px; }

.leasing-sim_breakdown{
  list-style:none;
  padding:0;
  margin: 10px 0 18px;
}
.leasing-sim_breakdown li{
  display:flex;
  justify-content:space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.16);
}
.leasing-sim_breakdown li:last-child{ border-bottom:0; }
.leasing-sim_breakdown span{ opacity:.95; }

.leasing-sim_cta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top: 6px;
}
.leasing-sim_cta .template-btn{
  flex: 1 1 auto;
}

.leasing-sim_note{
  margin-top: 14px;
  font-size: 12px;
  opacity: .92;
}

@media (max-width: 991px){
  .leasing-sim_grid{ grid-template-columns: 1fr; }
}
