/* =============================================================================
 * css/OP05_crea_poll.css - Stile della pagina "Crea un sondaggio"
 * (doodle/doodle_steep_one.php, index.php?idPg=8).
 * Prefisso OP05_ su tutte le classi per non toccare il template NewBiz.
 * Colori: blu sito #15476c, primario Bootstrap #007bff, accento #ff9900.
 * Include l'effetto "yellow fade" (OP05_flash) per gli elementi appena
 * aggiunti o salvati.
 * Restyling sito: sfondo chiaro come le altre pagine (prima sfumatura blu),
 * spazio per il nuovo header fisso (72px, 60px su telefono), scheda con
 * bordo e ombra leggera, barra dei passi agganciata sotto l'header.
 * ============================================================================= */

.OP05_sfondo {
    background: #f4f7fb;
    border-bottom: 1px solid #e6ebf1;
    padding: 120px 15px 80px;
    min-height: 100vh;
}

.OP05_card {
    max-width: 760px;
    margin: 0 auto;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e6ebf1;
    box-shadow: 0 18px 40px rgba(21, 71, 108, .10);
    font-family: 'Montserrat', Arial, sans-serif;
    padding: 32px 36px 28px;
    text-align: left;
    font-size: 15px;
    color: #343a40;
}

.OP05_intestazione { text-align: center; margin-bottom: 18px; }
.OP05_intestazione h1 { font-size: 30px; font-weight: 700; color: #15476c; margin: 0 0 6px; }
.OP05_intestazione p { color: #6c757d; margin: 0; }

/* --- barra dei passi ---------------------------------------------------- */
.OP05_passi {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    counter-reset: none;
    position: sticky;
    top: 84px;
    z-index: 5;
    background: #fff;
    padding: 10px 0;
}
.OP05_passi li {
    flex: 1;
    text-align: center;
    font-size: 13px;
    color: #adb5bd;
    position: relative;
    cursor: pointer;
}
.OP05_passi li::before {
    content: "";
    position: absolute;
    top: 15px;
    left: -50%;
    width: 100%;
    height: 3px;
    background: #e9ecef;
    z-index: -1;
}
.OP05_passi li:first-child::before { display: none; }
.OP05_passi li span {
    display: block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    margin: 0 auto 4px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    font-weight: 700;
}
.OP05_passi li.OP05_attivo { color: #007bff; font-weight: 600; }
.OP05_passi li.OP05_attivo span { background: #007bff; color: #fff; }
.OP05_passi li.OP05_ok { color: #28a745; }
.OP05_passi li.OP05_ok span { background: #28a745; color: #fff; }
.OP05_passi li.OP05_ok::before, .OP05_passi li.OP05_attivo::before { background: #9ec5fe; }

/* --- sezioni -------------------------------------------------------------- */
.OP05_sezione {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 18px 20px 20px;
    margin: 0 0 18px;
    scroll-margin-top: 150px;
}
.OP05_sezione legend {
    width: auto;
    font-size: 18px;
    font-weight: 700;
    color: #15476c;
    padding: 0 8px;
    margin: 0 0 6px -8px;
}
.OP05_num {
    display: inline-block;
    width: 26px;
    height: 26px;
    line-height: 26px;
    text-align: center;
    border-radius: 50%;
    background: #15476c;
    color: #fff;
    font-size: 14px;
    margin-right: 8px;
}
.OP05_sezione label { display: block; font-weight: 600; margin: 12px 0 4px; font-size: 14px; }
.OP05_sezione label small { font-weight: 400; color: #dc3545; }
.OP05_aiuto { display: block; color: #6c757d; font-size: 13px; margin-top: 4px; }
.OP05_corto { max-width: 280px; }
.OP05_card .form-control { font-size: 15px; }
.OP05_card .form-control.OP05_errore { border-color: #dc3545; box-shadow: 0 0 0 .15rem rgba(220, 53, 69, .2); }

/* --- elenco opzioni ------------------------------------------------------- */
.OP05_opzioni { list-style: none; padding: 0; margin: 14px 0 0; }
.OP05_opzione {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 8px;
    background: #f8f9fc;
}
.OP05_ord {
    flex: 0 0 26px;
    height: 26px;
    line-height: 26px;
    text-align: center;
    border-radius: 50%;
    background: #dbe7ff;
    color: #15476c;
    font-weight: 700;
    font-size: 13px;
}
.OP05_corpo { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.OP05_testo {
    cursor: text;
    padding: 4px 6px;
    border-radius: 4px;
    word-break: break-word;
}
.OP05_testo:hover, .OP05_testo:focus { background: #fff; outline: 1px dashed #9ec5fe; }
.OP05_testo_input { flex: 1; min-width: 160px; }
.OP05_data_badge {
    white-space: nowrap;
    font-size: 12px;
    background: #fff3cd;
    color: #856404;
    border-radius: 10px;
    padding: 2px 8px;
    cursor: pointer;
}
.OP05_thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; cursor: pointer; }
.OP05_comandi { display: flex; gap: 4px; flex: 0 0 auto; }
.OP05_icona {
    position: relative;
    width: 34px;
    height: 34px;
    line-height: 32px;
    text-align: center;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 16px;
    margin: 0 !important;
    font-weight: 400 !important;
    overflow: hidden;
}
.OP05_icona:hover { border-color: #007bff; }
.OP05_btn_elimina:hover { border-color: #dc3545; background: #fff5f5; }
.OP05_btn_data input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.OP05_vuoto { color: #adb5bd; font-style: italic; margin: 12px 0 0; }

.OP05_nuova { display: flex; gap: 8px; margin-top: 10px; }
.OP05_nuova .btn { white-space: nowrap; }

/* --- scelte per partecipante --------------------------------------------- */
.OP05_pref {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed #dee2e6;
}
.OP05_pref_label { font-weight: 600; font-size: 14px; }
.OP05_contatore { display: flex; align-items: center; gap: 6px; }
.OP05_contatore button {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #007bff;
    background: #fff;
    color: #007bff;
    font-size: 18px;
    line-height: 1;
}
.OP05_contatore button:disabled { border-color: #dee2e6; color: #ced4da; }
.OP05_contatore output { min-width: 28px; text-align: center; font-size: 20px; font-weight: 700; color: #15476c; }
.OP05_pref_su { color: #6c757d; font-size: 13px; }

/* --- dati creatore ----------------------------------------------------------- */
.OP05_riga2 { display: flex; gap: 14px; }
.OP05_riga2 > div { flex: 1; }
.OP05_captcha { margin: 16px 0; }

/* --- link finale ------------------------------------------------------------ */
.OP05_fatto { text-align: center; padding: 28px 20px; }
.OP05_check {
    width: 64px;
    height: 64px;
    line-height: 64px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: #28a745;
    color: #fff;
    font-size: 34px;
}
.OP05_fatto h2 { color: #15476c; font-size: 24px; font-weight: 700; }
.OP05_link { display: flex; gap: 8px; margin: 14px 0; }
.OP05_link .btn { white-space: nowrap; }
.OP05_azioni { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.OP05_nuovo { display: inline-block; margin-top: 18px; font-size: 14px; }

/* --- yellow fade / success flash ---------------------------------------- */
@keyframes OP05_flash {
    from { background-color: #fff3a0; }
    to   { background-color: transparent; }
}
.OP05_flash { animation: OP05_flash 1.4s ease-out; }

/* --- smartphone -------------------------------------------------------------- */
@media (max-width: 576px) {
    .OP05_sfondo { padding-top: 84px; }
    .OP05_card { padding: 22px 16px; }
    .OP05_intestazione h1 { font-size: 24px; }
    .OP05_passi li { font-size: 11px; }
    .OP05_riga2 { flex-direction: column; gap: 0; }
    .OP05_link { flex-direction: column; }
    .OP05_opzione { flex-wrap: wrap; }
    .OP05_corpo { flex: 1 1 calc(100% - 40px); }
    .OP05_comandi { margin-left: 36px; }
    .OP05_passi { position: static; }
}

/* ---------- stile ed emoticon (29/10/2026: come "Trova la data") ---------- */
/* pulsante 😊 accanto ai campi: il contenitore OP05E_campo (css/OP05_temi.css) prende il posto del campo */
.OP05_sezione .OP05E_campo { width: 100%; }
.OP05_nuova .OP05E_campo { flex: 1 1 auto; width: auto; }
.OP05_sezione .OP05T_picker { margin-top: 10px; }
.OP05_sezione .OP05T_anteprima .OP05T_titolo { font-size: 1.4rem; }
/* link di gestione dopo la creazione */
.OP05_link_g { margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: #fff8ec; border: 1px dashed #ffb84d; text-align: left; }
.OP05_link_g p { margin: 0 0 4px; font-size: .9rem; color: #8a5300; }
.OP05_link_g .OP05_link { margin: 8px 0 0; }
.OP05_nota_fatto { font-size: .88rem; color: #5d6b78; margin: 12px 0 0; }
