﻿/* Side-by-side layout for form and savings table */
.main-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.form-section {
    flex: 1;
    min-width: 400px;
    max-width: 600px;
}

.results-section {
    flex: 1;
    min-width: 400px;
    max-width: 500px;
}

/* Form styling */
.form-container {
    width: 100%;
}

.form-group {
    display: flex;
    margin-bottom: 15px;
    align-items: center;
}

.form-label {
    flex: 0 0 180px; /* Fixed width for labels */
    text-align: right;
    padding-right: 15px;
    font-weight: normal;
}

.form-field {
    display: flex;
    align-items: center;
    flex: 1;
}

.form-field-prefix {
    margin-right: 5px;
}

.form-field-suffix {
    margin-left: 5px;
}

.styled-textbox {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    width: 60%;
    box-sizing: border-box;
}

/* Calendar icon styling */
.calendar-icon {
    display: inline-block;
    vertical-align: middle;
    margin-left: 5px;
}

/* Admin section styling */
.admin-section {
    background-color: #D7F2FF;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
}

/* Savings table styling */
.savings-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

    .savings-table th,
    .savings-table td {
        padding: 12px 15px;
        text-align: left;
    }

    .savings-table th {
        background-color: #f2f2f2;
        font-weight: bold;
    }

    .savings-table tr {
        border-bottom: 1px solid #dddddd;
    }

        .savings-table tr:last-child {
            border-bottom: none;
        }

        .savings-table tr:nth-child(even) {
            background-color: #f9f9f9;
        }

.savings-column {
    background-color: #e0ffd3;
}

.center {
    text-align: center;
}

.highlight {
    font-size: 12pt;
    font-weight: bold;
}

/* Button container */
.button-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    margin-bottom: 20px;
}

/* Responsive adjustments */
@media screen and (max-width: 900px) {
    .main-container {
        flex-direction: column;
        align-items: center;
    }

    .form-section,
    .results-section {
        min-width: 100%;
    }
}

/* Additional helper classes */
.highlight-field {
    background-color: #feffaf;
    padding: 10px;
    border-radius: 4px;
}

.red-text {
    color: #ff0000;
}

/* Button styling (preserving your existing styles) */
.calculate-button, .enroll-button {
    margin-top: 20px;
}

.note-text {
    font-size: 9pt;
    text-align: right;
    margin-top: 5px;
    color: #666;
}
