/* Main Content Styles */
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #333;
    background-color: #f4f4f4;
}

/* Container and Headings */
.container {
    width: 80%;
    margin: 20px auto;
    background: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1, h2, h3, h4, h5, h6 {
    color: #333;
}

/* Form Styling */
#director-loan-tax-calculator {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0px 4px 14px 0px rgba(34, 36, 35, 0.15) inset, 0px 4px 4px 0px rgba(34, 36, 35, 0.06);
    font-size: 16px;
    color: #494C4A;
}

/* Input Fields Styling */
#director-loan-tax-calculator input[type=number], 
#director-loan-tax-calculator input[type=date], 
#director-loan-tax-calculator input[type=text], 
#director-loan-tax-calculator select {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #C5C9C7;
    border-radius: 8px;
    box-sizing: border-box;
    background-color: #F0F0F0;
}

/* Buttons Styling */
#director-loan-tax-calculator input[type=submit], 
#director-loan-tax-calculator button[type=button] {
    width: 100%;
    background-color: #000;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

#director-loan-tax-calculator input[type=submit]:hover,
#director-loan-tax-calculator button[type=button]:hover {
    background-color: #333;
}

/* Calculation Result Styling */
.calculation-output {
    background-color: #f4f4f4;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.calculation-output p {
    font-size: 16px;
    color: #494C4A;
    margin-bottom: 10px;
}

/* Responsive Layout for Form and Results */
@media screen and (min-width: 768px) {
    .container {
        display: block; /* Ensuring form and results are stacked vertically */
    }

    #directorLoanCalculatorForm,
    #calculationResult {
        width: 100%; /* Full width for both form and results */
        margin-bottom: 20px; /* Consistent spacing below form and results */
    }
}

@media screen and (max-width: 767px) {
    .container {
        display: block; /* Stack the form and results on smaller screens */
    }

    #directorLoanCalculatorForm,
    #calculationResult {
        width: 100%; /* Full width on smaller screens */
        margin-bottom: 20px; /* Spacing for mobile */
    }
}