body {
    font-family: Arial, sans-serif;
    margin: 20px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}
.form-container {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.form-section {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
}
h2 {
    color: #3498db;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-top: 20px;
}
label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}
input, textarea, select {
    display: block;
    margin-bottom: 15px;
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}
textarea {
    min-height: 100px;
    resize: vertical;
}
.row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.col {
    flex: 1;
    min-width: 200px;
}
button {
    padding: 12px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    margin-top: 20px;
}
button:hover {
    background-color: #0056b3;
}
.partecipante-container {
    background-color: #f5f5f5;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
}
#logoPreview {
    max-width: 200px;
    max-height: 100px;
    margin-top: 10px;
    display: none;
}
.actions {
    text-align: center;
    margin-top: 30px;
}
.preview-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 1000;
    overflow: auto;
    padding: 20px;
    box-sizing: border-box;
}

.preview-content {
    background-color: white;
    margin: 20px auto;
    padding: 20px;
    max-width: 800px;
    border-radius: 8px;
    position: relative;
    height: calc(100vh - 100px);
    overflow: auto;
}

.close-preview {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

#pdfPreviewContent {
    width: 100%;
    height: calc(100% - 80px);
    overflow: auto;
}

#pdfPreviewContent iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.close-preview {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}
.foto-cantiere-container {
    margin-top: 15px;
}
.foto-preview {
    max-width: 150px;
    max-height: 150px;
    margin: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 3px;
}
.foto-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}
.error {
    border: 1px solid #e74c3c;
}
.error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: -10px;
    margin-bottom: 10px;
}
@media (max-width: 768px) {
    .row {
        flex-direction: column;
    }
    .col {
        min-width: 100%;
    }
    body {
        margin: 10px;
        padding: 10px;
    }
    .form-container {
        padding: 10px;
    }
}
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #2ecc71;
    color: white;
    padding: 15px 20px;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: none;
    z-index: 1000;
}
.signature-pad-container {
    margin-top: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}
.signature-pad {
    width: 100%;
    height: 150px;
    background-color: #fff;
    touch-action: none;
}
.signature-pad-buttons {
    display: flex;
    justify-content: flex-end;
    padding: 5px;
    background-color: #f5f5f5;
}
.signature-pad-buttons button {
    margin: 0 5px;
    padding: 5px 10px;
    font-size: 14px;
} 