body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background-color: #f4f7f9;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align to top for scrollable content */
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 800px;
    background: #fff;
    padding: 25px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

header {
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
}

header h1 {
    color: #005A9C; /* Professional blue */
    font-size: 24px;
    margin-bottom: 5px;
}
header p {
    font-size: 15px;
    color: #555;
}


form fieldset {
    border: 1px solid #d1d9e0;
    border-radius: 6px;
    margin-bottom: 20px;
    padding: 20px;
    background-color: #fbfdff;
}

form legend {
    font-weight: 600;
    color: #005A9C;
    padding: 0 10px;
    font-size: 18px;
}

.form-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
    color: #333;
}

.form-group input[type="number"] {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] {
  -moz-appearance: textfield; /* Firefox */
}


button[type="button"] {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 17px;
    font-weight: 500;
    transition: background-color 0.2s ease;
    margin-top: 15px;
}

button[type="button"]:hover {
    background-color: #0056b3;
}

#form-footer-note {
    font-size: 14px;
    color: #555;
    text-align: center;
    margin-top: 15px;
}

#results-container {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border: 1px solid #e3e8ec;
    border-radius: 8px;
}

#results-container h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #005A9C;
    font-size: 22px;
    text-align: center;
    border-bottom: 1px solid #d1d9e0;
    padding-bottom: 10px;
}

#results-container p, #results-container ul {
    margin-bottom: 10px;
}

#results-container ul {
    list-style-type: none;
    padding-left: 0;
}

#results-container li {
    padding: 8px 0;
    border-bottom: 1px dotted #d1d9e0;
    font-size: 15px;
    display: flex;
    justify-content: space-between;
}
#results-container li:last-child {
    border-bottom: none;
}

.error-message {
    color: #D8000C; /* Error red */
    background-color: #FFD2D2; /* Light red background */
    border: 1px solid #D8000C;
    padding: 15px;
    border-radius: 5px;
    text-align: left;
}
.error-message p {
    margin:0;
    font-weight: bold;
}
.error-message ul {
    margin-top: 5px;
    padding-left: 20px; /* Indent error list items */
}


.form-group input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.result-section {
    margin-bottom: 25px;
}
.result-section h3 {
    color: #004085; 
    border-bottom: 1px solid #b8daff;
    padding-bottom: 8px;
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 19px;
}
.result-section strong { 
    color: #333;
    font-weight: 500;
}
.result-section small {
    display: block; /* Make small text appear on new line or control its flow */
    font-size: 13px;
    color: #555;
    margin-top: 4px;
}
.result-section p small { /* For the note at the end */
    display: inline; /* For inline notes */
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

/* For values in list items, to align them to the right */
#results-container li span {
    font-weight: 600;
    color: #005A9C;
}

