/* BACKDROP */
.calc-modal {
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.65);
    backdrop-filter: blur(6px);
    z-index:999999;
}
/* POPUP */
.calc-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
}

.calc-content {
    background: #fff;
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 900px;
    position: relative;
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 25px;
    cursor: pointer;
}

.open-calc-popup {
    padding: 12px 20px;
    background: #0073aa;
    color: #fff;
    border: none;
    cursor: pointer;
}
button.open-calc {
    background: #093c71;
    font-size: 20px;
    color: #fff;
    border: 0px;
    padding: 10px 20px;
    border-radius: 5px;
}

.calc-content {position: relative;}
/* MODAL CARD */
.calc-content {
    width:900px;
    max-width:95%;
    margin:4% auto;
    background:#ffffff;
    border-radius:18px;
    box-shadow:0 25px 70px rgba(0,0,0,0.25);
    overflow:hidden;
    animation:popupFade 0.3s ease;
}

/* HEADER */
.calc-content h2 {
    margin:0;
    padding:20px 25px;
    background:linear-gradient(135deg,#0073aa,#00c6ff);
    color:#fff;
    font-size:20px;
}

/* CLOSE */
.close {
    position:absolute;
    right:25px;
    top:20px;
    color:red;
    font-size:30px;
    cursor:pointer;
}

/* GRID LAYOUT */
.calc-grid {
    display:flex;
    min-height:350px;
}

/* LEFT SIDE */
.left {
    flex:1;
    padding:25px;
    background:#fffde7;
    border-right:1px solid #eee;
}

/* INPUT GROUP */
.left input {
    width:100%;
    padding:12px 14px;
    margin-bottom:15px;
    border-radius:8px;
    border:1px solid #ddd;
    font-size:15px;
    transition:0.2s;
}

/* INPUT FOCUS */
.left input:focus {
    border-color:#0073aa;
    box-shadow:0 0 0 2px rgba(0,115,170,0.2);
    outline:none;
}

/* BUTTON */
.calc-btn {
    width:100%;
    padding:14px;
    border-radius:10px;
    border:none;
    font-size:16px;
    font-weight:600;
    color:#fff;
    background:linear-gradient(135deg,#0073aa,#00c6ff);
    cursor:pointer;
    transition:0.3s;
}

.calc-btn:hover {
    transform:translateY(-2px);
    box-shadow:0 8px 20px rgba(0,115,170,0.3);
}

/* RIGHT SIDE */
.right {
    flex:1;
    padding:25px;
    background:#f1f8f4;
    display:flex;
    flex-direction:column;
    justify-content:center;
}

/* RESULT BLOCK */
.result-box {
    background:#ffffff;
    padding:15px;
    border-radius:10px;
    margin-top:15px;
    box-shadow:0 5px 15px rgba(0,0,0,0.08);
}

/* VALUE ROW */
.right div {
    margin-bottom:10px;
    font-size:15px;
}

/* VALUE HIGHLIGHT */
.right span {
    font-weight:700;
    color:#0073aa;
}

/* CARTRIDGE ROW */
.cart-row {
    display:flex;
    justify-content:space-between;
    padding:8px 10px;
    background:#e3f2fd;
    margin-top:6px;
    border-radius:6px;
    font-size:14px;
}

/* POPUP ANIMATION */
@keyframes popupFade {
    from {
        opacity:0;
        transform:translateY(-20px);
    }
    to {
        opacity:1;
        transform:translateY(0);
    }
}
/* FORM GROUP */
.form-group {
    display:flex;
    flex-direction:column;
    margin-bottom:18px;
}

/* LABEL */
.form-group label {
    font-size:13px;
    font-weight:600;
    margin-bottom:6px;
    color:#333;
}

/* INPUT */
.form-group input {
    width:100%;
    height:44px;
    padding:0 14px;
    border-radius:8px;
    border:1px solid #dcdcdc;
    font-size:14px;
    background:#fff;
    transition:0.2s;
    box-sizing:border-box;
}

/* INPUT FOCUS */
.form-group input:focus {
    border-color:#0073aa;
    box-shadow:0 0 0 2px rgba(0,115,170,0.15);
    outline:none;
}

/* BUTTON */
.calc-btn {
    width:100%;
    height:48px;
    margin-top:10px;
    border:none;
    border-radius:10px;
    font-size:15px;
    font-weight:600;
    color:#fff;
    background:linear-gradient(135deg,#0073aa,#00c6ff);
    cursor:pointer;
    transition:all 0.25s ease;
}

/* BUTTON HOVER */
.calc-btn:hover {
    transform:translateY(-2px);
    box-shadow:0 10px 25px rgba(0,115,170,0.25);
}

/* BUTTON ACTIVE */
.calc-btn:active {
    transform:scale(0.98);
}

/* LEFT PANEL FIX */
.left {
    flex:1;
    padding:30px;
    background:#fffde7;
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
}

/* ALIGN SPACING PERFECTLY */
.left > *:last-child {
    margin-top:auto;
}

.pro-calc-tabs {
    max-width: 900px;
    margin: 20px auto;
    font-family: Arial;
}

.tab-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 20px;
    border: none;
    background: #ddd;
    cursor: pointer;
}

.tab-btn.active {
    background: #0073aa;
    color: #fff;font-weight: 600;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.calc-grid {
    display: flex;
    gap: 20px;
}

.left, .right {
    width: 50%;
}

input {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
}

.calc-btn {
    background: #0073aa;
    color: #fff;
    padding: 10px;
    border: none;
    cursor: pointer;
}p.cu {
    font-size: 15px;
    font-weight: 600;
}

.result-box {
    margin-top: 15px;
    background: #f5f5f5;
    padding: 10px;
}
/* MOBILE */
@media(max-width:768px){
    .calc-grid {
        flex-direction:column;
    }

    .left {
        border-right:none;
        border-bottom:1px solid #eee;
    }
}