.calculator-container {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 15px 10px 10px 10px;
    background-color: #f9f9f9;
    letter-spacing: normal;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    letter-spacing: normal;
    font-size: 18px;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    cursor: text;
}

input::placeholder {
    color: #000;
}

.right-placeholder::placeholder {
    text-align: right;
}

.button-group {
    display: flex;
    justify-content: center;
}

.submit-button {
    background-color: #293896;
    width: 60%;
    max-width: 180px;
    font-size: 18px;
    color: #fff;
    border: 0;
    border-radius: 4px;
    margin: 20px 0;
    padding: 5px 20px;
}

.source-container {
    text-align: center;
    margin-top: 15px;
}

.source-container img {
    width: 50px;
}

.source-text {
    font-size: 12px;
    margin-top: 5px;
}

.credit_mf_tool_rhs {
    align-self: flex-end;
    text-align: right;
    font-size: 12px;
    color: #8f8f8f;
    font-weight: 300 !important;
    letter-spacing: normal;
}

.error-border {
    border: 2px solid red;
}

.error-message {
    color: red;
    font-size: 12px;
    margin-top: 4px;
}

.error-display {
    margin-top: 10px;
    color: red; 
    font-size: 14px; 
    display: none; 
    text-align: right;
}

.input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%; 
    font-weight: bold;
}

.input-wrapper input {
    width: 100%; 
    padding-right: 20px; 
    box-sizing: border-box; 
    font-weight: bold;
    text-align: right;
}

.input-wrapper .unit {
    position: absolute;
    top: 50%;
    right: 5px;
	margin-right: 3px;
    transform: translateY(-50%);
    color: #000;
    pointer-events: none; 
    font-size: 0.9em; 
}

.input-wrapper .left-unit {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    color: #000;
    pointer-events: none; 
    font-size: 0.9em; 
}
