 /* General styling for the calculator layout */
.bscalc-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 50px;
    margin-top: 30px;
    width: 100%;
    max-width: 740px;
}

/* .left-section, .right-section {
    flex: 1;
} */
.left-section {
    flex: 0 0 59%; /* Take 65% of the width */ 
}

.right-section {
    flex: 0 0 41%; /* Take 35% of the width */       
    border-left: 5px solid #f5a841;
    padding-left: 15px;
}

/* Flexbox for label and input alignment */
.label-input-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
}

/* Label styling */
label {
    font-weight: 500;
    font-size: .9875rem;
    /* display: inline-block; */    
    flex: 1;
    margin-right: 10px;
    margin-top: 6px;
}

/* Input styling */
input[type="number"],
select {
    /* display: inline-block; */    
    flex: 1;
    margin: 6px 0;
    padding: 5px 10px;
    max-width: 110px;
    font-size: 1rem;
}

/* Range input styling */
input[type="range"] {
    display: block; 
    -webkit-appearance: none;
    background-color: #ddd;
    width: 100%;
    max-width: 120px;
    height: 5px;
    border-radius: 5px;
    margin: 18px 0;
    outline: 0;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    background-color: #1ca94b;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid white;
    cursor: pointer;
    transition: .3s ease-in-out;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background-color: white;
    border: 2px solid #1ca94b;
}

input[type="range"]::-webkit-slider-thumb:active {
    transform: scale(1.2);
}

/* Custom input fields */
input.custom__field {
    margin: 10px 0;
    overflow: hidden;
    padding: 5px 10px !important;
    max-width: 100px;
    font-size: 1rem;
}

input::placeholder {
    color: #b8b8b8;
}

#expensePercentage, #rateDisplay {
  font-weight: 700;
}

/* Select field styling */
select {
    border: 1px solid #c9c9c9;
    color: #444;
    background-color: white;
    padding: 5px 10px;
    min-width: 100px;
    font-size: 14px;
}

select option {
    font-size: 1rem;
}
.bscalc-container h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 20px 0 4px 0;
}

/* Button styling */
.btn {
    background-color: #4CAF50;
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 3px;
}

/* Results styling */

.result h3 {
    font-size: 1.375rem;
    margin-top: 25px;
}

.result p {
    font-size: 0.9875rem;
    color: #626262;
    margin-top: 0.75rem;
}

.result p span {
    color: #1d57ae;
    font-weight: 700;
    font-size: 1.3125rem;
    padding-left: 5px;
}
hr {
    background-color: #fff;
    margin: 0 0 15px 0;
    max-width: 100%;
    border-width: 0;
}
.lb9 {
    height: 6px;
    margin-top: 40px;
    border-bottom: 2px solid #acadad;
}

.text-sm {
    padding: 16px 10px;
    font-size: 0.875rem;
    font-style: italic;
    line-height: 1.25rem;
    color: #939393;
}

/* Responsive styling for screens below 679px */
@media (max-width: 679px) {
    .bscalc-container {
        flex-direction: column;
        max-width: auto;
    }
    .left-section, .right-section {
        flex: 1 1 100%;+
    }
    .right-section {
             border-left: 0;
             padding-left: 0;
    }
    input[type="number"],
    select,
    .result p,
    .result h3 {
        display: block;
        width: 100%;
    }
    
    input[type="range"] {
        width: 100%;
    }
}
