/* Loan Calculator Styles - Modern Design */

.rh-loan-calculator-wrapper {
  margin: 40px 0;
  padding: 0;
}

.rh-loan-calculator-container {
  background: #33333312;
  padding: 40px;
  border-radius: 20px;
}

.rh-lcalc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  gap: 20px;
}

.rh-lcalc-title {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  color: #444;
  margin-left: 0;
}

.rh-lcalc-schedule-link {
  color: #00d9b7;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.rh-lcalc-schedule-link:hover {
  color: #444;
}

.rh-lcalc-schedule-link span {
  margin-left: 5px;
  display: inline-block;
  font-size: 18px;
}

/* Content Layout - Flex for left and right sections */
.rh-lcalc-content {
  display: flex;
  gap: 60px;
  align-items: flex-start;
  margin-bottom: 50px;
  justify-content: space-between;
}

/* Left Side - Circular Display */
.rh-lcalc-left {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 200px;
}

.rh-lcalc-circle {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rh-lcalc-donut-gradient {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  inset: 0;
  background: conic-gradient(
    rgb(255, 165, 0) 0%,
    rgb(255, 165, 0) 0%,
    rgb(16, 185, 129) 0%,
    rgb(16, 185, 129) 0%,
    rgb(0, 150, 255) 0%,
    rgb(0, 150, 255) 100%
  );
}

.rh-lcalc-donut-inner-bg {
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: #2d2d2d;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.rh-lcalc-circle-content {
  text-align: center;
  position: relative;
  z-index: 10;
  background: #fff;
  border-radius: 100px;
  width: 85%;
  height: 85%;
  padding: 20px;
}
.rh-lcalc-monthly-payment span,
.rh-lcalc-monthly-payment {
  font-size: 24px;
  font-weight: 700;
  color: #444;
  margin-top: 14px;
}

.rh-lcalc-monthly-label {
  font-size: 13px;
  color: #444;
}
.rh-lcalc-year-label {
  color: #444;
  font-size: 13px;
}

.rh-lcalc-circle-breakdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.rh-lcalc-breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.rh-lcalc-breakdown-label {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rh-lcalc-breakdown-value {
  color: #444;
  font-weight: 700;
  font-size: 12px;
  text-shadow: 0 0 5px rgba(44, 44, 44, 0.4);
}

.rh-lcalc-loan-term {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* Right Side - Payment Details */
.rh-lcalc-right {
  /* flex: 1; */
  display: flex;
  align-items: center;
}

.rh-lcalc-payment-details {
  width: 100%;
}

.rh-lcalc-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgb(193 193 193);
  gap: 16px;
}

.rh-lcalc-detail-item:last-child {
  border-bottom: none;
}

.rh-lcalc-detail-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #444;
  font-weight: 500;
}

.rh-lcalc-dot {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  display: inline-block;
}

.rh-lcalc-detail-value {
  font-size: 16px;
  font-weight: 600;
  color: #444;
  /* text-shadow: 0 0 10px rgba(44, 44, 44, 0.5); */
}

/* Sliders Section */
.rh-lcalc-sliders {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  padding-top: 15px;
}

.rh-lcalc-slider-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rh-lcalc-slider-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rh-lcalc-slider-title {
  font-size: 14px;
  font-weight: 600;
  color: #444;
  text-transform: capitalize;
}

.rh-lcalc-slider-value {
  font-size: 16px;
  color: #444;
}

/* Slider styling */
.rh-lcalc-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #44444445;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.rh-lcalc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #444;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(44, 44, 44, 0.5);
  transition: all 0.2s ease;
}

.rh-lcalc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 16px rgba(44, 44, 44, 0.8);
}

.rh-lcalc-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #444;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 12px rgba(44, 44, 44, 0.5);
  transition: all 0.2s ease;
}

.rh-lcalc-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 16px rgba(44, 44, 44, 0.8);
}

.rh-lcalc-slider::-moz-range-track {
  background: transparent;
  border: none;
}

.rh-lcalc-slider::-moz-range-progress {
  background: #444;
  height: 6px;
  border-radius: 3px;
}

/* Error Message */
.rh-lcalc-error {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  padding: 12px 20px;
  border-radius: 4px;
  margin-top: 20px;
  display: none;
}

.rh-lcalc-error.show {
  display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
  .rh-loan-calculator-container {
    padding: 25px;
  }

  .rh-lcalc-header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 30px;
  }

  .rh-lcalc-title {
    font-size: 24px;
  }

  .rh-lcalc-content {
    flex-direction: column;
    gap: 40px;
  }

  .rh-lcalc-left {
    width: 100%;
  }

  .rh-lcalc-right {
    width: 100%;
  }

  .rh-lcalc-monthly-payment {
    font-size: 24px;
  }

  .rh-lcalc-sliders {
    /* grid-template-columns: 1fr; */
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .rh-loan-calculator-container {
    padding: 20px;
  }

  .rh-lcalc-title {
    font-size: 20px;
  }

  .rh-lcalc-schedule-link {
    font-size: 12px;
  }

  .rh-lcalc-monthly-payment {
    font-size: 24px;
  }

  .rh-lcalc-detail-label {
    font-size: 13px;
  }

  .rh-lcalc-detail-value {
    font-size: 14px;
  }
}
