body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background-color: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
    text-align: center;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 10px;
}

h1 {
    color: #555;
    margin: 0;
    font-size: 2em;
}

main {
    max-width: 900px;
    margin: 20px auto;
    background-color: #fff;
    padding: 30px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

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

h2 {
    color: #0056b3;
    border-bottom: 2px solid #0056b3;
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 20px;
}

h3, h4, h5 {
    color: #007bff;
    margin-top: 15px;
    margin-bottom: 10px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: calc(100% - 22px); /* Account for padding and border */
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

textarea {
    resize: vertical;
    min-height: 60px;
}

input[type="checkbox"] {
    margin-right: 8px;
}

.brand-entry, .distributor-detail-entry, .pricing-entry,
.sku-contribution-entry, .business-analysis-entry, .commercial-terms-entry,
.sku-demand-entry, .retail-universe-entry, .retailer-type-entry {
    background-color: #ffffff;
    border: 1px dashed #e0e0e0;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

button[type="submit"] {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    margin-top: 20px;
}

button[type="submit"]:hover {
    background-color: #218838;
}

footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background-color: #fff;
    border-top: 1px solid #ddd;
}

#downloadData {
    padding: 10px 20px;
    background-color: #17a2b8;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}

#downloadData:hover {
    background-color: #138496;
}

/* Specific styling for dynamic fields (if any added by JS) */
.dynamic-field-group {
    border: 1px solid #cceeff;
    padding: 10px;
    margin-bottom: 10px;
    background-color: #e6f7ff;
    border-radius: 4px;
}
/* If you want to slightly adjust the look of the readonly fields */
input[readonly] {
    background-color: #e9ecef;
    cursor: not-allowed;
}

/* For section E's remarks after the last SKU Demand */
#sectionE > label[for="remarks"],
#sectionE > textarea#remarks {
    margin-top: 25px; /* Add some space above remarks */
}