/* EMI Card Group Layout */
.emi-card-group {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 600px) {
    .emi-card-group {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .emi-card-group {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* EMI Card Base */
.emi-card {
    position: relative;
    background-color: #fff;
    border: 2px solid #e2ebf6;
    border-radius: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    display: block;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Hover State */
.emi-card:hover {
    border-color: #c4d1e1;
}

/* Hide Native Radio */
.emi-card-radio {
    display: none;
}

/* Content Box */
.emi-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    align-items: center;
}

/* Title + Cost */
.emi-card-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
}

.emi-card-cost {
    font-size: 1.2rem;
    font-weight: 500;
    color: #000;
}

/* Check Icon Hidden by Default */
.emi-card-check {
    position: absolute;
    top: 0.1rem;
    right: 0.3rem;
    color: #558309;
    font-size: 1.1rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* ✅ Entire Card Highlighted When Selected */
.emi-card-radio:checked ~ .emi-card-body .emi-card-check {
    opacity: 1;
}

.emi-card-radio:checked ~ .emi-card-body::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid #558309;
    border-radius: 0.5rem;
    pointer-events: none;
}
