.form-section {
    background-color: #f9f9f9;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
}

.price-summary {
    background-color: #e8f4f8;
    padding: 20px;
    border-radius: 5px;
    border: 2px solid #5bc0de;
    margin-bottom: 20px;
}

/* Header row with title and price */
.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(91, 192, 222, 0.3);
    padding-bottom: 15px;
}

.summary-header h3 {
    margin: 0;
    font-size: 20px;
}

/* Price positioned at top right */
.total-price {
    text-align: right;
}

.total-price h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 600;
    color: #666;
}

#totalPriceDisplay {
    font-size: 28px;
    font-weight: bold;
    color: #337ab7;
    margin: 0;
}

/* Selected machines section */
.selected-machines {
    margin-top: 10px;
}

.selected-machines h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

#selectedMachinesList {
    font-size: 14px;
}

#selectedMachinesList li {
    padding: 3px 0;
    line-height: 1.4;
}

/* Machine selection grid */
.machine-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.machine-item {
    flex: 1 1 200px;
    padding: 10px;
    margin: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.machine-item:hover {
    background: #f0f0f0;
    border-color: #5bc0de;
}

.machine-item.selected {
    background: #d9edf7;
    border-color: #337ab7;
}

.machine-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Fix for label clicking conflict */
.machine-item label {
    pointer-events: none;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    font-weight: normal;
    cursor: pointer;
}

.machine-item input[type="checkbox"] {
    pointer-events: auto;
    margin-right: 8px;
    position: relative;
    z-index: 2;
}

/* Discount badge */
.discount-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #5cb85c;
    color: white;
    border-radius: 3px;
    font-size: 11px;
    margin-left: 5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .summary-header {
        flex-direction: column;
    }
    
    .total-price {
        margin-top: 10px;
        text-align: left;
    }
    
    #totalPriceDisplay {
        font-size: 24px;
    }
}