/* General Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Container Styling */
.container {
    max-width: 700px;
    width: 100%;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.container:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

/* Headings and Text */
h2 {
    text-align: center;
    font-size: 2rem;
    color: #1a3c5e;
    margin-bottom: 10px;
    font-weight: 600;
}

p {
    text-align: center;
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 30px;
}

/* Form Elements */
label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    margin: 12px 0 6px;
}

input, select {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.date-input {
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-input input {
    width: 80px;
    text-align: center;
}

.date-input span {
    font-size: 1.2rem;
    color: #6b7280;
}

/* Signature Canvas */
canvas#signaturePad {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
    width: 100%;
    max-width: 400px;
    height: 150px;
    touch-action: none;
}

/* Buttons */
button {
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

button[type="submit"] {
    background: #3b82f6;
    color: #ffffff;
    width: 100%;
    margin-top: 20px;
}

button[type="submit"]:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

#clearSignature {
    background: #ef4444;
    color: #ffffff;
    margin-top: 10px;
    width: 100%;
    max-width: 400px;
}

#clearSignature:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

/* Message Styling */
.message {
    margin-top: 20px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    color: #16a34a;
}

.message.error {
    color: #dc2626;
}

/* Responsive Design */
@media (max-width: 600px) {
    .container {
        padding: 20px;
    }

    h2 {
        font-size: 1.5rem;
    }

    input, select {
        padding: 10px;
        font-size: 0.9rem;
    }

    .date-input input {
        width: 60px;
    }

    canvas#signaturePad {
        max-width: 100%;
        height: 120px;
    }

    button {
        padding: 10px;
    }
}