/* ============================
   LICENZE – CARD SELEZIONABILI
   ============================ */

.license-wrapper {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0;
}

/* Card base */
.license-card {
    width: 300px;
    padding: 20px;
    border-radius: 4px;
    border: 1px solid transparent;
    background: #fff;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

/* Hover */
/* Hover: feedback leggero */
.license-card:hover {
    border-color: var(--blue-medium);
    box-shadow: 0 0 8px rgba(0,0,0,0.08);
    transform: none; /* niente scale */
}

/* Stato selezionato */
.license-card.selected {
    border-color: var(--blue-medium);
    box-shadow: 0 0 12px rgba(0,0,0,0.15);
    position: relative;
}

.license-card.selected::after {
    content: "✓";
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.4rem;
    color: var(--blue-dark);
    font-weight: bold;
}

/* Varianti */
.license-basic, .license-advanced {
    background-color: var(--blue-light);
}
/* Titolo */
.license-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--blue-dark);
}

/* Prezzi */
.license-price-current {
    font-weight: bold;
    font-size: 1.3rem;
    color: var(--blue-dark);
}

.license-price-old {
    text-decoration: line-through;
    color: var(--text-muted);
    margin-left: 6px;
}

/* Responsive */
@media (max-width: 768px) {
    .license-card {
        width: 90%;
    }
}


.license-info-inline {
    margin: 30px auto 0 auto;
    padding: 15px 20px;
    max-width: 650px;

    background: var(--blue-light);
    border-radius: 4px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;

    text-align: center;
    font-size: 0.95em;
    line-height: 1.4;
}

.license-info-inline p {
    margin: 0;
}

@media (max-width: 700px) {
    .license-info-inline {
        flex-direction: column;
        gap: 12px;
        max-width: 100%;
    }
}

.loader-bar {
    width: 100%;
    height: 6px;
    background: #e6f4ea;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 10px;
    position: relative;
}

.loader-bar::before {
    content: "";
    position: absolute;
    left: -40%;
    width: 40%;
    height: 100%;
    background: #28a745;
    animation: loadingBar 1.2s infinite;
    border-radius: 4px;
}

@keyframes loadingBar {
    0% { left: -40%; }
    50% { left: 60%; }
    100% { left: 100%; }
}

.final-summary-box {
    background: #f7fbff;
    border: 1px solid #c9dff5;
    border-radius: 4px;
    padding: 20px;
    margin-top: 25px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    animation: fadeIn 0.4s ease-out;
}

.final-summary-box h3 {
    margin-top: 0;
    color: #1a4f7a;
    font-size: 1.3rem;
}

.final-summary-item {
    margin: 8px 0;
    font-size: 1rem;
}

.final-summary-item strong {
    color: #0d3a5c;
}

.final-summary-icon {
    margin-right: 6px;
    opacity: 0.85;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
