@media(max-width:767px){.elementor-724 .elementor-element.elementor-element-724{padding:0px 0px 0px 0px;}}/* Start custom CSS for html, class: .elementor-element-724 *//* Proton Loan Calculator Malaysia */

:root {
  --blue-1: #0a4fff;
  --blue-2: #00b4d8;
  --muted: #7a8794;
  --bg: #fbfcff;
}



* { box-sizing: border-box; }
body {
  font-family: 'Poppins', sans-serif;
  background: #f3f6fa;
  margin: 0;
  padding: 20px;
  color: #16303a;
}

/* === Container & Panels === */
.calculator-container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  border-radius: 18px;
  display: flex;
  flex-wrap: wrap; /* ✅ allow wrap (sidebar safe) */
  box-shadow: 0 10px 30px rgba(16,24,40,0.06);
  overflow: hidden;
}

.calculator-left {
  flex: 1 1 55%;
  padding: 28px;
  background: #0f172a;
  min-width: 320px; /* ✅ maintain readable min width */
}

.calculator-right {
  flex: 1 1 45%;
  padding: 28px;
  background: linear-gradient(135deg, var(--blue-1), var(--blue-2));
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: auto; /* ✅ auto height */
}

/* === Headings === */
.calculator-left h2 {
  margin: 0 0 18px 0;
  font-size: 24px;
  color: #fff;
}
.calculator-right h2 {
  margin: 0 0 35px 0;
  font-size: 24px;
  color: rgba(255,255,255,0.95);
}

/* === Inputs & Controls === */
.label {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
  display: block;
}

.select, select, input[type="number"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #e6eef6;
  font-size: 14px;
  margin-bottom: 14px;
}

.select:focus, select:focus, input[type="number"]:focus {
  outline: none;
  box-shadow: 0 6px 20px rgba(10,79,255,0.06);
  border-color: var(--blue-1);
}

/* === Downpayment Type buttons === */
.dp-toggle {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.dp-toggle button {
  flex: 1;
  padding: 20px 12px;
  border-radius: 8px;
  border: 1px solid #d6e3f0;
  color: #0f1724;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
}

.dp-toggle button.active {
  background: linear-gradient(90deg, var(--blue-1), var(--blue-2));
  border: 0px solid rgba(255,255,255,0.06);
  box-shadow: 0 6px 18px rgba(10,79,255,0.12);
  color:#fff;
}

/* === Sliders === */
.slider-block {
  margin-top: 40px;
  margin-bottom: 40px;
  padding-top: 8px;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.slider-label-row .left,
.slider-label-row .right {
  font-weight: 700;
  color: #fff;
  font-size: 13px;
}

/* === noUiSlider Styling === */
.noUi-horizontal { height: 10px !important; width: 100%; }
.noUi-target {
  height: 6px;
  box-shadow: none;
  width: 100%;
}
.noUi-connect {
  background: linear-gradient(90deg, var(--blue-1), var(--blue-2)) !important;
  height: 6px;
  border-radius: 0 !important;
}

.noUi-handle {
  width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  background: #001dff !important;
  border: 3px solid #0ff !important;
  top: -7px !important;
  box-shadow: 0 6px 20px rgba(10,79,255,0.12);
}
.noUi-horizontal .noUi-handle { right: -12px !important; }
.noUi-handle::before, .noUi-handle::after { display: none !important; }

.noUi-tooltip {
  background: var(--blue-1) !important;
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  padding: 4px 7px;
  border-radius: 6px;
  transform: translateY(-6px);
  white-space: nowrap;
  display: none !important;

}

/* === Pips / Markers === */
.noUi-pips {
    margin-top: 0 !important;
    padding: 0 !important; 
}
.noUi-marker { 
    width: 1px; 
    height: 8px; 
    margin-left: -1px; 
    background: #334155 !important;
}
.noUi-marker-large { 
    height: 8px !important; 
}
.noUi-value-horizontal {
  margin-top: 1px !important;
  font-size: 11px;
  color: var(--muted);
  
}



/* === Summary Panel === */
.summary-inner {
  width: 100%;
  max-width: 340px;
  text-align: center;
  margin: 0 auto;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin: 10px 0;
  color: rgba(255,255,255,0.95);
  font-size: 15px;
  font-weight: 600;
}

.summary-amount {
  font-size: 34px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 30px;
}

/* === Buttons Section (Fixed Side-by-Side Responsive) === */
.summary-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  margin-bottom: 20px;
  width: 100%;
}

.copy-btn,
.whatsapp-btn {
  flex: 1 1 48%;
  min-width: 140px;
  padding: 20px 12px;
  border-radius: 8px;
  border: none;
  font-weight: 700;
  line-height:1.3em;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.copy-btn {
  background: #fff;
  color: var(--blue-1);
}

.copy-btn:hover {
  background: linear-gradient(90deg, #fff, #e9f1ff);
  transform: translateY(-1px);
}

.whatsapp-btn {
  background: #25D366;
  color: #fff;
}

.whatsapp-btn:hover {
  background: #1ebe5d;
  transform: translateY(-1px);
}

/* === Responsive Adjustments === */
@media (max-width: 1024px) {
  .calculator-container { flex-direction: column; max-width: 100%; }
  .calculator-left, .calculator-right { width: 100%; }
  .calculator-right { margin-top: 0px; padding: 24px; }
  .summary-inner { max-width: 100%; }
}

@media (max-width: 768px) {
  body { padding: 10px; }
  .calculator-container { box-shadow: none; }
  .slider-block { margin-bottom: 30px; }
  /* ✅ force buttons stay side-by-side even on mobile */
  .summary-btns { flex-direction: row !important; }
  .summary-amount { font-size: 26px; }
}

@media (max-width: 480px) {
  .calculator-left h2, .calculator-right h2 { font-size: 20px; text-align: center; }
  .noUi-value-horizontal { font-size: 9px; }
}

/* === Monthly Estimate Box === */
.monthly-estimate {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  padding: 18px 24px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  margin-bottom: 28px;
  width: 100%;
}

.monthly-estimate p {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  margin: 0 0 6px 0;
  letter-spacing: 0.3px;
}

.monthly-estimate h3 {
  font-size: 34px;
  font-weight: 800;
  margin: 0;
  color: yellow;
  text-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

.calculator-right .summary-row div:last-child {
  color: #000; /* kuning */
  font-weight: 700;
}

/* Color untuk label kanan slider */
.slider-label-row .right {
  color: yellow !important; /* hijau */
  font-weight: 700 !important;
}

/* Header layout: title left, image right */
.calc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Image box */
#modelImageBox img {
  width: 160px;
  max-width: 160px;
  height: auto;
  border-radius: 10px;
}

/* Mobile stacking */
@media (max-width: 768px) {
  .calc-header {
    flex-direction: column;
    align-items: flex-start;
  }

  #modelImageBox img {
    width: 100%;
    max-width: 260px;
  }
}

/* ===== MOBILE ONLY FIX ===== */
@media (max-width: 768px) {

  /* Kurangkan jarak tajuk dengan gambar */
  .calc-header {
    gap: 8px; /* asal besar, kecilkan */
    margin-bottom: 8px;
  }

  .calc-header h2 {
    margin-bottom: 4px !important;
  }

  /* Gambar penuh ikut lebar input/select */
  #modelImageBox {
    width: 100%;
    margin-top: 4px;
    margin-bottom: 14px; /* tambah sikit jarak bawah gambar */
  }

  #modelImageBox img {
    width: 100%;
    max-width: 100%;
    display: block;
    border-radius: 12px;
  }

}

