/* Basic HP Palette Styling & Uniform Font/Field Sizes */
body {
    font-family: 'HPSimplified', Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 20px;
    font-size: 16px; /* Base font size for the whole page */
}

.container {
    max-width: 1200px;
    margin: auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

header {
    border-bottom: 4px solid #0096D6; /* HP Blue */
    padding-bottom: 15px;
    margin-bottom: 30px;
}

header h1 {
    color: #007398;
    margin: 0;
    font-size: 2em; /* Larger font for main title */
}

h2 {
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    font-size: 1.5em; /* Consistent size for section titles */
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 0.9em;
    color: #555;
}

/* UNIFORM STYLING FOR ALL INPUTS AND SELECTS */
.form-group input,
.form-group select {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em; /* Inherits the 16px base size */
    font-family: inherit; /* Ensures all fields use the body font */
    width: 100%;
    box-sizing: border-box; /* Important for consistent sizing */
}

.form-group input[readonly] {
    background-color: #f0f0f0;
    cursor: not-allowed;
}


#products_container .product-row {
    display: grid;
    /* Adjusted grid for better alignment with labels */
    grid-template-columns: 3fr 1.5fr 0.5fr 1fr 0.5fr;
    gap: 15px;
    align-items: flex-end; /* Aligns items to the bottom */
    margin-bottom: 15px;
}

.btn, .btn-secondary, .btn-primary, .btn-remove {
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    text-align: center;
    height: 46px; /* Match height of input fields */
    box-sizing: border-box;
}

.btn-primary {
    background-color: #0096D6; /* HP Blue */
    color: white;
}

.btn-secondary {
    background-color: #555;
    color: white;
}

.btn-remove {
    background-color: #e74c3c;
    color: white;
    padding: 0;
    width: 46px;
    height: 46px;
    font-size: 1.5em;
    line-height: 46px;
}

.results {
    margin-top: 30px;
    background-color: #eef9ff;
    padding: 20px;
    border-left: 5px solid #0096D6; /* HP Blue */
    border-radius: 4px;
}

.results p {
    font-size: 1.1em;
}
