/* =========================================================
   Hamida Traders — RTM-031
   CATEGORY SELECTION REFINEMENT
   Load AFTER inquiry-portal.css and BEFORE responsive.css
   ========================================================= */

.inq-category-grid{
    align-items:stretch;
}

.inq-category-card{
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
    min-width:0;
    min-height:170px;
    outline:none;
}

.inq-category-card:focus-visible{
    border-color:rgba(0,82,204,.38);
    box-shadow:
        0 0 0 4px rgba(0,82,204,.07),
        0 18px 42px rgba(15,39,71,.07);
}

.inq-category-card.is-selected{
    border-color:#0052cc;
    background:
        linear-gradient(180deg,rgba(0,82,204,.035),rgba(0,82,204,.015)),
        #fff;
}

.inq-category-card.is-selected::after{
    content:"✓";
    position:absolute;
    top:15px;
    right:15px;
    display:grid;
    place-items:center;
    width:24px;
    height:24px;
    border-radius:50%;
    color:#fff;
    background:#0052cc;
    box-shadow:0 7px 18px rgba(0,82,204,.20);
    font-size:9px;
    font-weight:900;
}

.inq-category-card[aria-pressed="true"]>i{
    opacity:0;
}

.inq-category-card__icon{
    flex:0 0 auto;
}

.inq-category-card strong{
    overflow-wrap:anywhere;
}

.inq-category-card small{
    line-height:1.5;
}

.inq-category-status{
    display:none;
    margin-top:17px;
    padding:11px 13px;
    border:1px solid rgba(0,82,204,.09);
    border-radius:13px;
    color:#52657a;
    background:rgba(0,82,204,.035);
    font-size:9px;
    line-height:1.55;
}

.inq-category-status.is-visible{
    display:block;
}

.inq-category-status strong{
    color:#0052cc;
}

.inq-category-error{
    display:none;
    margin-top:13px;
    padding:10px 12px;
    border:1px solid rgba(220,38,38,.12);
    border-radius:12px;
    color:#991b1b;
    background:rgba(220,38,38,.045);
    font-size:9px;
}

.inq-category-error.is-visible{
    display:block;
}

@media(max-width:620px){
    .inq-category-card{
        min-height:136px;
    }
}

@media(hover:none),(pointer:coarse){
    .inq-category-card{
        min-height:148px;
    }
}
