/* --- Calculator Container and Heading --- */
.boat-loan-calculator-container {
    max-width: 600px; /* Limits the width for better readability on desktop */
    margin: 30px auto; /* Center the calculator */
    padding: 30px;
    background-color: #ffffff; /* White background for the calculator box */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.boat-loan-calculator-container h2 {
    color: #007bff; /* Primary blue color for the main title */
    text-align: center;
    margin-bottom: 5px;
    font-weight: 600;
}

/* --- Form Groups and Inputs --- */
.boat-loan-calculator-container .form-group {
    margin-bottom: 25px;
}

/* Style the labels for better alignment */
.boat-loan-calculator-container label {
    font-weight: 500;
    color: #333;
    /* Center text on mobile if columns stack */
    text-align: left; 
}

/* Loan Amount Display Styling */
.calculated-loan-amount .col-sm-6 {
    /* Ensure the calculated text aligns vertically with the label */
    display: flex;
    align-items: center;
}

.calculated-loan-amount .form-control-plaintext {
    font-size: 1.25rem;
    padding-top: 0.375rem; /* Match input padding */
    padding-bottom: 0.375rem;
    color: #28a745 !important; /* Success green for the loan amount */
}

/* --- Range Slider Styling (Loan Term) --- */

/* Ensures the label and value stay together */
.boat-loan-calculator-container .form-label {
    margin-bottom: 10px;
}

/* Custom styling for the range input (slider) for consistent look */
.boat-loan-calculator-container #loanTerm {
    -webkit-appearance: none;
    appearance: none;
    width: 100%; 
    height: 8px;
    background: #ddd;
    outline: none;
    opacity: 0.7;
    -webkit-transition: .2s;
    transition: opacity .2s;
    border-radius: 4px;
}

.boat-loan-calculator-container #loanTerm:hover {
    opacity: 1; /* Fully visible on hover */
}

/* Thumb (handle) styling */
.boat-loan-calculator-container #loanTerm::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%; 
    background: #007bff; /* Primary blue */
    cursor: pointer;
}

.boat-loan-calculator-container #loanTerm::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%; 
    background: #007bff;
    cursor: pointer;
    border: none;
}

/* --- Results Output Area --- */
#calculator-results {
    border-radius: 6px;
    border-left: 5px solid #007bff; /* Highlight border */
}

#calculator-results h4 {
    color: #333;
    font-weight: 500;
}

/* The final payment result */
#monthlyPaymentResult {
    font-size: 3rem; /* Very large and prominent */
    font-weight: 700;
    color: #007bff; /* Use the primary color */
}

/* Apply Now Button Styling */
.btn-outline-success {
    /* Enhance the Apply Now button */
    border-width: 2px;
    font-weight: 600;
}

/* --- Responsive Adjustments (Optional but Recommended) --- */
@media (max-width: 576px) {
    /* For smaller screens (Bootstrap sm breakpoint and below) */
    .boat-loan-calculator-container {
        padding: 20px;
        margin: 15px;
    }
    
    /* Center labels when columns stack on small screens */
    .boat-loan-calculator-container label {
        text-align: center;
        width: 100%;
        margin-bottom: 5px;
    }

    /* Adjust the result font size on very small screens */
    #monthlyPaymentResult {
        font-size: 2.5rem;
    }
}