/* Modal Overlay */
#renewModalOverlay,
#raceModalOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 40px; /* Adds space around the modal */
    box-sizing: border-box;
}

/* Modal Container */
#renewModal {
    background-color: #ffffff;
    width: 90%;
    max-width: 800px; /* Increased maximum width */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    box-sizing: border-box;
    overflow-y: auto;
    max-height: 90vh; /* Ensures modal doesn't exceed viewport height */
}

/* Modal Header */
#renewModalHeader {
    position: relative;
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    font-weight: 700;
    line-height: 20px;
    margin-bottom: 30px;
    color: #292D32;
    font-family: "Montserrat", sans-serif !important;
}

/* Close Button */
#renewModalClose,
#raceModalClose {
    /* position: absolute;
            top: 15px;
            right: 20px; */
    font-size: 24px;
    cursor: pointer;
    border: none;
    background: none;
    color: #999;
    transition: color 0.2s ease-in-out;
}

    #renewModalClose:hover,
    #raceModalClose:hover {
        color: #333;
    }

/* Modal Footer */
#renewModalFooter {
    text-align: right;
    margin-top: 25px;
}

#renewModalTable td input {
    width: 15px;
    height: 15px;
}

#renewModalTable td:last-child {
    text-align: center;
}
/* Next Button */
#renewModalNextButton {
    padding: 12px 30px;
    background-color: #A8D36A;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: #1B1B1B;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    line-height: 16px;
    transition: background-color 0.3s ease-in-out;
}

    #renewModalNextButton:hover {
        background-color: #A8D36A;
    }
/* Table Container */
#renewModalTableContainer {
    /*  border: 1px solid #ddd; */
    max-height: 300px;
    overflow-y: auto;
    border-radius: 0;
    box-shadow: none;
    margin-top: 20px;
}

.renewModalSubtitle {
    font-size: 14px;
    text-align: center;
    margin-bottom: 10px;
    color: #292D32;
    font-weight: 600;
    width: 100%;
    display: inline-block;
}
/* Table */
#renewModalTable {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ddd;
    font-family: "Montserrat", sans-serif !important;
    font-size: 14px;
}

    /* Table Header */
    #renewModalTable th {
        font-size: 12px;
        padding: 12px 15px;
        color: #585858;
        text-align: left;
        border-bottom: 1px solid #e0e0e0;
        background-color: #E7EAEF;
    }

    /* Table Rows */
    #renewModalTable tr {
        transition: background-color 0.2s ease-in-out;
    }

        #renewModalTable tr:nth-child(even) {
            background: #F8F8F8;
        }

        #renewModalTable tr:hover {
            background-color: #F8F8F8;
        }

    /* Table Cells */
    #renewModalTable td {
        padding: 12px 15px;
        border-bottom: 1px solid #e0e0e0;
        color: #555;
    }

    /* Checkbox Cell */
    #renewModalTable .checkbox-cell {
        text-align: center;
        width: 50px;
    }

/* Modal Overlay */
#raceModalOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 40px; /* Adds space around the modal */
    box-sizing: border-box;
}

    /* Modal Container */
    #raceModalOverlay #renewModal {
        background-color: #ffffff;
        width: 90%;
        max-width: 800px; /* Increased maximum width */
        border-radius: 10px;
        padding: 30px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
        position: relative;
        box-sizing: border-box;
        overflow-y: auto;
        max-height: 90vh; /* Ensures modal doesn't exceed viewport height */
    }

    /* Modal Header */
    #raceModalOverlay #renewModalHeader {
        font-size: 20px;
        font-weight: 600;
        margin-bottom: 20px;
        color: #292D32;
        position: relative;
    }

    /* Close Button */
    #raceModalOverlay #raceModalClose {
        /*                 position: absolute;
                top: 15px;
                right: 20px; */
        font-size: 24px;
        cursor: pointer;
        border: none;
        color: #999;
        transition: color 0.2s ease-in-out;
        flex-shrink: 0;
    }

        #raceModalOverlay #raceModalClose:hover {
            color: #333;
            opacity: 0.75px;
        }

    /* Dropdown and Labels */
    #raceModalOverlay select {
        width: 100%;
        padding: 10px;
        margin-bottom: 20px;
        font-size: 14px;
        border-radius: 5px;
        border: 1px solid #ccc;
    }

    #raceModalOverlay p {
        margin-top: 10px;
        margin-bottom: 10px;
        font-size: 14px;
        color: #555;
    }

    /* Race Button Container */
    #raceModalOverlay #raceButtonContainer {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 20px 0;
        max-width: 100%;
    }

        #raceModalOverlay #raceButtonContainer button {
            width: 100%;
            padding: 12px;
            background-color: #A8D36A;
            border: none;
            font-weight: bold;
            font-size: 16px;
            cursor: pointer;
            border-radius: 4px;
            color: #1B1B1B;
            transition: background-color 0.3s ease-in-out;
        }

            #raceModalOverlay #raceButtonContainer button:hover {
                background-color: #A8D36A;
            }

    #raceModalOverlay #renewModal span {
        text-align: center;
        display: inline-block;
        width: 100%;
    }

    #raceModalOverlay #renewModal .renewModalPara {
        text-align: center;
        margin: 0 0 20px 0;
    }

.raceNameContainer {
    text-align: left;
    padding: 0 !important;
    gap: 0 !important;
    border: 1px solid #ede9e9;
}

    .raceNameContainer span {
        text-align: left !important;
        padding: 6px 10px;
        background-color: #fff;
        font-size: 14px;
    }

        .raceNameContainer span:nth-child(even) {
            background-color: #f8f8f8;
        }

.spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #A8D36A;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