/* === FIX SELECT & INPUT TEXT COLOR (LEFT PANEL ONLY) === */
.calculator-left select,
.calculator-left .select,
.calculator-left input[type="number"] {
  background-color: #0f172a;   /* ikut background left panel */
  color: #ffffff;              /* text cerah */
  border-color: #334155;       /* border lembut */
}

/* option dalam dropdown */
.calculator-left select option {
  background-color: #ffffff;   /* dropdown list kekal readable */
  color: #000000;
}

/* === SLIDER BACKGROUND TRANSPARENT + BORDER ONLY === */
.calculator-left .noUi-target {
  background: transparent;          /* buang warna bg */
  border: 1px solid #334155;         /* border ikut input */
  box-shadow: none;                  /* pastikan flat */
}

/* kekalkan height & radius asal */
.calculator-left .noUi-target,
.calculator-left .noUi-connect {
  border-radius: 0px;
}
/* =========================================================
   FORCE SLIDER FLAT (NO RADIUS) – NOUISLIDER FIX
   ========================================================= */

/* Track utama */
.calculator-left .noUi-target,
.calculator-left .noUi-base,
.calculator-left .noUi-connects,
.calculator-left .noUi-connect {
  border-radius: 0 !important;
}



/* ================================
   FIX JARAK KHAS DP SAHAJA
   ================================ */

/* standardkan jarak bawah Downpayment Type */
.form-row + .slider-block {
  margin-top: 10px !important;
}

/* bila DP Amount aktif, rapatkan dengan Interest Rate */
#dpAmountBlock {
  margin-bottom: 20px !important;
}

/* === FIX KHAS: JARAK DOWNPAYMENT (RM) SAHAJA === */
#dpAmountBlock {
  margin-top: 20px !important;
  margin-bottom: 10px !important;
}

/* elakkan slider-block default kacau layout DP Amount */
#dpAmountBlock.slider-block {
  padding-top: 0 !important;
}

/* === FIX KHAS: DP AMOUNT → INTEREST RATE GAP === */
#dpAmountBlock {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Tolak slider selepas dpAmountBlock */
#dpAmountBlock + .slider-block {
  margin-top: 0px !important; /* standard kemas */
}

/* Mobile: center title betul-betul */
@media (max-width: 768px) {
  .calc-header {
    justify-content: center;
  }

  .calc-header h2 {
    width: 100%;
    text-align: center;
  }
}

.calculator-right {
  position: relative;
}

.powered-by {
  position: absolute;
  bottom: 10px;
  right: 18px;

  font-size: 10px;
  color: rgba(255,255,255,0.45);
  line-height: 1.2;
}

.powered-by a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}

.powered-by a:hover {
  color: #ffd500; /* kuning lembut */
}

/* FIX noUiSlider connect height bila guna Global Widget */
.calculator-left .noUi-target {
  position: relative;
}

.calculator-left .noUi-connect {
  height: 100% !important;
  top: 0 !important;
  bottom: 0 !important;
}/* End custom CSS */