/* =========================
   CAT FEEDING CALCULATOR
   CatsXpert
========================= */

.cx-feed-calculator{
    max-width:750px;
    margin:30px auto;
    font-family:inherit;
}

/* HEADER */

.cx-header{
    text-align:center;
    margin-bottom:18px;
}

.cx-header h2{
    margin:0 0 10px;
    font-size:42px;
    font-weight:700;
    line-height:1.2;
}

.cx-header p{
    margin:0;
    font-size:15px;
    color:#555;
}

/* FORM CARD */

.cx-form{
    background:rgba(167,25,48,.02);
    border:1px solid rgba(167,25,48,.08);
    border-radius:18px;
    padding:24px;
    margin-bottom:18px;
}

/* ROWS */

.cx-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    margin-bottom:14px;
}

.cx-row label{
    min-width:160px;
    font-size:17px;
    font-weight:600;
    color:#222;
}

/* WEIGHT */

.cx-weight-group{
    display:flex;
    gap:8px;
    align-items:center;
}

.cx-weight-group input,
.cx-weight-group select{
    width:90px !important;
    flex:none !important;
}

.cx-weight-group select{
    width:90px;
    flex:none;
}

/* BUTTON GROUPS */

.cx-buttons{
    flex:1;
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

.cx-buttons button{
    border:1px solid #d7d7d7;
    background:#1159AF;
    border-radius:10px;
    padding:10px 16px;
    font-size:15px;
    font-weight:500;
    cursor:pointer;
    transition:.2s;
}

.cx-buttons button:hover{
    transform:translateY(-1px);
}

.cx-buttons button.active{
    background:#A71930;
    color:#fff;
    border-color:#A71930;
    font-weight:600;
}

/* CALCULATE BUTTON */

.cx-calc-btn{
    width:100%;
    height:54px;
    border:none;
    border-radius:12px;
    background:#A71930;
    color:#fff;
    font-size:18px;
    font-weight:700;
    cursor:pointer;
    margin-top:10px;
    transition:.2s;
}

.cx-calc-btn:hover{
    opacity:.95;
}

/* RESULTS SECTION */

.cx-results{
    background:rgba(167,25,48,.02);
    border:1px solid rgba(167,25,48,.08);
    border-radius:18px;
    padding:20px;
}

/* RESULT CARDS */

.cx-results-grid{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    justify-content:space-between;
}

.cx-card{
    flex:1;
    min-width:120px;
    background:#fff;
    border-radius:10px;
    padding:10px;
    text-align:center;
    border:1px solid #eee;
}

.cx-card h3{
    font-size:12px;
    margin-bottom:4px;
}

.cx-card span{
    font-size:16px;
}

/* CONDITION COLORS */

.cx-condition-good{
    color:#2e7d32;
}

.cx-condition-watch{
    color:#ef6c00;
}

.cx-condition-alert{
    color:#c62828;
}

/* FEEDING PLAN */

.cx-plan{
    background:#fff;
    border-radius:12px;
    padding:18px;
    border:1px solid #eee;
    margin-top:10px;
}

.cx-plan h3{
    margin-top:0;
    margin-bottom:12px;
    font-size:20px;
}

.cx-plan ul{
    margin:0;
    padding-left:18px;
}

.cx-plan li{
    margin-bottom:10px;
    line-height:1.6;
}

/* COPY BUTTON */

.cx-copy-btn{
    display:block !important;

    margin-top:35px !important;
    margin-bottom:35px !important;
    margin-left:auto;
    margin-right:auto;

    background:#A71930 !important;
    color:#fff !important;

    border:none;
    border-radius:10px;

    padding:12px 24px;

    cursor:pointer;
    font-size:15px;
    font-weight:600;
}

/* NOTE */

.cx-note{
    font-size:10px !important;
    line-height:1.4;
    color:#777;
    text-align:center;
    margin-top:10px;
}

/* MOBILE */

@media(max-width:768px){

    .cx-header h2{
        font-size:30px;
    }

    .cx-row{
        flex-direction:column;
        align-items:flex-start;
    }

    .cx-row label{
        min-width:auto;
    }

    .cx-buttons,
    .cx-weight-group{
        width:100%;
    }

    .cx-results-grid{
        grid-template-columns:repeat(2,1fr);
    }
.cx-summary-bar{
    background:#fff;
    border:1px solid #eee;
    border-radius:12px;
    padding:14px 18px;
    font-size:15px;
    text-align:center;
    line-height:1.8;
    margin-bottom:20px;
}

}

@media(max-width:480px){

    .cx-results-grid{
        grid-template-columns:1fr;
    }

    .cx-card span{
        font-size:18px;
    }

}