/* ============================================================
   STILE GENERALE FORM CT
   ============================================================ */

#ct-form-wrapper {
    max-width: 950px;
    margin: 30px auto;
    background: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(0,0,0,0.08);
}

#ct-form-wrapper h2 {
    margin-top: 0;
    font-size: 22px;
    color: #2d2d2d;
    font-weight: 600;
}

#ct-form-wrapper h3 {
    margin-top: 20px;
    font-size: 18px;
    color: #3b3b3b;
    font-weight: 500;
}

/* ============================================================
   CAMPI FORM
   ============================================================ */

#ct-form input[type="text"],
#ct-form input[type="email"],
#ct-form input[type="date"],
#ct-form input[type="number"],
#ct-form select,
#ct-form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 4px;
    margin-bottom: 18px;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    background: #fafafa;
    font-size: 14px;
}

#ct-form textarea {
    height: 90px;
}

/* ============================================================
   SEZIONE DOCUMENTI – VERSIONE VERTICALE DEFINITIVA
   ============================================================ */

.ct-doc-row {
    display: block;
    width: 100%;
    margin-bottom: 24px;
}

.ct-doc-row label {
    display: block;
    width: 100%;
    font-weight: 600;
    margin-bottom: 6px;
}

.ct-doc-row input[type="file"] {
    width: 100%;
    padding: 10px;
    background: #fafafa;
    border-radius: 6px;
    border: 1px solid #dcdcdc;
    margin-bottom: 6px;
}

.ct-doc-row a {
    display: inline-block;
    color: #34b233;
    font-size: 13px;
    text-decoration: underline;
    margin-top: 4px;
}

.ct-doc-row a:hover {
    color: #248020;
}

/* ============================================================
   PULSANTI STEP
   ============================================================ */

.ct-prev,
.ct-next,
#ct-save-invia {
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    margin-top: 10px;
}

.ct-prev {
    background: #e0e0e0;
    border: 1px solid #c9c9c9;
}

.ct-prev:hover {
    background: #d5d5d5;
}

.ct-next {
    background: #7ed957;
    border: 1px solid #6ac949;
    color: #fff;
    font-weight: 600;
}

.ct-next:hover {
    background: #6ac949;
}

#ct-save-invia {
    background: #34b233;
    border: 1px solid #2c9e2c;
    color: #fff;
    font-weight: bold;
}

#ct-save-invia:hover {
    background: #2c9e2c;
}

/* ============================================================
   INDICATORE STEP
   ============================================================ */

.ct-step-indicator {
    display: flex;
    margin-bottom: 20px;
    justify-content: space-between;
}

.ct-step-indicator div {
    flex: 1;
    padding: 8px;
    background: #f3f3f3;
    margin-right: 6px;
    text-align: center;
    border-radius: 6px;
    font-size: 12px;
}

.ct-step-indicator .active {
    background: #7ed957;
    color: #fff;
    font-weight: bold;
}

/* ============================================================
   TABELLONE LISTA PRATICHE
   ============================================================ */

.ct-filtri select {
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: #fff;
}

.ct-stato {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    color: #fff;
    font-weight: bold;
}

.ct-bozza {
    background: #9e9e9e;
}

.ct-inviata {
    background: #3ea3ff;
}

.ct-completa {
    background: #34b233;
}

/* ============================================================
   RIEPILOGO STEP 6 – DUE COLONNE
   ============================================================ */

#riepilogo-container {
    margin-top: 20px;
}

#riepilogo-container table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ececec;
}

#riepilogo-container td {
    padding: 10px;
    border-bottom: 1px solid #ececec;
    vertical-align: top;
    font-size: 14px;
}

#riepilogo-container td.label {
    width: 35%;
    background: #f8f8f8;
    font-weight: 600;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {

    #ct-form-wrapper {
        padding: 15px;
    }

    #riepilogo-container td {
        font-size: 13px;
    }

    .ct-prev, .ct-next, #ct-save-invia {
        width: 100%;
        margin-bottom: 10px;
    }
}
