/* Full-screen height container */
.container-fluid {
    height: 100vh; /* Full viewport height */
    padding: 0; /* Remove padding */
}

/* Full height for the rows */
.row.no-gutters {
    margin-right: 0;
    margin-left: 0;
    height: 100%; /* Ensure full height */
}

/* Left column styling */
.custom-left-col {
    background-color: #f8f9fa;
    flex: 0 0 38.33%;
    height: 100%;
    padding: 50px; /* Add padding for spacing */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Optional: add shadow for depth */
    box-sizing: border-box; /* Ensure padding and border are included in the element's total width and height */
    z-index: 1; /* Keep form content above the background */
    position: relative; /* Ensure it stays on top */
}

.custom-left-col h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: #000000;
}

.custom-left-col hr {
    margin: 1rem 0;
    border: 0;
    border-top: 1px solid #2a0c52;
    margin-bottom: 0rem;
}

.custom-left-col form {
    display: flex;
    flex-direction: column;
}

.custom-left-col label {
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #3e3e3e;
}

.custom-left-col input[type="number"] {
    margin-bottom: 0rem;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
}

.custom-left-col p {
    margin: 1rem 0;
    font-size: 0.875rem;
    color: #666;
}

.custom-left-col .btn {
    width: 50%;
    margin-top: 4rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background-color: #007bff;
    color: #fff;
    border: none;
    cursor: pointer;
}

.custom-left-col .btn:hover {
    background-color: #0056b3;
}

/* Right column styling with full image coverage */
.custom-right-col {
    background-image: url('static/img/Calculator.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex: 0 0 61.67%; /* 2/3rds of the width */
    height: 100%; /* Full height */
    color: white;
    min-height: 100vh; /* Ensure the image covers the full height */
}

/* Responsiveness */
@media (max-width: 768px) {
    .row.h-100 {
        flex-direction: column; /* Stack columns vertically */
    }

    .custom-left-col {
        flex: 0 0 100%; /* Full width on smaller screens */
        padding: 20px;
        z-index: 2; /* Keep form above the image */
        position: relative;
        background-color: #f8f9fa; /* Prevent background image overlap */
        height: auto; /* Let the column adjust height based on content */
    }

    .custom-right-col {
        flex: 0 0 100%; /* Full width on smaller screens */
        background-size: cover;
        height: 50vh; /* Ensure the image covers half the screen height */
    }
}

/* Handle even smaller screens */
@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }

    .btn {
        font-size: 1rem;
        padding: 10px 20px;
    }

    .custom-left-col {
        padding: 10px; /* Smaller padding for better space management */
    }

    .custom-right-col {
        height: 40vh; /* Adjust image height for very small screens */
    }
}

h1 {
    font-size: 2.5rem;
}
