/* FS Calculator Module - Malaysia */

.fs-calculator {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 16px 24px;
  overflow: visible;
}

.fs-calculator__card {
  background: #ffffff;
  border-radius: 20px;
  padding: 28px 28px 32px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.fs-calculator__title {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 24px 0;
  color: #333333;
}

/* Amount slider - full width */
.fs-calculator__group {
  margin-bottom: 20px;
}

.fs-calculator__label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.fs-calculator__label-text {
  font-size: 13px;
  font-weight: 600;
  color: #333333;
}

.fs-calculator__label-value {
  font-size: 18px;
  font-weight: 800;
  color: #2c50ff;
}

/* Slider */
.fs-calculator__slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #f3f5fd;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.fs-calculator__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--slider-color, #2c50ff);
  cursor: pointer;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 8px rgba(44, 80, 255, 0.4);
  transition: transform 0.2s ease;
}

.fs-calculator__slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.fs-calculator__slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--slider-color, #2c50ff);
  cursor: pointer;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 8px rgba(44, 80, 255, 0.4);
}

.fs-calculator__range {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11px;
  color: #757575;
}

/* 2-column grid for Tenure + Rate side by side on desktop */
.fs-calculator__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

/* Option Buttons - !important to override theme button:hover/focus/active */
.fs-calculator__options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.fs-calculator .fs-calculator__option-btn {
  flex: 1;
  min-width: 55px;
  padding: 8px 8px !important;
  border: 2px solid #e0e0e0 !important;
  background-color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #333333 !important;
  cursor: pointer;
  border-radius: 10px !important;
  transition: all 0.3s ease;
  text-align: center;
  -webkit-appearance: none;
  appearance: none;
  line-height: 1.2;
  outline: none !important;
  box-shadow: none !important;
  text-transform: none !important;
  text-decoration: none !important;
}

.fs-calculator .fs-calculator__option-btn:hover {
  border-color: #2c50ff !important;
  color: #2c50ff !important;
  background-color: #ffffff !important;
}

.fs-calculator .fs-calculator__option-btn:focus {
  border-color: #e0e0e0 !important;
  color: #333333 !important;
  background-color: #ffffff !important;
  outline: none !important;
  box-shadow: none !important;
}

.fs-calculator .fs-calculator__option-btn:active {
  background-color: #ffffff !important;
  border-color: #e0e0e0 !important;
  color: #333333 !important;
}

.fs-calculator .fs-calculator__option-btn--active {
  background-color: #2c50ff !important;
  border-color: #2c50ff !important;
  color: #ffffff !important;
}

.fs-calculator .fs-calculator__option-btn--active:hover,
.fs-calculator .fs-calculator__option-btn--active:focus,
.fs-calculator .fs-calculator__option-btn--active:active {
  background-color: #2c50ff !important;
  border-color: #2c50ff !important;
  color: #ffffff !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Result */
.fs-calculator__result {
  background: #f3f5fd;
  border-radius: 14px;
  padding: 16px;
  text-align: left;
  margin-bottom: 12px;
}

.fs-calculator__result-label {
  font-size: 13px;
  color: #757575;
  margin-bottom: 4px;
  text-align: left;
}

.fs-calculator__result-value {
  font-size: 32px;
  font-weight: 800;
  color: #2c50ff;
  text-align: left;
  margin-bottom: 0;
}

/* Divider inside result box */
.fs-calculator__breakdown-divider {
  border: none;
  border-top: 1px solid #d1d9ff;
  margin: 14px 0;
}

/* Breakdown rows */
.fs-calculator__breakdown {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fs-calculator__breakdown-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  text-align: left !important;
}

.fs-calculator__breakdown-label {
  font-size: 13px;
  color: #757575;
  font-weight: 400;
  text-align: left !important;
}

.fs-calculator__breakdown-value {
  font-size: 13px;
  font-weight: 700;
  color: #333333;
  text-align: right !important;
}

/* Disclaimer */
.fs-calculator__disclaimer {
  font-size: 11px;
  color: #757575;
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.4;
}

.fs-calculator__disclaimer p {
  margin: 0;
}

/* CTA Button - matches header Apply Now (.blue-button) */
.fs-calculator__cta {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background-color: #2c50ff;
  border: 1px solid #2c50ff;
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  text-align: center;
  text-decoration: none;
  border-radius: 4px;
  line-height: 1.5;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transform: translateY(0);
  will-change: transform, box-shadow;