body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                url('asset/bkgnd.jpg') no-repeat center center/cover;
    overflow: hidden;
}

.form-container {
    background: rgba(226, 219, 219, 0.7);
    padding: 30px;
    padding-bottom: 100px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 80%;
    max-width: 600px;
    max-height: 70vh;  /* Ensures it doesn’t exceed screen height */
    overflow-y: auto;
}

h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.progress-container {
    text-align: center;
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 5px;
    background-color: #ddd;
    margin-bottom: 10px;
    border-radius: 5px;
}

.progress-bar span {
    display: block;
    height: 100%;
    background-color: #ff3c00;
    width: 0;
    border-radius: 5px;
    transition: width 0.5s ease;
}

.form-section {
    display: none;
}

.form-section.active {
    display: block;
}

.form-group {
    margin-bottom: 15px;
}

label {
    font-weight: bold;
    display: block;
}

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

.navigation-buttons {
    display: flex;
    justify-content: space-between;
}

.navigation-buttons button {
    padding: 10px 50px;
    margin-bottom: 30px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.navigation-buttons button:hover {
    background-color: #c0392b;
}

.submit-btn {
    display: none;
    background-color: #e74c3c;
    width: 100%;
    padding: 15px;
    color: white;
    font-size: 1.2em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 15px;
}

.submit-btn:hover {
    background-color: #c0392b;
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.loader {
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-top: 5px solid #ff3c00;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 10px auto;
}

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

canvas {
    border: 2px solid #000;
    width: 100%;
    height: 150px;
    background: white;
}
.signature-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}
button {
    padding: 10px 15px;
    background: #e74c3c;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

/* Ensures checkboxes align with labels */


/* Container for checkboxes */
.checkbox-grid {
display: grid;
grid-template-columns: repeat(3, 1fr); /* 3 columns per row */
gap: 10px; /* Space between checkboxes */
}

/* Ensure each checkbox is aligned properly */
.checkbox-grid .checkbox-container {
display: flex;
align-items: center;
gap: 8px;
}

.checkbox-grid input[type="checkbox"] {
width: 18px;
height: 18px;
cursor: pointer;
}

.checkbox-grid label {
font-size: 16px;
cursor: pointer;
}