/* Loan Calculator Styles */

/* Range Slider Styling */
input[type='range'].slider-red {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 5px;
  outline: none;
}

/* Webkit browsers (Chrome, Safari, Edge) */
input[type='range'].slider-red::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #e7313f;
  cursor: pointer;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input[type='range'].slider-red::-webkit-slider-thumb:hover {
  background: #d12939;
}

/* Firefox */
input[type='range'].slider-red::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #e7313f;
  cursor: pointer;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input[type='range'].slider-red::-moz-range-thumb:hover {
  background: #d12939;
}

/* Track fill effect for webkit */
input[type='range'].slider-red::-webkit-slider-runnable-track {
  width: 100%;
  height: 8px;
  background: linear-gradient(
    to right,
    #e7313f 0%,
    #e7313f var(--slider-progress, 0%),
    #e5e7eb var(--slider-progress, 0%),
    #e5e7eb 100%
  );
  border-radius: 5px;
}

/* Track fill effect for Firefox */
input[type='range'].slider-red::-moz-range-track {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 5px;
}

input[type='range'].slider-red::-moz-range-progress {
  height: 8px;
  background: #e7313f;
  border-radius: 5px;
}

/* Custom styling for number inputs */
input[type='text']#loanAmountInput,
input[type='text']#loanTenorInput {
  background-color: #f9fafb;
}

/* Checkbox styling */
input[type='checkbox']:checked {
  background-color: #e7313f;
  border-color: #e7313f;
}

/* Smooth transitions */
input[type='range'].slider-red,
input[type='text'],
button,
a {
  transition: all 0.2s ease-in-out;
}

/* Responsive adjustments */
@media (max-width: 1023px) {
  .lg\:flex-row {
    flex-direction: column;
  }
}

/* Image overlay gradient enhancement */
.bg-gradient-to-r {
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
}

/* Support badge enhancement */
.bg-white\/20 {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Button hover effects */
.bg-\[\#e7313f\]:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(231, 49, 63, 0.3);
}

/* Estimated payment number animation */
#estimatedPayment {
  transition: color 0.3s ease;
}

/* Remove click/focus border on all buttons and links */
button:focus,
button:focus-visible,
button:active,
a:focus,
a:focus-visible,
a:active {
  outline: none !important;
  box-shadow: none !important;
}

/* Link hover states */
a.text-\[\#e7313f\]:hover {
  text-decoration: underline;
}

/* Card shadow */
.bg-white.rounded-xl {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}
