/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

header {
    background-color: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
}

header .logo {
    max-width: 100px;
    height: auto;
    margin-bottom: 10px;
}

header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.form-section {
    padding: 20px;
    background-color: #fff;
    margin: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-grid {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-column {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
input[type="number"],
input[type="tel"],
input[type="email"],
input[type="date"],
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.signature-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.signature-section {
    flex: 1;
    text-align: center;
}

.signature-canvas-container {
    width: 100%;
    height: 150px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 10px;
}

canvas {
    width: 100%;
    height: 100%;
    background-color: #fff;
    border-radius: 4px;
    touch-action: none; /* Prevent browser touch actions */
}

.button-group {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    background-color: #333;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
}

button:hover {
    background-color: #555;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px;
    margin-top: 20px;
}

/* Disclaimer Section */
.disclaimer {
    margin-top: 20px;
    padding: 15px;
    background-color: #f0f0f0;
    border-left: 4px solid #333;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #555;
}

.disclaimer strong {
    color: #333;
}

/* Mobile-Friendly Styles */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    header h2 {
        font-size: 1.2rem;
    }

    .form-grid {
        flex-direction: column;
    }

    .form-column {
        width: 100%;
    }

    .signature-container {
        flex-direction: column;
    }

    .signature-canvas-container {
        height: 120px; /* Adjusted for mobile */
    }

    .button-group {
        flex-direction: column;
    }

    button {
        width: 100%;
        margin-bottom: 10px;
    }
}