/*-----------------------------------------------------------------------------------

Theme Name: Easy Car Loan Calculator
Author: CreationByUsman
Author URI: https://codecanyon.net/user/creationbyusman
Description: Easy Car Loan Calculator

-----------------------------------------------------------------------------------*/

/* ---------------------------------------------------------------- */
/* --------------------------- Variables -------------------------- */
/* ---------------------------------------------------------------- */

:root {
  --primary-font: "Inter", sans-serif; /* Change Font Here */
  --theme-color: #0c2c5c; /* Change Theme Color Here */
  --primary-color: #435b80;
  --secondary-color: #696969;
}

/* ---------------------------------------------------------------- */
/* ------------------- Calculator Section Style ------------------- */
/* ---------------------------------------------------------------- */

#eclCalculator {
  min-height: 100vh;
  background: linear-gradient(rgb(12, 44, 92, 0.8), rgba(0, 0, 0, 0.5)),
    url("../images/bg_3.jpg") no-repeat center center/cover; /* Change Background Image Here */
  font-family: var(--primary-font);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ecl_calculator {
  padding-top: 100px;
  padding-bottom: 50px;
}

.ecl_calculator .ecl_heading {
  color: #ffffff;
  font-size: 42px;
  font-weight: 700;
  text-align: center;
  margin-top: 0;
  margin-bottom: 55px;
}

.ecl_container {
  position: relative;
  max-width: 1024px;
  margin: 0 auto;
  padding: 20px;
  background-color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
}

.ecl_form-section,
.ecl_result-section {
  padding: 20px;
}

.ecl_form-section .block {
  margin-bottom: 40px;
}

.ecl_form-section label {
  display: block;
  color: var(--primary-color);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.ecl_form-section label .note {
  color: var(--secondary-color);
  font-weight: 500;
}

.ecl_calculator .ecl_slider-range {
  height: 20px;
}

.ecl_calculator .ecl_slider-range-control {
  appearance: none;
  width: 100%;
  height: 14px;
  background: transparent;
  --bg-color: #dee2e6;
}

.ecl_calculator .ecl_slider-range-control::-webkit-slider-runnable-track {
  appearance: none;
  width: 100%;
  height: 2px;
  cursor: pointer;
  background: linear-gradient(
    90deg,
    var(--theme-color) var(--progress),
    var(--bg-color) var(--progress)
  );
}

.ecl_calculator .ecl_slider-range-control::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px var(--theme-color) inset;
  border-radius: 50%;
  margin-top: -6px;
}

.ecl_calculator .ecl_car-price,
.ecl_calculator .ecl_down-payment {
  display: block;
  font-size: 25px;
  font-weight: 700;
  color: var(--theme-color);
  margin-bottom: 10px;
}

.ecl_calculator .ecl_loan-term {
  margin-top: 20px;
}

.ecl_calculator .loan-term-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ecl_calculator .loan-term-options button {
  flex: 1 0 auto;
  padding: 12px 35px;
  color: var(--theme-color);
  background-color: #dee2e6;
  border: none;
  border-radius: 5px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.ecl_calculator .loan-term-options button span {
  color: #9ea4ab;
  font-size: 10px;
  font-weight: 400;
}

.ecl_calculator .loan-term-options button.active {
  color: #ffffff;
  background-color: var(--theme-color);
}

.ecl_calculator .ecl_result-section {
  border-left: 1px solid #dee2e6;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ecl_calculator .monthly-payment {
  font-size: 24px;
  text-align: center;
  margin-bottom: 20px;
}

.ecl_calculator .monthly-payment h2 {
  color: var(--primary-color);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
}

.ecl_calculator .monthly-payment span {
  color: var(--theme-color);
  font-size: 48px;
  font-weight: 700;
}

.ecl_calculator .details p {
  margin: 10px 0;
  padding: 10px 20px;
  color: var(--secondary-color);
  border-bottom: 1px dashed #adb5bd;
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 500;
}

.ecl_calculator .details p span {
  color: var(--theme-color);
  font-weight: 700;
}

.ecl_calculator .apply-button {
  display: block;
  color: #ffffff;
  background-color: var(--theme-color);
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.ecl_calculator .apply-button:hover {
  background-color: #141dfa;
}

/* ---------------------------------------------------------------- */
/* -------------------- Responsive Media Quries ------------------- */
/* ---------------------------------------------------------------- */

@media screen and (max-width: 768px) {
  .ecl_calculator .ecl_heading {
    font-size: 32px;
    margin-bottom: 35px;
  }

  .ecl_calculator .details p {
    padding: 10px 0px;
  }
}

@media screen and (max-width: 992px) {
  .ecl_container {
    grid-template-columns: 1fr;
  }

  .ecl_calculator .ecl_result-section {
    border: none;
    border-top: 1px solid #dee2e6;
  }
}
