* {
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
}

h1 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

button {
  background-color: #1ca94b;/*ff7f41; */
  color: white;
  border: none;
  padding: 1rem;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: bold;
  display: flex;
  justify-content: center;
}

button:hover {
  background-color: #e56f38;
}
#applyRefi {
  margin: 0 auto !important;
  text-align: center;
}

.calc-subtitle {
    text-align: left;
    padding: 20px;
    max-width: 1080px;
    margin: 0 auto; 
}
.calc-subtitle p {
   font-size: 1rem;
}

/* Container to hold the 3 columns */
.calc-container {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    max-width: 1080px;
    margin: 0 auto;
    border-top: 1px solid #f48230;
}

/* First and second columns at 35% width */
.column-1, .column-2 {
    width: 35%;
    padding: 0 15px; /* Padding on left and right */
    box-sizing: border-box;
}

/* Third column at 30% width */
.column-3 {
    width: 30%;
    padding: 0 15px; /* Padding on left and right */
    box-sizing: border-box;
    border-left: 1px solid #f48230;
}
.mobi-show {
 width:1px; 
 height: 1px;
 margin: 0;
 display: none;
 }

.input-section, .output-section {
  margin-bottom: 1rem;
}

.output-section p {
   font-size: 1.125rem;
   text-align: center;
    margin-bottom: 1rem;
   padding-bottom: 1rem;
}

.output-section p span {
display: block;
    font-size: 1.875rem !important;
    font-weight: 600;
    font-family: #f48230;
    line-height: 1;
    text-align: center;
    margin-top: 0.75rem;
}


.input-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;  
  padding: 6px 20px;  
}

label {
  margin-bottom: 0.875rem;
  font-weight: 700;
  font-size: 0.875rem;
}

/* Common styles for the sliders */
input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    background: #ddd;
    height: 6px;
    border-radius: 5px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    background: #1ca94b;/*ff7f41;*/
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    background: #1ca94b;/*ff7f41;*/
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
}

input[type="range"] span {
  font-size: 1.1625rem;
}
.vizual {
  font-size: 1.44rem;
  padding-top: .875rem;
}

/* Slider tick marks for terms (10, 15, 20, 25, 30) */
input#currentTerm, input#newTerm {
    position: relative;
    margin-bottom: .50rem;
}

/* input#currentTerm::-webkit-slider-runnable-track,
input#newTerm::-webkit-slider-runnable-track {
    background: #ddd;
    height: 6px;
} */

 input#currentTerm::-webkit-slider-runnable-track::before,
input#newTerm::-webkit-slider-runnable-track::before {
    content: '10  15  20  25  30';  /* Show tick marks for terms */
    position: absolute;
    bottom: 0px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    color: #333;
} 
datalist {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 7px;
  padding: 0 5px;
}

/*  https://blog.logrocket.com/creating-custom-css-range-slider-javascript-upgrades/ */

/* Responsive: Keep specific input fields stacked vertically */
@media (max-width: 768px) {
    .calc-container {
        flex-direction: column;
    }    
    /* Make all columns 100% width in vertical order */
    .column-1, .column-2, .column-3 {
        width: 100%;
        padding: 10px 25px; 
        margin-bottom: 20px; 
        box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.14), 0 2px 2px 0 rgba(0, 0, 0, 0.12), 0 1px 3px 0 rgba(0, 0, 0, 0.2);
        border-radius: 0.25em;
    }    
    .column-3 { 
    border: 1px solid #ccc;
    background-color: #ecf2ff;
    box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.14), 0 2px 2px 0 rgba(0, 0, 0, 0.12), 0 1px 3px 0 rgba(0, 0, 0, 0.2);
    border-radius: 0.25em;
    }
    .container {
        padding: 10px;
    }
    /* Stack the new loan inputs below each other */
    .input-field:nth-child(2), /* New Loan Amount */
    .input-field:nth-child(4), /* New Rate */
    .input-field:nth-child(6), /* New Term */
    .input-field:nth-child(8)  /* Refinance Fees */ {
        order: 1;
    }
}
@media (max-width: 420px) {
      .mobi-show {
      display: block;
      background-color: #ecf2ff;
      width: 100%; 
      height: 50px;
      margin: 10px auto;
      padding: 10px 20px;
      font-size: 18px;
      font-weight: 600;
      text-align: center;
      align-items: center;
      }
}
