/*
 Theme Name: Routine News Child
 Template: routine-news
 Version: 1.0
*/

/* =========================================================
   STILE PERSONALIZZATO CONTACT FORM 7 - UNARMA FVG
========================================================= */

/* 1. Contenitore Principale del Form */
.wpcf7 {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(10, 34, 64, 0.08);
    border-top: 5px solid #0a2240;
    max-width: 800px;
    margin: 0 auto;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, sans-serif;
}

/* 2. Stile delle Etichette (Label) */
.wpcf7 label {
    font-weight: 700;
    color: #0a2240;
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
}

/* 3. Campi di Testo, Email e Area di Testo */
.wpcf7 .form-control {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background-color: #f8fafc;
    font-size: 16px;
    color: #334155;
    transition: all 0.3s ease;
    box-sizing: border-box;
    margin-bottom: 25px;
    font-family: inherit;
}

/* Effetto quando si clicca dentro il campo (Focus) */
.wpcf7 .form-control:focus {
    border-color: #0a2240;
    outline: none;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(10, 34, 64, 0.1);
}

/* L'area di testo deve essere un po' più alta */
.wpcf7 textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* 4. Disposizione dei Checkbox a Griglia (Argomenti) */
.wpcf7-checkbox {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
    margin-top: 10px;
}

/* Stile dei singoli elementi Checkbox */
.wpcf7-list-item {
    margin: 0 !important;
}

.wpcf7-list-item-label {
    color: #475569;
    font-size: 15px;
    cursor: pointer;
    margin-left: 8px;
}

/* 5. Checkbox finale "Copia del messaggio" in evidenza */
span.wpcf7-list-item.first.last {
    display: block;
    margin-bottom: 30px !important;
    padding: 15px;
    background: #f0f4f8;
    border-radius: 6px;
    border-left: 4px solid #4ba3e3;
    width: 100%;
    box-sizing: border-box;
}

/* 6. Campo Allega Documentazione */
.wpcf7-file {
    display: block;
    margin-bottom: 30px;
    font-size: 15px;
    color: #475569;
    padding: 10px 0;
}

/* 7. Pulsante di Invio (Rosso UNARMA) */
.wpcf7 .btn-submit {
    background-color: #d32f2f;
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    padding: 16px 30px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(211, 47, 47, 0.2);
}

.wpcf7 .btn-submit:hover {
    background-color: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(211, 47, 47, 0.3);
}

/* Messaggi di Errore/Successo di Contact Form 7 */
.wpcf7-response-output {
    border-radius: 6px !important;
    margin-top: 20px !important;
    font-weight: bold;
}