.lmp-calculator-container {
  display: flex;
  gap: 40px;
  align-items: center;
  background: #fff;
  border-radius: 30px;
  width:100%;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  padding: 48px 32px 34px 32px;
  box-sizing: border-box;
  min-height: 600px;
  justify-content: center;
}

.lmp-calc-left {
    width:50%;
}

.lmp-calc-left h1 {
  margin-bottom: 36px;
  font-size: 2.2em;
  color: #222826;
  font-weight: 700;
}

.lmp-input-label {
  margin-top: 16px;
  margin-bottom: 8px;
  font-weight: 500;
  display: block;
  color: #1c2220;
  font-size: 1.15em;
}

.lmp-input-field {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  border: 1.5px solid #d9e2db;
  background: #f3f6f8;
  font-size: 1.15em;
  margin-bottom: 20px;
  transition: border 0.15s;
  box-sizing: border-box;
}

.lmp-input-field:focus {
  outline: none;
  border: 2px solid #2e5549;
}

.lmp-slider-group {
  margin-bottom: 24px;
}

.lmp-slider-value {
  display: block;
  margin-bottom: 18px;
  font-weight: 500;
  color: #222826;
  font-size: 1em;
}

.lmp-slider {
  width: 100%;
  margin-top: 6px;
  height: 6px;
  border-radius: 6px;
  background: #e5e7e6;
  accent-color: #314f44;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.lmp-slider::-webkit-slider-thumb {
  width: 28px;
  height: 28px;
  background: #314f44;
  border-radius: 50%;
  border: 3px solid #fafbfa;
  box-shadow: 0 2px 4px rgba(30,60,40,.13);
  cursor: pointer;
  transition: background 0.2s;
  -webkit-appearance: none;
  appearance: none;
  margin-top: -12px;
}

.lmp-slider::-webkit-slider-thumb:hover {
  background: #23352d;
}

.lmp-slider::-moz-range-thumb {
  width: 28px;
  height: 28px;
  background: #314f44;
  border-radius: 50%;
  border: 3px solid #fafbfa;
  box-shadow: 0 2px 4px rgba(30,60,40,.13);
  cursor: pointer;
  transition: background 0.2s;
}

.lmp-slider::-moz-range-thumb:hover {
  background: #23352d;
}

.lmp-slider::-ms-thumb {
  width: 28px;
  height: 28px;
  background: #314f44;
  border-radius: 50%;
  border: 3px solid #fafbfa;
  box-shadow: 0 2px 4px rgba(30,60,40,.13);
  cursor: pointer;
}

.lmp-invest-btn {
  width: 100%;
  padding: 20px 0;
  background: #314f44;
  color: #fff;
  font-size: 1.35em;
  font-weight: 700;
  border: none;
  border-radius: 14px;
  margin-top: 36px;
  cursor: pointer;
  text-align: center;
  transition: background 0.22s;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 7px rgba(40,90,70,0.06);
}

.lmp-invest-btn:hover {
  background: #23352d;
}

.lmp-reset-link {
  color: #314f44;
  text-decoration: underline;
  font-size: 1.05em;
  margin-top: 18px;
  cursor: pointer;
  user-select: none;
}

.lmp-calc-right {
    width:50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.lmp-doughnut-wrap {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 32px auto;
  background: transparent;
}

canvas#lmp-donut-chart {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 1 / 1;
  display: block;
  background: transparent;
}

.lmp-circle-tooltip {
  position: absolute;
  left: 50%;
  top: 20%;
  transform: translate(-50%, 0);
  z-index: 10;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(40,52,48,0.08);
  padding: 11px 24px;
  font-size: 1.18em;
  color: #23352d;
  font-weight: 600;
  pointer-events: none;
  transition: opacity 0.21s;
  border: 2px solid #ebebeb;
  display:none;
}

.lmp-doughnut-center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 86%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.lmp-center-years {
  font-size: 1.2em;
  font-weight: 700;
  color: #23352d;
  margin-bottom: 3px;
}

.lmp-center-value {
  font-size: 2em;
  font-weight: 800;
  color: #23352d;
  word-wrap: break-word;
  margin-bottom: 4px;
}

.lmp-legend {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.lmp-legend-dot {
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-right: 7px;
  border-radius: 50%;
}

.lmp-invested {
  background: #445d52;
}

.lmp-returns {
  background: #f8e591;
}

.lmp-total {
  background: #222;
}

.lmp-legend div {
  font-weight: 500;
  color: #25372b;
  font-size: 1.14em;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  white-space: break-spaces;
  word-break: break-word;
}

/* Responsive tweaks */

@media (max-width: 960px) {
  .lmp-calculator-container {
    flex-direction: column;
    gap: 24px;
    padding: 20px 7vw 32px 7vw;
  }
  .lmp-calc-left, .lmp-calc-right {
    max-width: 100vw;
  }
  .lmp-doughnut-wrap {
    max-width: 98vw;
    margin: 0 auto 18px auto;
  }
    
  .lmp-calc-left{
      width:100%;
  }
  
  .lmp-calc-right{
             width: 300px;

  }
}

@media (max-width: 650px) {
  .lmp-calculator-container {
    padding: 20px;
    border-radius: 12px;
    min-height: unset;
  }
  .lmp-doughnut-wrap {
    max-width: 98vw;
    width: 100%;
    margin-bottom: 16px;
  }
  .lmp-center-years {
    font-size: 1em;
  }
  .lmp-center-value {
    font-size: 1.2em;
  }

}
