.disc-dg {font-size: 16px !important;
  color: #333 !important;
  margin-bottom: 8px !important;
  font-weight: 400 !important;
	font-size: 15px!important;
}

.disc-dg a {
  color: #01608c;
}
/* Stile per il contenitore della selezione */
.content-selector {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(1, 96, 140, 0.1);
    margin-bottom: 30px;
    border: 1px solid #e1e1e8;
}

.content-selector h3 {
    color: #01608C;
    font-size: 1.5em;
    margin-bottom: 20px;
    font-weight: 500;
    text-align: center;
}

/* Stile per il gruppo di radio button */
.radio-group {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

/* Stile per ogni label contenente il radio button */
.radio-group label {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    border: 2px solid #e1e1e8;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}

.radio-group label:hover {
    border-color: #01608C;
    background: #f8f9fa;
}

/* Stile per i radio button */
.radio-group input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #01608C;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    cursor: pointer;
}

/* Stile per il radio button selezionato */
.radio-group input[type="radio"]:checked {
    background: #01608C;
    border-color: #01608C;
}

.radio-group input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

/* Stile per i radio button disabilitati */
.radio-group input[type="radio"]:disabled {
    border-color: #ccc;
    background: #f5f5f5;
    cursor: not-allowed;
}

.radio-group input[type="radio"]:disabled + span {
    color: #999;
}

.radio-group label:has(input[type="radio"]:disabled) {
    border-color: #e1e1e8;
    background: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Aggiunta del testo dopo il radio button */
.radio-group label span {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

/* Responsive design */
@media (max-width: 768px) {
    .radio-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .radio-group label {
        width: 100%;
        justify-content: center;
    }
}

/* Stile per l'etichetta principale */
.etichetta {
    font-size: 16px !important;
    color: #333 !important;
    margin-bottom: 8px !important;
    font-weight: 500 !important;
    text-align: center !important;
}

/* Stile per l'etichetta dei formati */
.etichetta-formati {
    font-size: 12px !important;
    color: #666 !important;
    margin-top: 4px !important;
    margin-bottom: 15px !important;
    text-align: center !important;
    font-style: italic !important;
    line-height: 1.4 !important;
    background-color: #f5f5f5 !important;
    border-radius: 4px !important;
    padding: 6px 12px !important;
    display: inline-block !important;
    border: 1px solid #e0e0e0 !important;
}

/* Effetto hover sull'etichetta dei formati */
.etichetta-formati:hover {
    background-color: #eef2f5 !important;
    border-color: #01608C !important;
    color: #01608C !important;
    transition: all 0.3s ease !important;
}

/* Per centrare il contenuto se necessario */
.upload-prompt {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
}

/* Stile del contenitore */
.preview-container {
    position: relative !important;
    margin: 1rem 0 !important;
    border: 1px dashed #ccc !important;
    padding: 15px !important;
    min-height: 100px !important;
}

/* Stili per l'anteprima dell'immagine e del video */
.preview-container img,
.preview-container video {
    max-width: 100% !important;
    border-radius: 4px !important;
    display: block !important;
    margin: 0 auto !important;
}

/* Stile del pulsante di rimozione */
.remove-file {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    background-color: #fff !important;
    border: 1px solid #ff4444 !important;
    color: #ff4444 !important;
    font-size: 20px !important;
    font-weight: bold !important;
    line-height: 1 !important;
    padding: 0 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    z-index: 10 !important;
}

.remove-file:hover {
    background-color: #ff4444 !important;
    color: #fff !important;
    transform: scale(1.1) !important;
}

.remove-file:active {
    transform: scale(0.95) !important;
}

/* Stili per l'area di upload */
.upload-area {
    border: 2px dashed #01608C !important;
    border-radius: 8px !important;
    padding: 20px !important;
    text-align: center !important;
    background-color: #f8f9fa !important;
    min-height: 200px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
}

.upload-prompt {
    width: 100% !important;
}

.upload-btn {
    background-color: #01608C !important;
    color: white !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    margin-top: 10px !important;
}

.upload-btn:hover {
    background-color: #014b6d !important;
}
/* Assicurati che il container dell'anteprima sia posizionato relativamente */
.preview-container {
    position: relative;
    margin: 1rem 0;
}

/* Stili per l'anteprima dell'immagine e del video */
.preview-container img,
.preview-container video {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Quando si passa sopra al container dell'anteprima */
.preview-container:hover .remove-file {
    opacity: 1;
}

/* Agency Uploader Styles */
.agency-uploader-container {
    max-width: 800px;
    margin: 2rem auto;
    font-family: 'Arial', sans-serif;
}

.upload-section {
    margin-bottom: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.upload-section h3 {
    color: #01608C;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.upload-area {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.upload-area.dragover {
    border-color: var(--primary-color);
    background: rgba(1, 96, 140, 0.05);
}

.upload-prompt {
    color: #666;
}

.upload-prompt i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.upload-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 1rem;
    transition: background 0.3s ease;
}

.upload-btn:hover {
    background: #014b6d;
}

.preview-container {
    width: 100%;
    position: relative;
}

.preview-container img,
.preview-container video {
    max-width: 100%;
    max-height: 200px;
    margin-top: 1rem;
    border-radius: 4px;
}

.remove-file {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ff4444;
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

#digital-signature {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.save-signature-btn {
    background-color: #01608C;
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.save-signature-btn:hover {
    background: #014b6d;
}

/* Loading spinner */
.loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading::after {
    content: "";
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


.upload-limits {
    display: block;
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.upload-area.error {
    border-color: #ff4444;
}

.error-message {
    color: #ff4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}