/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    color: #545454;
    background-color: #f9f9f9; /* Light background for contrast */
    margin: 0;
    padding: 0;
}

/* Headings */
h2.sec-title {
    color: #03989e;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Labels */
label {
    font-weight: 600;
    color: #545454;
    margin-bottom: 0.5rem;
    display: block;
}

/* Input Fields */
input.form-control {
    border: 1px solid #dcdcdc;
    border-radius: 5px;
    padding: 10px 15px;
    font-size: 16px;
    color: #545454;
}

input.form-control:focus {
    outline: none;
    border-color: #03989e;
    box-shadow: 0 0 5px rgba(3, 152, 158, 0.3);
}

/* Buttons */
button.btn-primary {
    background-color: #03989e;
    border: none;
    padding: 12px 20px;
    font-size: 18px;
    color: #fff;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

button.btn-primary:hover {
    background-color: #ffad30;
    cursor: pointer;
}

/* Cards */
.card {
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

/* Result Section */
.result-section {
    background-color: #ffffff;
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    padding: 20px;
    margin-top: 2rem;
}

.result-section h2 {
    color: #03989e;
}

/* Divider */
hr.divider {
    border: none;
    border-top: 1px solid #dcdcdc;
    margin: 2rem 0;
}

.result-section {
    display: none;
}

button.btn-primary {
    width: 100%;
    text-align: center;
}
input.form-control:hover {
    border-color: #ffad30;
}
@media (max-width: 768px) {
    .card {
        padding: 15px;
    }

    input.form-control {
        font-size: 14px;
    }

    button.btn-primary {
        font-size: 16px;
    }
}


/* Hide spinner controls for Chrome, Edge, and Safari */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Hide spinner controls for Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}

.section--padding{
    padding-top: 50px;
    padding-bottom: 50px;
}

@media print {
    .not-printable {
        display: none !important;
    }

    .card-img-top {
        width: 250px; /* Adjust this to match your desired size */
        height: auto; /* Maintain aspect ratio */
        margin: 0 auto; /* Center the logo */
        display: block;
    }
}

/* === Patch: Main logo constrained to ~250x250 === */
img[alt="logo"] {
    width: 250px !important;
    height: 250px !important;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* === Patch: Clean print output for PDF === */
@media print {
    .not-printable, .btn, .form-control, form, header, footer, nav {
        display: none !important;
    }
    .result-section {
        display: block !important;
        box-shadow: none !important;
        background: #fff !important;
    }
    body {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
