/* Basic Reset & Body Styles */
body {
    font-family: sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

header, main, footer {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #0066c0; /* Amazon-like blue */
    text-align: center;
}

h2 {
    color: #555;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    margin-top: 30px;
}

/* Form Styling */
#kdpCalculatorForm {
    display: grid;
    gap: 25px; /* Spacing between fieldsets */
}

fieldset {
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 5px;
}

legend {
    font-weight: bold;
    color: #0066c0;
    padding: 0 5px;
}

label {
    display: block; /* Makes label take full width */
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="number"],
input[type="text"] { /* Added text just in case */
    width: 95%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

input[type="radio"] {
    margin-right: 5px;
}

/* Style for radio button labels */
input[type="radio"] + label {
    display: inline-block; /* Keep radio labels next to buttons */
    margin-right: 15px;
    font-weight: normal;
}


small {
    display: block;
    font-size: 0.85em;
    color: #666;
    margin-top: -5px;
    margin-bottom: 10px;
}

button {
    background-color: #ff9900; /* Amazon-like orange */
    color: #111;
    padding: 12px 20px;
    border: 1px solid #a88734;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    display: block; /* Make button take full width */
    width: 100%;
    margin-top: 15px;
    transition: background-color 0.2s ease;
}

button:hover {
    background-color: #f3a847;
}

/* Results Area */
#results {
    margin-top: 30px;
    padding: 15px;
    background-color: #e7f4ff;
    border: 1px solid #b3d7ff;
    border-radius: 5px;
}

#results p {
    margin: 8px 0;
    font-size: 1.1em;
}

#totalResult strong {
    font-size: 1.2em;
    color: #0066c0;
}

hr {
    border: 0;
    height: 1px;
    background: #ccc;
    margin: 15px 0;
}

/* Disclaimer & Footer */
.disclaimer {
    font-size: 0.9em;
    color: #555;
    margin-top: 30px;
    border-top: 1px dashed #ccc;
    padding-top: 15px;
}

footer {
    text-align: center;
    margin-top: 30px;
    font-size: 0.8em;
    color: #777;
}

/* Simple Responsive Adjustment */
@media (max-width: 600px) {
    header, main, footer {
        margin: 10px;
        padding: 15px;
    }
    input[type="number"],
    input[type="text"] {
         width: 90%; /* Adjust width slightly */
    }
}