/* Updated Styles */
.erc-calculator {
    display: flex;
    flex-direction: row;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background-color: #e0ebeb;
    border-radius: 8px;
}

.erc-description {
    flex: 1;
    padding: 20px;
    background-color: #e0ebeb;
}

.erc-description h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.erc-description p {
    font-size: 16px;
    margin-bottom: 20px;
    color: #555;
}

.erc-email-button {
    text-align: center;
}

.erc-email-button button {
    padding: 10px 20px;
    background-color: #00aaff;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
}

.erc-inputs {
    flex: 1;
    background-color: #00aaff;
    padding: 20px;
    color: white;
    border-radius: 8px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.erc-inputs label {
    display: block;
    font-weight: bold;
}

.erc-input {
    display: block;
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    background-color: white;
    color: #333;
}

.erc-output {
    font-size: 24px;
    margin-bottom: 10px;
    text-align: center;
}

.erc-output-small {
    font-size: 16px;
    text-align: center;
    color: white;
}

@media (max-width: 768px) {
    .erc-calculator {
        flex-direction: column;
    }

    .erc-description, .erc-inputs {
        width: 100%;
        border-radius: 8px;
    }

    .erc-inputs {
        grid-template-columns: 1fr;
    }
}

/* Base styles */
/* Base styles */
.calculator-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
    padding: 20px;
}

h2 {
    text-align: center;
    color: #3b3b98;
    margin-bottom: 20px;
}

.calculator-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    background-color: #f2f2f2;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.calculator-left, .calculator-right {
    width: 48%;
}

.radio-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.radio-button-container label {
    margin: 0 10px;
}

.input-group, .output-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
}

input[type="text"], input[type="number"] {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.output-group {
    padding: 20px;
    background-color: #ffffff;
    border-radius: 4px;
    text-align: center;
}

.output-group label {
    font-size: 16px;
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

.output-group div {
    font-size: 24px;
    color: white;
    background-color: #007bff;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

hr {
    border: 1px solid #ccc;
    margin: 20px 0;
}


/* Media Queries */
@media (max-width: 768px) {
    .calculator-content {
        flex-direction: column;
    }

    .calculator-left, .calculator-right {
        width: 100%;
        margin-bottom: 20px;
    }

    .radio-button-container {
        margin-bottom: 20px;
    }

    .radio-button-container label {
        font-size: 14px;
        padding: 8px 15px;
    }
}

@media (max-width: 480px) {
    .calculator-container {
        padding: 10px;
    }

    h2 {
        font-size: 18px;
    }

    .radio-button-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .radio-button-container label {
        margin: 5px 0;
        font-size: 14px;
    }

    input[type="text"], input[type="number"] {
        font-size: 14px;
        padding: 8px;
    }

    .output-group div {
        font-size: 20px;
    }
}


/* Wrapper to ensure correct positioning */
.message-wrapper {
    position: fixed; /* Fixed position to stay on viewport */
    top: 15px; /* Position from the top */
    right: 15px; /* Position from the right */
    z-index: 9999; /* High z-index to appear on top of other content */
    width: 300px; /* Adjust width if needed */
}

/* The message container styles */
.message-container {
    padding: 10px;
    margin: 0;
    border-radius: 5px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    position: relative;
    opacity: 0; /* Start hidden */
    transform: translateX(100%); /* Start off screen */
    transition: opacity 0.5s ease, transform 0.5s ease; /* Smooth transition */
}

/* Animation for showing the message */
.message-container.show {
    opacity: 1;
    transform: translateX(0); /* Move into view */
}

/* Success message styles */
.message-container.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Error message styles */
.message-container.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
