.calculator-hero {
    background: var(--primary-color);
    color: white;
    padding: 12rem 10% 8rem;
    text-align: center;
}

.calculator-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.calculator-hero p {
    opacity: 0.8;
    font-weight: 300;
}

.calculator-container {
    max-width: 900px;
    margin: 4rem auto;
    background: white;
    padding: 3rem;
    border: 1px solid rgba(74, 55, 40, 0.1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    background: var(--bg-color);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

.form-group select:focus,
.form-group input:focus {
    border-color: var(--secondary-color);
    background: white;
}

.result-panel {
    background: var(--primary-color);
    color: white;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.result-panel h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
    letter-spacing: 1px;
}

.price-display {
    font-size: 4rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
}

.price-display span {
    font-size: 1.5rem;
    vertical-align: middle;
    margin-right: 0.5rem;
}

.quotation-summary {
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: left;
    max-height: 250px;
    overflow-y: auto;
}

/* Custom scrollbar for webkit */
.quotation-summary::-webkit-scrollbar {
    width: 6px;
}

.quotation-summary::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.quotation-summary::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.quote-item-card {
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.quote-item-info {
    flex: 1;
}

.remove-btn {
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0 0.5rem;
    transition: color 0.2s;
}

.remove-btn:hover {
    color: #ff4d4d;
}

.summary-item span:first-child {
    font-weight: 600;
}

.service-toggle {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.toggle-btn {
    flex: 1;
    padding: 1rem;
    text-align: center;
    border: 1px solid #ddd;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.toggle-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.dim-input-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .calculator-hero {
        padding: 8rem 1.5rem 4rem;
        width: 100%;
        margin: 0;
        box-sizing: border-box;
    }

    .calculator-hero h1 {
        font-size: 2.5rem;
    }

    .calc-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .calculator-container {
        padding: 1.5rem;
        margin: 1.5rem 1rem;
        width: auto;
        box-sizing: border-box;
    }

    .result-panel {
        padding: 2.5rem 1.5rem;
    }

    .price-display {
        font-size: 3rem;
    }

    .action-buttons {
        flex-direction: column;
    }
}

/* --- Print Styles --- */

@media print {

    nav,
    .calculator-hero,
    .calc-form,
    .service-toggle,
    footer,
    .btn,
    .print-btn,
    .no-print {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .calculator-container {
        box-shadow: none;
        border: none;
        margin: 0;
        padding: 0;
        width: 100%;
        max-width: 100%;
    }

    .calc-grid {
        display: block;
    }

    .result-panel {
        background: white !important;
        color: black !important;
        padding: 2rem;
        border: 2px solid var(--primary-color);
        text-align: left;
    }

    .result-panel h3 {
        color: var(--primary-color);
        margin-bottom: 2rem;
        font-size: 2.5rem;
    }

    .price-display {
        font-size: 3rem;
        margin: 2rem 0;
        border-bottom: 2px solid #eee;
        padding-bottom: 1rem;
    }

    .quotation-summary {
        border-top: none;
        max-height: none;
        overflow: visible;
    }

    .summary-item {
        margin-bottom: 1rem;
        font-size: 1.1rem;
        opacity: 1;
        border: none;
        border-bottom: 1px dashed #eee;
        padding-bottom: 0.5rem;
        background: transparent;
    }

    .result-panel::before {
        content: "SHARMA FURNITURE - OFFICIAL QUOTATION";
        display: block;
        font-size: 1.2rem;
        font-weight: 700;
        margin-bottom: 2rem;
        color: var(--primary-color);
    }

    .result-panel::after {
        content: "Contact: Arvind Sharma: +91 91469 76831 | Dated: " counter(page);
        display: block;
        margin-top: 4rem;
        font-size: 0.9rem;
        font-style: italic;
    }
}