/* =========================================================
   PREVENTIVO - STEP 1
   Scelta rilegatura - Design elegante
   ========================================================= */

.option-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding: 26px 0;
}

/* =========================================================
   OPTION CARD
   ========================================================= */

.option-card {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 155px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #ffffff;
    cursor: pointer;
    overflow: hidden;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease,
        background 0.25s ease;
}

.option-card:hover {
    border-color: #9ca3af;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

/* =========================================================
   RADIO
   ========================================================= */

.option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* =========================================================
   CONTENUTO
   ========================================================= */

.option-content {
    display: grid;
    grid-template-columns: 54px 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 16px;
    align-items: center;
    width: 100%;
}

.option-content i {
    grid-column: 1;
    grid-row: 1 / 4;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 54px;
    height: 54px;

    border-radius: 15px;
    background: #f3f4f6;
    color: #374151;

    font-size: 1.45rem;

    transition:
        background 0.25s ease,
        color 0.25s ease;
}

.option-content strong {
    grid-column: 2;
    color: #111827;
    font-size: 1rem;
    font-weight: 750;
    margin-bottom: 5px;
}

.option-content small:first-of-type {
    grid-column: 2;
    color: #6b7280;
    font-size: 0.82rem;
    line-height: 1.5;
}

.option-content small:last-of-type {
    grid-column: 2;
    justify-self: start;

    display: inline-flex;
    align-items: center;

    margin-top: 10px;
    padding: 5px 11px;

    border-radius: 20px;
    background: #f3f4f6;
    color: #374151;

    font-size: 0.78rem;
    font-weight: 700;
}

/* =========================================================
   SELEZIONE
   ========================================================= */

.option-card:has(input[type="radio"]:checked) {
    border: 2px solid #1f2937;
    background: #fafafa;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.09);
}

.option-card:has(input[type="radio"]:checked) .option-content i {
    background: #1f2937;
    color: #ffffff;
}

.option-card:has(input[type="radio"]:checked) .option-content small:last-of-type {
    background: #e5e7eb;
    color: #111827;
}

/* Indicatore di selezione */

.option-card:has(input[type="radio"]:checked)::after {
    content: "✓";

    position: absolute;
    top: 13px;
    right: 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 25px;
    height: 25px;

    border-radius: 50%;
    background: #1f2937;
    color: #ffffff;

    font-size: 0.8rem;
    font-weight: 700;
}

/* =========================================================
   FOCUS ACCESSIBILE
   ========================================================= */

.option-card:focus-within {
    outline: 3px solid rgba(31, 41, 55, 0.15);
    outline-offset: 3px;
}

/* =========================================================
   AZIONI
   ========================================================= */

.step-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 12px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 575px) {

    .option-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 20px 0;
    }

    .option-card {
        min-height: 125px;
        padding: 19px;
    }

    .option-content {
        grid-template-columns: 48px 1fr;
        column-gap: 13px;
    }

    .option-content i {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    .option-content strong {
        font-size: 0.94rem;
    }

    .option-content small:first-of-type {
        font-size: 0.78rem;
    }
}