/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #0f0f0f;
    color: #fff;
    min-height: 100vh;
    padding: 40px;
}

/* Container */
.container {
    max-width: 1400px;
    margin: auto;
}

/* Header */
.title {
    text-align: center;
    margin-bottom: 35px;
}

.title h1 {
    font-size: 42px;
    color: #ffd000;
    margin-bottom: 8px;
}

.title p {
    color: #bbb;
    font-size: 17px;
}

/* Calculator Grid Layout */
.calculator {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 30px;
}

/* Left Form Box */
.left {
    background: #181818;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #2b2b2b;
    box-shadow: 0 15px 35px rgba(0,0,0,.45);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ffd000;
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    height: 48px;
    background: #242424;
    color: #fff;
    border: 1px solid #444;
    border-radius: 10px;
    padding: 0 15px;
    font-size: 15px;
    transition: .3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #ffd000;
    box-shadow: 0 0 10px rgba(255, 208, 0, .3);
}

.typingBox {
    background: #202020;
    padding: 15px;
    border-radius: 12px;
    border: 1px dashed #555;
    margin-bottom: 18px;
}

/* Calculate Button */
#calculate {
    width: 100%;
    height: 55px;
    border: none;
    background: #ffd000;
    color: #111;
    font-size: 18px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: .35s;
    margin-top: 10px;
}

#calculate:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 208, 0, .4);
}

/* Right Estimate Box */
.right {
    background: #181818;
    border-radius: 20px;
    padding: 30px;
    border: 1px solid #2b2b2b;
    position: sticky;
    top: 20px;
    height: fit-content;
}

.right h2 {
    text-align: center;
    color: #ffd000;
    margin-bottom: 25px;
}

/* Result Box */
.result {
    background: #101010;
    border-radius: 15px;
    padding: 20px;
}

.row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid #2a2a2a;
}

.row span {
    color: #ddd;
}

.row strong {
    color: #fff;
}

.total {
    font-size: 18px;
    font-weight: 700;
}

.grand {
    margin-top: 18px;
    padding: 20px;
    background: #ffd000;
    color: #111;
    border-radius: 12px;
    font-size: 22px;
    font-weight: 800;
}

.grand span,
.grand strong {
    color: #111;
}

/* Print Button */
.printBtn {
    width: 100%;
    margin-top: 25px;
    height: 55px;
    border: none;
    border-radius: 12px;
    background: #ffd000;
    color: #111;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: .3s;
}

.printBtn:hover {
    transform: scale(1.02);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-thumb {
    background: #ffd000;
    border-radius: 10px;
}

/* Media Queries / Responsive */
@media(max-width: 1100px) {
    .calculator {
        grid-template-columns: 1fr;
    }
    .right {
        position: relative;
        top: 0;
    }
}

@media(max-width: 768px) {
    body {
        padding: 15px;
    }
    .title h1 {
        font-size: 30px;
    }
    .left, .right {
        padding: 20px;
    }
    .form-group input, .form-group select {
        height: 45px;
    }
    #calculate, .printBtn {
        height: 50px;
        font-size: 16px;
    }
    .grand {
        font-size: 18px;
    }
}

/* Print Styles */
@media print {
    body {
        background: #fff;
        color: #000;
        padding: 0;
    }
    .left, #calculate, .printBtn {
        display: none !important;
    }
    .calculator {
        grid-template-columns: 1fr;
    }
    .right {
        border: none;
        background: #fff;
    }
    .result {
        background: #f9f9f9;
        border: 1px solid #ddd;
    }
    .row span, .row strong {
        color: #000;
    }
}