.oxford-proforma h2 {
    border-bottom: 2px solid #990000;
    padding-bottom: 5px;
    margin-bottom: 15px;
    font-weight: 500;
}

.oxford-proforma ul {
    list-style: none;
    padding: 0;
}


.oxford-proforma li {
    margin-bottom: 10px;
    line-height: 1.6;
    margin-left:20px;
}

.oxford-proforma .state-loan-rate-checkboxes {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.oxford-proforma .state-loan-rate input {
    width:auto;
}

.oxford-proforma a:hover {
    background-color: #990000;
}

.oxford-proforma button.calculate-btn {
    background-color: #990000;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.oxford-proforma input {
    width:100%;
}

.oxford-proforma .container {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.oxford-proforma .container .col {
    flex-direction: row;
    flex: 1;
}

.oxford-proforma table h2 {
    text-align: left;
}

.oxford-proforma .gform_fields {
    display:table!important;
}
.oxford-proforma tbody tr,
.oxford-proforma tbody {
    width:100%;
}

.oxford-proforma #earlyPaymentDiscount {
    width:auto;
}

@media (max-width: 600px) {
    .oxford-proforma .container {
        flex-direction: column;
        gap: 20px;
        padding: 10px;
    }
    .oxford-proforma .container .col {
        width: 100%;
        flex: none;
    }
}

.oxford-proforma .amortization-table {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    overflow-x: auto;
}

.oxford-proforma .amortization-table table {
    font-size:12px;
    border-collapse: collapse;
    width: 100%;
    background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    table-layout: auto;
}

.oxford-proforma .amortization-table td,
.oxford-proforma .amortization-table th {
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.oxford-proforma .amortization-table tbody tr:nth-child(even) {
    background-color: #ccc;
}

.oxford-proforma .print-only {
    display: none;
}


.oxford-proforma .amortization-table .year-divider {
    border-bottom: 1px solid black;
}

.oxford-proforma .amortization-table .five-year-message td {
    padding: 0;
    background-color: #f3f3f3;
    border: none;
    text-align: center;
}

/* Highlight the 60th row */
.oxford-proforma .amortization-table .five-year-highlight {
    background-color: #ddd; /* Darker than rest */
    font-weight: bold;
}

/* Message below 60th row */
.oxford-proforma .amortization-table .five-year-message td {
    background-color: #333; /* Dark background */
    color: #fff;
    font-weight: bold;
    text-align: center;
    padding: 10px;
    border-top: none;
    border-bottom: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.oxford-proforma .amortization-table .five-year-highlight td {
    background-color: #333;
    color: #fff;
    font-weight: bold;
    text-align: center;
    border-top: none;
    border-bottom: none;
}

.oxford-proforma .amortization-table .year-divider {
    border-bottom: 3px solid black;
}

@media screen{ 
    .oxford-proforma .amortization-table table {
        width: 100%;
        max-width: 100%;
        table-layout: auto;
        transform: scale(1);
        transform-origin: top left;
    }
}

@media print{ 
    .oxford-proforma .amortization-table table {
        width: 100%;
        max-width: 100%;
        table-layout: auto;
        transform-origin: top left;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .oxford-proforma .amortization-table .year-divider {
        border-bottom: none;

    }

    .oxford-proforma .amortization-table tbody tr:nth-child(even) {
        background-color: #ccc !important;
    }
    .oxford-proforma .amortization-table tbody tr:nth-child(odd) {
        background-color: #ffffff !important;
    }
    .oxford-proforma .gform_fields tr {
        display: none !important;
    }

    .oxford-proforma .no-print {
        display: none !important;
    }

    .oxford-proforma .print-only {
        display: block !important;
    }

    .oxford-proforma .print-grid {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        padding: 20px;
        margin-top: 20px !important;
    }

    .oxford-proforma .container,
    .oxford-proforma .gform_wrapper,
    .oxford-proforma .col {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    .oxford-proforma .print-grid > div {
        display: flex !important;
        justify-content: space-between;
        margin-bottom: 8px !important;
        border-bottom: 1px solid #ccc;
        padding-bottom: 4px;
    }

    .oxford-proforma .print-grid label {
        font-weight: bold;
        display: inline;
    }

    .oxford-proforma .print-grid td {
        padding: 4px 8px;
    }

    .oxford-proforma .print-grid span {
        display: inline;
    }

    .oxford-proforma .print-heading {
        font-size: 10px;
        margin-top: 24px;
        margin-bottom: 8px;
        border-bottom: 2px solid #000;
        padding-bottom: 4px;
    }

    .oxford-proforma .page-break {
        page-break-before: always;
    }
    .oxford-proforma .amortization-table .year-divider,
    .oxford-proforma .amortization-table .five-year-message .five-year-balloon {
        border: none;
        background-color: transparent;
        color: black;
    }
    .oxford-proforma .amortization-table .five-year-message {
        display: none;
    }
}
