canvas#signature-pad {
    width: 100%;
    cursor: crosshair;
    display: block;
    padding: 0.25rem 0.25rem;
    color: #212529;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    height: 200px;

}

button#clear {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    border: none;
    color: #212529;
    cursor: pointer;
}

#submitBtn {
    background-color: #D30101;
    border-color: #D30101;
    color: white;  /* Ensure the text color is white */
    min-width: 100px;  /* Set a minimum width so it doesn't shrink too much */
    min-height: 40px;  /* Set a minimum height */
    position: relative; /* Ensure spinner is positioned relative to button */
    text-align: center;  /* Center the content */
    display: inline-flex;  /* Align spinner and text in one row */
    justify-content: center; /* Center content horizontally */
    align-items: center;  /* Center content vertically */
    margin-bottom: 20px;
}

#submitBtn:disabled {
    cursor: not-allowed; /* Change cursor when button is disabled */
}

.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3); /* Light border */
    border-top: 3px solid white;  /* The spinning part */
    border-radius: 50%;
    width: 20px;  /* Adjust width and height as needed */
    height: 20px;
    animation: spin 1s linear infinite;
    display: none;  /* Initially hidden */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.button-and-message-container {
    display: flex;
    align-items: center; 
    gap: 10px; 
}

.message-text {
    font-size: 16px; 
    color: black;
    margin-left: 20px; 
}

#infoIcon {
    background-color: transparent !important; /* Ensures no background */
    border: none; /* Removes any border if present */
    outline: none; /* Removes any outline */
    color: #D30101;
}


.custom-popover {
    position: absolute;
    max-width: 500px;
    padding: 15px;
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    z-index: 1050;
    display: none;
    transition: opacity 0.2s ease;
}

@media (max-width: 768px) {
    .custom-popover {
        max-width: 90%;
        left: 5%; /* Center it horizontally */
        width: 90%; /* Take up most of the width */
    }
}


.custom-popover h3 {
    margin-top: 0;
    font-size: 16px;
    font-weight: bold;
}

.custom-popover p {
    font-size: 14px;
    margin: 0;
}

/* Optional: Styling for the arrow */
.custom-popover::after {
    content: "";
    position: absolute;
    top: 50%;
    left: -10px;
    transform: translateY(-50%);
    border-width: 10px;
    border-style: solid;
    border-color: transparent #fff transparent transparent;
}

