body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    /* Changed for external title */
    align-items: center;
    /* Center container and title */
    padding: 10px;
    margin: 0;
}

.container {
    display: flex;
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 1200px;
    gap: 20px;
}

.input-column,
.output-column {
    display: flex;
    flex-direction: column;
}

.input-column {
    width: 800px;
    padding-right: 20px;
    border-right: 1px solid #eee;
}

.output-column {
    flex: 1;
}

h1 {
    text-align: center;
    color: #333;
    font-size: 1.8em;
    /* Made main title bigger */
    margin-bottom: 20px;
}

h2 {
    text-align: center;
    color: #333;
    font-size: 1.3em;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.input-column h3 {
    font-size: 0.95em;
    /* Standardized size */
    color: #444;
    /* Standardized color */
    margin-top: 10px;
    margin-bottom: 3px;
    line-height: 1.2;
    font-family: inherit;
}

/* Add horizontal lines above alpha4, alpha5, alpha6 */
.right-inputs h3:not(:first-child) {
    border-top: 1px solid #eee;
    margin-top: 15px;
    padding-top: 8px;
}

.output-column h2 {
    font-size: 1.5em;
    /* Make calc steps title bigger */
}

.input-group {
    margin-bottom: 5px;
    /* Reduced margin */
}

.input-group label {
    display: block;
    margin-bottom: 2px;
    /* Reduced margin */
    color: #555;
    font-size: 0.9em;
    /* Slightly smaller font */
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 3px;
    /* Reduced padding */
    border-radius: 4px;
    border: 1px solid #ddd;
    box-sizing: border-box;
}

.input-layout-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    /* Remove gap to use border and padding for alignment */
}

.left-inputs {
    padding-right: 15px;
    border-right: 1px solid #eee;
}

.right-inputs {
    padding-left: 15px;
}

.inputs-grid {
    display: flex;
    flex-direction: column;
    gap: 5px;
    /* Reduced gap */
    margin-bottom: 10px;
    /* Reduced margin */
}

.alpha-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    /* Reduced gap */
    margin-bottom: 10px;
    /* Reduced margin */
}

/* Adjust heading size in right column */
.right-inputs h3 {
    font-size: 0.95em;
    margin-top: 10px;
    /* Reduced margin */
    margin-bottom: 3px;
    /* Reduced margin */
    line-height: 1.2;
}

.input-group-alpha {
    display: flex;
    flex-direction: column;
    margin-bottom: 5px;
    /* Reduced margin */
}

.input-group label,
.input-group-alpha label {
    display: block;
    margin-bottom: 2px;
    /* Reduced margin */
    color: #555;
    font-weight: bold;
    min-height: 1.5em;
    /* Reduced min-height */
    /* Ensure labels align even if they wrap differently */
    display: flex;
    align-items: flex-end;
    font-size: 0.9em;
    /* Slightly smaller font */
}

.input-group-alpha input {
    width: 100%;
    padding: 3px;
    /* Reduced padding */
    border-radius: 4px;
    border: 1px solid #ddd;
    box-sizing: border-box;
}

.suggested-value {
    display: none;
    /* Hide the suggested value as requested */
}

#resetBtn {
    width: 100%;
    padding: 8px;
    background-color: #007bff;
    /* Changed to blue */
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: auto;
}

#resetBtn:hover {
    background-color: #0056b3;
    /* Darker blue on hover */
}

#result {
    margin-top: 20px;
    padding: 10px;
    background-color: #e9ecef;
    /* Changed to a subtle gray */
    color: #333;
    /* Darker text */
    border-left: 5px solid #007bff;
    /* Added a blue left border */
    border-radius: 4px;
    text-align: center;
    font-size: 1.3em;
    font-weight: bold;
}

#calculation-steps {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
    max-height: 70vh;
    /* Increased max-height */
    overflow-y: auto;
    color: #444;
    /* Standardized text color */
}

#calculation-steps h3 {
    margin-top: 0;
    color: #333;
    /* Darker for main step headers */
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
}

#calculation-steps h4 {
    margin-top: 15px;
    color: #333;
    /* Unified with other headers */
}

#calculation-steps p {
    margin: 5px 0;
    line-height: 1.4;
    color: #444;
    /* Consistent with container */
}

.hidden {
    display: none !important;
}

/* Info Icon and Tooltip Styles */
.info-icon {
    display: inline-block;
    margin-left: 5px;
    cursor: help;
    color: #007bff;
    position: relative;
    font-style: normal;
}

.tooltip {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 0;
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    width: 500px;
    text-align: center;
}

.tooltip img {
    max-width: 100%;
    height: auto;
    display: block;
}

.info-icon:hover .tooltip {
    display: block;
}