body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background-color: rgb(255, 255, 255); /* Purity Feeds: bg-color */
    color: rgb(48, 48, 48); /* Purity Feeds: --text-color */
}

.container {
    max-width: 800px;
    margin: auto;
    background: #fff; /* Keeping container white for now, or could be a very light off-white if body is pure white */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

h1, h2, h3 {
    color: rgb(3, 174, 175); /* Purity Feeds: --header-accent-color */
}
h1 {
    text-align: center;
    border-bottom: 2px solid rgb(3, 174, 175); /* Purity Feeds: --header-accent-color for accent line */
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input[type="number"],
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box; /* Important for full width */
    color: rgb(48, 48, 48); /* Ensure form text matches body text */
    background-color: #fff; /* Ensure form backgrounds are clean */
}
.form-group input[type="number"] {
    width: calc(100% - 70px); /* Adjust width if select is beside it */
    margin-right: 5px;
}
.form-group select#lengthUnit {
    width: 65px;
}


.form-group small {
    display: block;
    font-size: 0.9em;
    color: #555; /* Slightly lighter than main text for deemphasis */
    margin-top: 3px;
}
.optional {
    font-weight: normal;
    font-style: italic;
    color: #555;
}

.fence-specific-inputs {
    border: 1px solid #e0e0e0;
    padding: 15px;
    margin-top: 15px;
    border-radius: 5px;
    background-color: #eaeaea; /* Purity Feeds: --search-bg-color (applied to section background) */
}

.calculate-button, .action-button {
    display: block;
    width: 100%;
    padding: 10px 15px;
    background-color: rgb(3, 174, 175); /* Purity Feeds: --header-accent-color */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.calculate-button:hover, .action-button:hover {
    background-color: rgb(2, 138, 139); /* Darker shade of the accent color */
}

#resultsContainer {
    margin-top: 30px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #eaeaea; /* Purity Feeds: --search-bg-color (applied to section background) */
}

#resultsOutput h3, #notesAndConsiderations h3 { /* Already uses accent color from h3 style */
    margin-top: 0;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
}

#resultsOutput ul {
    list-style-type: none;
    padding: 0;
}

#resultsOutput ul li {
    padding: 5px 0;
    border-bottom: 1px dotted #eee;
}
#resultsOutput ul li:last-child {
    border-bottom: none;
}

.error-messages {
    color: #DA291C; /* Standard error red - kept for visibility, could be changed to a brand-appropriate error color */
    background-color: #fdd;
    border: 1px solid #DA291C;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
}
.error-messages p {
    margin: 0 0 5px 0;
}
.error-messages p:last-child {
    margin-bottom: 0;
}


@media (max-width: 600px) {
    .form-group input[type="number"],
    .form-group select#lengthUnit {
        width: 100%;
        margin-right: 0;
        margin-bottom: 5px;
    }
    .form-group select#lengthUnit {
         margin-bottom: 0;
    }
}