body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;

}

.form-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
}

.form-container h1 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

input,
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}



textarea {
    resize: none;
    height: 100px;
}

.form-footer {
    display: flex;
    align-items: center;
    margin-top: 15px;
}

input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

.form-footer span {
    font-size: 14px;
}

button {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

button:hover {
    background: #0056b3;
}

/* agreement n signature */
.form-group {
    margin-bottom: 20px;
}

.agreement-text {
    border: 1px solid #ccc;
    padding: 10px;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    border-radius: 4px;
    height: 190px;
    overflow-y: auto;
}

.form-footer {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.signature-pad {
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: crosshair;
    display: block;
    margin-top: 10px;
}

button#clear-signature {
    margin-top: 10px;
    padding: 5px 10px;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.agreement-text p {
    text-align: justify;
}

.agreement-text ol {
    text-align: justify;
}

span.text-color {
    color: red;
}

@media (max-width: 768px){
    .container {
    width: 100%;
    max-width: 100%;  /* Ensure the container does not overflow */
    overflow-x: hidden;
}
canvas#signature-pad{
    width:100% !important;
}
}