/* =========================================================
   PREVENTIVO - STEP 1
   ========================================================= */

/* =========================================================
   OPTION GRID
   ========================================================= */

.option-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 26px;
}

/* =========================================================
   OPTION CARD
   ========================================================= */

.option-card {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 120px;
    padding: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.option-card:hover {
    border-color: #9ca3af;
    transform: translateY(-2px);
    box-shadow:
        0 8px 20px rgba(15, 23, 42, 0.07);
}

/* =========================================================
   RADIO
   ========================================================= */

.option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* =========================================================
   CONTENUTO
   ========================================================= */

.option-content {
    width: 100%;
}

.option-content i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 12px;
    border-radius: 11px;
    background: #f3f4f6;
    color: #111827;
    font-size: 1.15rem;
}

.option-content strong {
    display: block;
    margin-bottom: 5px;
    color: #111827;
    font-size: 0.95rem;
    font-weight: 800;
}

.option-content small {
    display: block;
    color: #6b7280;
    font-size: 0.78rem;
    line-height: 1.5;
}

/* =========================================================
   OPTION SELEZIONATA
   ========================================================= */

.option-card:has(
    input[type="radio"]:checked
) {
    border-color: #111827;
    background: #f9fafb;
    box-shadow:
        0 8px 24px rgba(17, 24, 39, 0.08);
}

.option-card:has(
    input[type="radio"]:checked
) .option-content i {
    background: #111827;
    color: #ffffff;
}

.option-card:has(
    input[type="radio"]:checked
) .option-content strong {
    color: #111827;
}

/* =========================================================
   NUMERO PAGINE / COPIE
   ========================================================= */

.step1-input-section {
    padding: 0 26px 26px;
}

.step1-input-section .row {
    row-gap: 20px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991px) {

    .option-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {

    .option-grid {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 12px;
    }

    .option-card {
        min-height: 100px;
        padding: 17px;
    }

    .step1-input-section {
        padding: 0 20px 20px;
    }
}

@media (max-width: 480px) {

    .option-grid {
        padding: 16px;
    }

    .option-card {
        min-height: 90px;
        padding: 15px;
    }

    .option-content i {
        width: 38px;
        height: 38px;
        margin-bottom: 9px;
    }

    .option-content strong {
        font-size: 0.88rem;
    }

    .option-content small {
        font-size: 0.73rem;
    }

    .step1-input-section {
        padding: 0 16px 16px;
    }
}