 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
.hidden {
    display: none;
}

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: #f5f7fa;
            color: #333;
            line-height: 1.6;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }

        .header {
            text-align: center;
            margin-bottom: 30px;
            padding: 20px;
            background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
            color: white;
            border-radius: 10px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }

        .header h1 {
            font-size: 2.5rem;
            margin-bottom: 10px;
        }

        .header p {
            font-size: 1.1rem;
            opacity: 0.9;
        }

        .content-area {
            background: white;
            border-radius: 10px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            overflow: hidden;
        }

        .form-container {
            padding: 30px;
        }

        .summary-container {
            padding: 30px;
            display: none;
        }

        .product-section {
            border: 1px solid #e1e5e9;
            border-radius: 8px;
            padding: 20px;
            margin-bottom: 25px;
            background: #f9fafb;
            position: relative;
        }

        .product-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 1px solid #e1e5e9;
        }

        .product-title {
            font-size: 1.4rem;
            font-weight: 600;
            color: #1e3c72;
        }

        .remove-product {
            background: #e74c3c;
            color: white;
            border: none;
            border-radius: 50%;
            width: 30px;
            height: 30px;
            font-size: 1.2rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.3s;
        }

        .remove-product:hover {
            background: #c0392b;
        }

        .dropdowns-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 20px;
        }

        .dropdown-container {
            margin-bottom: 15px;
        }

        .dropdown-label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #2c3e50;
        }

        select {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid #d1d9e6;
            border-radius: 6px;
            font-size: 1rem;
            background: white;
            transition: border 0.3s, box-shadow 0.3s;
        }

        select:focus {
            outline: none;
            border-color: #3498db;
            box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
        }

        .buttons-container {
            display: flex;
            justify-content: space-between;
            margin-top: 30px;
            flex-wrap: wrap;
            gap: 15px;
        }

        .add-product-btn, .view-summary-btn, .btn-primary, .btn-secondary {
            padding: 12px 25px;
            border: none;
            border-radius: 6px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .add-product-btn {
            background: #27ae60;
            color: white;
        }

        .add-product-btn:hover {
            background: #219653;
        }

        .add-product-btn span {
            font-size: 1.5rem;
            margin-right: 5px;
        }

        .view-summary-btn {
            background: #e67e22;
            color: white;
            opacity: 0.6;
            cursor: not-allowed;
        }

        .view-summary-btn.enabled {
            opacity: 1;
            cursor: pointer;
            background: #e67e22;
        }

        .view-summary-btn.enabled:hover {
            background: #d35400;
        }

        .btn-primary {
            background: #3498db;
            color: white;
        }

        .btn-primary:hover {
            background: #2980b9;
        }

        .btn-secondary {
            background: #95a5a6;
            color: white;
        }

        .btn-secondary:hover {
            background: #7f8c8d;
        }

        .summary-header {
            text-align: center;
            margin-bottom: 30px;
            padding-bottom: 20px;
            border-bottom: 1px solid #e1e5e9;
        }

        .summary-header h2 {
            color: #1e3c72;
            margin-bottom: 10px;
        }

        .product-summary {
            margin-bottom: 30px;
            border: 1px solid #e1e5e9;
            border-radius: 8px;
            overflow: hidden;
        }

        .product-summary-header {
            background: #1e3c72;
            color: white;
            padding: 15px 20px;
            font-size: 1.2rem;
            font-weight: 600;
        }

        .summary-table {
            width: 100%;
            border-collapse: collapse;
        }

        .summary-table th {
            background: #f8f9fa;
            padding: 12px 15px;
            text-align: left;
            border-bottom: 1px solid #e1e5e9;
            font-weight: 600;
        }

        .summary-table td {
            padding: 12px 15px;
            border-bottom: 1px solid #e1e5e9;
        }

        .summary-table tr:last-child td {
            border-bottom: none;
        }

        .price-cell {
            text-align: right;
            font-weight: 600;
        }

        .total-row {
            background: #f8f9fa;
        }

        .total-price {
            color: #e74c3c;
            font-size: 1.1rem;
        }

        .summary-actions {
            display: flex;
            justify-content: space-between;
            margin-top: 30px;
            flex-wrap: wrap;
            gap: 15px;
        }

        @media (max-width: 768px) {
            .dropdowns-grid {
                grid-template-columns: 1fr;
            }
            
            .buttons-container, .summary-actions {
                flex-direction: column;
            }
            
            .header h1 {
                font-size: 2rem;
            }
        }
        
        .summary-table-container {
    margin: 20px 0;
}

.summary-table, .pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.summary-table th, .summary-table td,
.pricing-table th, .pricing-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.summary-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.pricing-breakdown {
    margin-top: 30px;
    border-top: 2px solid #ddd;
    padding-top: 20px;
}

.pricing-table {
    width: 50%;
    margin-left: auto;
}

.subtotal-row, .total-row {
    border-top: 2px solid #ddd;
}

.total-row {
    background-color: #f9f9f9;
    font-size: 1.1em;
}

.price-display {
            margin-top: 15px;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 5px;
            background-color: #f9f9f9;
        }
        .pricing-result {
            color: green;
        }
        .pricing-not-found {
            color: orange;
        }
        .pricing-error {
            color: red;
        }
        .pricing-result{display:none;}