﻿#onlineBillPay form {
    border: 0;
}

#onlineBillPay.container {
    max-width: 900px;
    margin: 20px auto;
    padding: 30px;
    width: 100%;
}

#onlineBillPay .main-container {
    margin: 20px auto;
    padding: 30px;
    /*border-radius: 8px;*/
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#onlineBillPay .input-validation-container {
    position: relative;
}

#onlineBillPay .field-validation-error {
    display: block;
    font-size: .9em;
    margin-top: 4px;
    position: absolute;
    left: 5px;
    bottom: -20px;
}

#onlineBillPay .form-group {
    /*margin-bottom: 25px;*/
}

#onlineBillPay form label {
    font-size: 14px;
    /*font-weight: normal;*/
    border-top: hidden;
}

#onlineBillPay #paymentSection {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

#onlineBillPay .payment-help-text {
    margin-top:5px;
    margin-bottom: 10px;
    text-align: left;
}

#onlineBillPay .payment-help-text p{    
    color: #555;
    font-size: 11px;
    line-height: normal;
}

#onlineBillPay #checkoutButton {
    margin-left: 20px; /* Adds some space between the text and the button */
}

#onlineBillPay h2 {
    text-align: left;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 24px;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif
}

#onlineBillPay .form-container {
    margin-bottom: 20px;
}

#onlineBillPay .form-row {
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

#onlineBillPay .form-group {
    margin-right: 15px;
    flex-grow: 0;
    flex-shrink: 0;
}

#onlineBillPay .form-group:last-child {
    margin-right: 0;
}

#onlineBillPay label {
    display: block;
    margin-bottom: 4px;
    color: #002756;
    font-weight: normal;
    font-size: 14px;
}

#onlineBillPay .form-control {
    width: 200px; 
    border: 1px solid #ccc;
    padding: 6px;
    border-radius: 4px;
    font-size: 16px;
}

#invoiceList .action-column {
    width: 30px;
    text-align: center;
}

#invoiceList .remove-invoice {
    background: none;
    border: none;
    padding: 0;
    font-size: 16px;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s ease-in-out;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin: 0 auto;
}

.remove-invoice i {
    display: block;
}

#invoiceList .remove-invoice:hover {
    opacity: 1;
    box-shadow: none;
}

/*#invoiceList table .amount-column {
    width: 170px;
}

#invoiceList .form-control.invoice-amount {
    width: 100px;
    font-size: 12px;
    text-align: left;
    padding-left: 5px;
}*/

#onlineBillPay .payment-required {
    color: red;
    margin-right: 4px;
    font-size:18px;
}

#onlineBillPay #checkoutButton {
    display: block;
    margin-left: auto;
    margin-right: 0;
    margin-top: 20px;
}

#onlineBillPay .btn {
    display: inline-block;
    padding: 8px 16px;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#onlineBillPay .btn-primary {
    background-color: #A7A12C;
    color: white;
    border: none;
    text-transform: none;
    font-weight: normal;
}

div.alert {
    cursor: default;
}

 /*Modal styles*/

#successModal.modala {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

#successModal .modal-content {
    background-color: #fefefe;
    margin: auto auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 5px;
    text-align: center;
}

#successModal .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

#successModal .close:hover,
#successModal .close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

#invoiceList table .amount-column {
    width: 170px;
}

#invoiceList table .input-group {
    display: flex;
    align-items: center;
}

#invoiceList table .input-group-prepend {
    display: flex;
    align-items: center;
    margin-left:10px;
}

#invoiceList table .input-group-text {
    background-color: transparent;
    border: none;
    padding-right: 5px;
}

#invoiceList table .invoice-amount {
    width: 130px;
    text-align: left;
    padding-left: 5px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    font-size:12px;
}

#invoiceList table tfoot td {
    border-top: 2px solid #dee2e6;
}

#invoiceList table tfoot .total-label {
    text-align: right;
    padding-right: 10px;
}

#invoiceList table tfoot .total-amount {
    text-align: left;
    padding-left: 0;
    font-weight: bold;
}

#invoiceTotal {
    display: inline-block;
    width: 130px;
    margin-left: 14px; /* Adjust this value to align with the $ sign above */
    white-space:pre;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        align-items: stretch;
    }

    .form-group {
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .form-control {
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    #onlineBillPay #paymentSection {
        flex-direction: column;
        align-items: stretch;
    }

    #onlineBillPay .payment-help-text {
        margin-bottom: 10px;
        text-align: center;
    }

    #onlineBillPay #checkoutButton {
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
}
