/* /public/css/public-style.css */
.mhc-wrapper {
    max-width: 700px;
    margin: 20px auto;
    font-family: sans-serif;
}
.mhc-form-section {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 5px;
    border-radius: 5px;
}
.mhc-form-section h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #417a2a;
    padding-bottom: 0px;
	margin-bottom: 10px;
    font-size: 1.2em; /* Dimensione desktop */
}
.mhc-form-section p { 
	margin-bottom: 0em;
}
/* Stili per le fasce orarie */
.mhc-slot-option {
    margin-bottom: 10px;
}
.mhc-slot-option input[type="radio"] {
    display: none;
}
.mhc-slot-option label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
.mhc-slot-option label.mhc-disabled {
    background-color: #eee;
    color: #aaa;
    cursor: not-allowed;
}
.mhc-slot-time { font-weight: bold; }

/* Stile per la fascia oraria selezionata */
.mhc-slot-option input[type="radio"]:checked + label {
    border-color: #417a2a;
    border-width: 2px;
    background-color: #e8f5e9;
    box-shadow: 0 0 8px rgba(65, 122, 42, 0.6);
    color: #2e7d32;
}

/* Griglia per i campi */
.mhc-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}
.mhc-form-field.mhc-full-width {
    grid-column: 1 / -1;
}
.mhc-form-field label {
    display: block;
    font-weight: bold;
    margin-bottom: 2px;
    font-size: 14px; /* Dimensione desktop */
}
.mhc-form-field input[type="text"],
.mhc-form-field input[type="email"],
.mhc-form-field input[type="tel"],
.mhc-form-field select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.mhc-form-field input:focus, .mhc-form-field select:focus {
    border-color: #417a2a;
    outline: none;
}
/* Consensi e bottone */
.mhc-checkbox-field label { font-size: 0.9em; }
.mhc-submit-area {
    text-align: center;
}

/* --- INIZIO BLOCCO MODIFICATO --- */
.mhc-submit-button {
    background-color: #417a2a;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}
.mhc-submit-button:hover {
    background-color: #356322;
}
.mhc-submit-button:disabled {
    background-color: #999;
    cursor: not-allowed;
}
/* --- FINE BLOCCO MODIFICATO --- */

.mhc-form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
}
.mhc-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}
.mhc-error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* Stile per il messaggio di successo finale */
.mhc-final-success-message {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 2px solid #417a2a;
    border-radius: 5px;
    padding: 40px 20px;
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
}

/* ---------------------------------------------- */
/* -- OTTIMIZZAZIONE MOBILE -- */
/* ---------------------------------------------- */
@media (max-width: 600px) {
    /* Rende il layout più compatto */
    .mhc-form-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    /* Riduce la dimensione dei titoli */
    .mhc-form-section h3 {
        font-size: 1.25em; 
        padding-bottom: 8px;
    }
	.mhc-form-section p {
	padding-bottom: 0em;
	}

    /* Imposta i campi su una singola colonna e riduce lo spazio */
    .mhc-form-grid {
        grid-template-columns: 1fr;
        gap: 15px; 
    }

    /* Riduce la dimensione del testo delle etichette */
    .mhc-form-field label {
        font-size: 0.9em;
    }

    /* Riduce il padding interno ai campi per renderli meno alti */
    .mhc-form-field input[type="text"],
    .mhc-form-field input[type="email"],
    .mhc-form-field input[type="tel"],
    .mhc-form-field select {
        padding: 9px;
    }
    
    /* Rende le opzioni delle fasce orarie più compatte */
    .mhc-slot-option label {
        padding: 12px;
        font-size: 0.95em;
    }

    /* Ridimensiona il pulsante di invio */
    .mhc-submit-button {
        padding: 12px 24px;
        font-size: 1em;
    }
}