:root{
    --navy:#06152F;
    --gold:#D4AF37;
    --border:#E5E7EB;
    --bg:#F4F7FB;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

body{
    background:#0B1F3A;
    padding:20px;
}

.container{
    max-width:1100px;
    margin:auto;
    background:#fff;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 20px 50px rgba(0,0,0,.25);
}

/* HEADER */
.header{
    background:linear-gradient(135deg,#102B57,#06152F);
    color:#fff;
    padding:30px;
}

.header-inner{
    display:flex;
    align-items:center;
    gap:25px;
}

.logo{
    width:100px;
    height:100px;
    object-fit:contain;
}

.company{
    flex:1;
    text-align:center;
}

.company h1{
    color:var(--gold);
    font-size:2rem;
    font-weight:800;
    margin-bottom:8px;
}

.company p{
    line-height:1.7;
    color:#D1D5DB;
}

/* CONTENT */
.content{
    padding:35px;
}

.section-title{
    font-size:1.6rem;
    color:var(--navy);
    margin-bottom:22px;
    padding-left:12px;
    border-left:5px solid var(--gold);
}

/* CLIENT INFO */
.form-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:18px;
    margin-bottom:28px;
}

.form-group label{
    display:block;
    margin-bottom:7px;
    font-weight:600;
    color:var(--navy);
}

.form-group input,
.form-group textarea{
    width:100%;
    padding:12px 14px;
    border:1px solid #D1D5DB;
    border-radius:12px;
    font-size:14px;
}

.form-group textarea{
    min-height:100px;
    resize:vertical;
}

/* TABLE */
.table{
    border:1px solid var(--border);
    border-radius:16px;
    overflow:hidden;
}

.table-header,
.quotation-row{
    display:grid;
    grid-template-columns:70px 1.7fr 160px 120px 140px;
    align-items:center;
    gap:12px;
    padding:16px 20px;
}

.table-header{
    background:var(--navy);
    color:#fff;
    font-weight:700;
}

.quotation-row{
    border-bottom:1px solid var(--border);
}

.quotation-row:nth-child(even){
    background:#FAFBFF;
}

.quotation-row:last-child{
    border-bottom:none;
}

.item-check{
    width:22px;
    height:22px;
    accent-color:var(--gold);
}

.item-price{
    width:100%;
    padding:10px 12px;
    border:1px solid #D1D5DB;
    border-radius:10px;
}

.free-btn{
    width:100%;
    padding:10px;
    border:none;
    border-radius:10px;
    background:#EF4444;
    color:#fff;
    font-weight:700;
    cursor:pointer;
}

.free-btn.active{
    background:#16A34A;
}

.item-total{
    text-align:right;
    font-weight:800;
    color:var(--navy);
}

/* SUMMARY */
.summary{
    margin-top:30px;
    border:2px solid var(--border);
    border-radius:18px;
    padding:24px;
    background:#FAFBFF;
}

.summary-row{
    display:flex;
    justify-content:space-between;
    padding:12px 0;
    border-bottom:1px solid var(--border);
}

.summary-row:last-child{
    border-bottom:none;
}

.grand{
    font-size:1.4rem;
    font-weight:800;
    color:var(--navy);
}

.full-free{
    margin-top:18px;
    padding-top:18px;
    border-top:1px dashed #CBD5E1;
    font-weight:700;
}

/* SIGNATURE */
.signatures{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:40px;
    margin-top:45px;
}

.sign{
    text-align:center;
}

.sign-line{
    border-top:2px solid #111827;
    margin-top:60px;
    padding-top:10px;
    font-weight:700;
}

/* BUTTON */
.action{
    text-align:center;
    margin-top:35px;
}

.print-btn{
    background:linear-gradient(135deg,var(--gold),#F5D76E);
    color:var(--navy);
    border:none;
    padding:15px 28px;
    border-radius:14px;
    font-size:16px;
    font-weight:800;
    cursor:pointer;
}

/* FOOTER */
.footer{
    background:var(--navy);
    color:#D1D5DB;
    text-align:center;
    padding:20px;
}

.footer strong{
    color:var(--gold);
}

/* MOBILE */
@media(max-width:768px){

    body{
        padding:10px;
    }

    .header-inner{
        flex-direction:column;
        text-align:center;
    }

    .content{
        padding:22px;
    }

    .table-header{
        display:none;
    }

    .quotation-row{
        grid-template-columns:1fr;
        text-align:left;
    }

    .item-total{
        text-align:left;
    }

    .signatures{
        grid-template-columns:1fr;
    }
}

/* PRINT */
@media print{

    body{
        background:#fff;
        padding:0;
    }

    .container{
        box-shadow:none;
        border-radius:0;
    }

    .action{
        display:none !important;
    }
}
