/* Signature Canvas Styling */
.signature-container {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.signature-pad {
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    background-color: #f8fafc;
    width: 100%;
    height: 200px;
    cursor: crosshair;
    touch-action: none;
    /* Prevent scrolling while drawing */
}

.clear-btn {
    padding: 0.4rem 0.8rem;
    background: #e2e8f0;
    color: #4a5568;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
    align-self: flex-end;
}

.clear-btn:hover {
    background: #cbd5e0;
}

/* New signature canvas styling */
.signature-canvas-container {
    margin-top: 1rem;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    width: 100%;
}

#signatureCanvas {
    border: 2px solid #cbd5e0;
    border-radius: 8px;
    background-color: #ffffff;
    cursor: crosshair;
    touch-action: none;
    max-width: 100%;
    height: auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.clear-signature-button {
    padding: 0.5rem 1rem;
    background: #e53e3e;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    align-self: center;
}

.clear-signature-button:hover {
    background: #c53030;
    transform: translateY(-1px);
}

.clear-signature-button:active {
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #signatureCanvas {
        width: 100%;
        height: 150px;
    }
}