/* Contenitore principale del modulo */
.form-container {
    background: #ffffff !important;
    border: 1px solid #e1e4e8 !important;
    border-radius: 8px !important;
    padding: 30px !important;
    max-width: 600px !important;
    margin: 20px auto !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
    text-align: left !important;
    box-sizing: border-box !important;
}

/* Ogni singolo gruppo riga del form */
.form-group {
    margin-bottom: 20px !important;
    display: block !important;
    width: 100% !important;
    text-align: left !important;
}

/* Etichette sopra i campi */
.form-group label {
    display: block !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
    color: #2c3e50 !important;
    font-size: 1rem !important;
}

/* Caselle di testo (input e textarea) larghe al 100% */
.form-control {
    width: 100% !important;
    padding: 12px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    font-size: 1rem !important;
    box-sizing: border-box !important;
    background-color: #ffffff !important;
    color: #333333 !important;
    display: block !important;
}

.form-control:focus {
    border-color: #007bff !important;
    outline: none !important;
    box-shadow: 0 0 5px rgba(0,123,255,0.25) !important;
}

/* Pulsanti in basso allineati */
.form-buttons {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: 30px !important;
    gap: 15px !important;
}

/* Banner principale dinamico */
.hero-banner {
    background: rgba(0, 86, 179, 0.6) !important;
    max-width: 600px !important;
    margin: 20px auto !important;
    border-radius: 8px !important;
    padding: 20px !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

.hero-banner h1 {
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    font-size: 1.8rem !important;
    color: #ffffff !important;
    margin: 0 !important;
}

/* --- STILI DEL MODALE DI SUCCESSO (POPUP) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    animation: modalFadeIn 0.3s ease;
}

.modal-icon {
    font-size: 50px;
    color: #28a745;
    margin-bottom: 15px;
}

.modal-content h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.modal-content p {
    color: #666;
    margin-bottom: 20px;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}