body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0; /* Fallback color */
    background-image: url('/static/scr.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    text-align: center;
    padding: 10px;
}

.logo-container {
    margin: -20px auto;
    text-align: center;
}

.logo-container img {
    width: 300px;
    height: auto;
}

/* Table layout for forms */
.form-table {
    margin: 0 auto;
    border-spacing: 20px;
    width: 80%;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px; /* Slight margin between label and input */
}

input, select {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #000000;
    font-size: 1rem;
}

/* Styling for buttons */
button {
    padding: 12px 25px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
}

button:hover {
    background-color: #564f4f;
}

/* Result styling */
.result {
    margin-top: 20px;
    font-size: 2rem;
}

/* Style for dynamically changing the color of the Claims History dropdown */
.claims-red {
    background-color: #C23B22;
    color: white;
}

.claims-black {
    background-color: white;
    color: black;
}

/* Style for dynamically changing the color of the Annual Rate */
.rate-red {
    color: #C23B22;
    font-weight: bold;
}

.rate-black {
    color: black;
    font-weight: bold;
}

/* Style for the General Indication field to place the checkbox beside the label */
.checkbox-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.checkbox-container label {
    margin-right: 10px;
}

input[type="checkbox"] {
    transform: scale(1.5);
    margin-left: 5px;
}

/* Style for the Annual Rate */
.rate-container {
    margin-top: 30px;
    font-size: 1.5rem;
}

.rate-container label {
    font-weight: bold;
}

.rate-container #rate_value {
    font-weight: bold;
}

/* Styling the table cells for better layout */
.form-table td {
    vertical-align: top; /* Align dropdowns properly */
    padding: 15px;
    width: 33.33%; /* Make sure table cells are divided evenly */
}

/* Add more space between form and bottom content */
.form-actions {
    margin-top: 30px;
}

/* Styling for select dropdowns with max-height */
select {
    max-height: 200px;
    overflow-y: auto;
    font-size: 1rem; /* Font size for better visibility */
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Button container for class selection on the homepage */
.button-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.button-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.button-container .btn {
    padding: 25px 35px;
    background-color: #00000087;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1rem;
    flex-basis: 22%; /* This makes sure each button takes up roughly 1/4 of the row */
    text-align: center;
    box-sizing: border-box;
}

.button-container .btn:hover {
    background-color: #555;
}

@media (max-width: 768px) {
    .button-container .btn {
        flex-basis: 48%; /* On smaller screens, we show 2 buttons per row */
    }
}

/* Responsive design: Handle smaller screens better */
@media (max-width: 768px) {
    .form-table {
        width: 100%; /* Ensure the form takes up the full width on small screens */
    }

    .form-table td {
        width: 100%; /* Make table cells take full width */
        padding: 10px 0; /* Adjust padding */
    }

    button {
        width: 100%; /* Buttons take full width on mobile */
    }

    .logo-container img {
        width: 200px; /* Make logo smaller on smaller screens */
    }
}
.green-option {
    background-color: rgb(32, 148, 32);
    color: white;
}

.yellow-option {
    background-color: rgb(233, 233, 22);
    color: black;
}

.red-option {
    background-color:#C23B22;
    color: white;
}
.loss-history-yes {
    background-color:#C23B22;
    color: white;
}
.checkbox-container {
    display: flex;
    justify-content: center;  /* Center horizontally */
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;  /* Allow wrapping if needed */
    gap: 15px;
}

.checkbox-group label {
    margin-right: 20px;  /* Adds space between checkboxes */
}
/* Styling for the Home button */
.btn-home {
    display: inline-block;
    background-color: transparent; /* Make background transparent */
    color: white; /* Icon color */
    text-align: center;
    text-decoration: none;
    font-size: 2.5rem;
    cursor: pointer;
    border: none;
    position: absolute; /* Position the button absolutely */
    top: 50px; /* Adjust the distance from the top */
    left: 50px; /* Adjust the distance from the left */
    padding: 0; /* Remove padding */
}

.btn-home:hover {
    color: #333; /* Change icon color on hover */
}
.rate-red {
    color: #C23B22; /* Updated red to #C23B22 */
    font-weight: bold;
}

/* Style for dynamically changing the color of the Claims History dropdown */
.claims-red {
    background-color: #C23B22; /* Updated red to #C23B22 */
    color: white;
}

.red-option {
    background-color: #C23B22; /* Updated red to #C23B22 */
    color: white;
}

.loss-history-yes {
    background-color: #C23B22; /* Updated red to #C23B22 */
    color: white;
}

/* Button hover state to use the new red */
button:hover {
    background-color: #C23B22; /* Updated red to #C23B22 */
}

/* Ensure all other button states match the new red */
button {
    background-color: #C23B22; /* Updated red to #C23B22 */
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
}
