body {
    font-family: Arial,Helvetica,Sans-Serif;
    background: #f6f7f9;
    margin: 0;
    color: #333;
    overflow-x: hidden;
}

.container {
    width: 60%;
    margin: auto;
    padding:10px 0;
    position: relative;
    overflow: hidden;
}
.already-container {
    width: 30%;
    margin: auto;
    padding-top:10px;
}

.Nav-main{
    margin: 0 auto;
    display: flex;
    align-content: center;
    align-items: center;
    transition-property: all;
    transition-duration: 150ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
    border-radius: 10px;
    background-color:#ffff;
}

/* Logo defaults */
.Nav-main .nav-logo {
    max-width: 100%;
    height: auto;
}

.card-left {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.section-title {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: bold;
}

.invoice-box {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 20px;
}

.item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 32px;
}

.item-desc {
    font-size: 12px;
    color: #777;
}

.price {
    font-size: 18px;
    font-weight: bold;
    color: #d9534f;
}

label {
    margin-bottom: 6px;
    vertical-align: text-bottom;
}

input {
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #ddd;
    padding-top: 12px;
    margin-top: 15px;
    font-size: 18px;
    font-weight: bold;
}

.total-amount {
    color: #b52c21;
}

.note {
    margin-top: 10px;
    font-size: 12px;
    color: #777;
}

.checkout-btn {
    /* background: #c0392b; */
    background: gray;   
    color: #fff;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
    font-weight: bold;
}

.checkout-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.checkout-btn:hover {
    background: #a93226;
}

*{
    font-family:Arial,Helvetica,Sans-Serif;
    margin:0px;
}
.address img{
    margin-top: 1px;
    width: 87px;
    margin-bottom: 9.5px;
}
.address{
    font-size:8pt;
    line-height: 10.7px;
    color: #4BACC6;
    text-align:right;
    white-space: nowrap;
}
.invoiceHeader{
    font-size: 13px;
    height: 18px;
    line-height: 18px;
    color: #000000;
    vertical-align:baseline;
}
.invoiceHeader.firstpage {
    font-size: 19.95pt;
    height: 26px;
    line-height: 28px;
}
.invoiceHash {
    color: inherit;
    font-size: inherit;
    vertical-align:baseline;
}
.invoiceHash.firstpage {
    font-size: 19px;
}
.invoiceNumber {
    color: inherit;
    font-size: inherit;
    vertical-align:baseline;
}
.firstpage .invoiceNumber,.firstpage .invoiceHash {
    font-size:10pt;
    font-family: Sans-Serif;
}
.firstpage .invoiceNumber {
    font-weight: bold;
}
.invoiceTitle {
    color: #444;
    font-size: 13px;
    line-height: 18px;
}
.invoiceSubHeader {
    font-size: 13px;
    height: 18px;
    line-height: 18px;
    color: #888;
    vertical-align:baseline;
    white-space: nowrap;
}
.invoiceSubHeader.firstpage {
    display: flex;
    width: 100%;
    color: #333;
    font-size: 12px;
    line-height: 12px;
}
.mInvoiceHeader {
    height: 41px;
    width: 215px;
    vertical-align:baseline;
    border: 2.5px solid #FF0000;
}
.mInvoiceHeader>div {
    padding: 10px;
    font-size: 13.33px;
    text-align: center;
    line-height: 19px;
    color: #FF0000;
}
.invoiceSubHeader .estimateSubHeader,
.invoiceSubHeader .POSubHeader {
    /* float:left; */
    padding-right: 10px;
    color: inherit;
    font-size: 10pt !important;
    line-height: 20px;
}
.dateline.firstpage {
    font-size:10pt;
}
.light-gray {
    color: #808080;
}
.left-side {
    width: 100%;
}
.right-side {
    text-align:right;
    width: 100%;
    color: #888;
    line-height: 18px;
    font-size: 13px;
}
.invoicedesc p,.invoicedesc ol li,.invoicedesc ul li{
    font-size:10pt;
}

.main-invoice-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.bottom-payment-conatainer{
    width: 60%;
    margin: 0 auto;
}
/* watermaek payment image */
.watermark-page::before {
    content: "";
    position: absolute;

    /* TRUE CENTER — immune to DevTools */
    transform: rotate(-25deg);
    background-image: url("/assets/images/paid.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 25%;
    inset: 0;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

/* Mobile layout: Address on top, Invoice below */
@media (max-width: 768px) {
    .Nav-main{
        width: unset;
    }
    .Nav-main .nav-logo{
        width: 90%;
    }
    .invoiceSubHeader.firstpage{
        display: block;
    }
    .main-invoice-header {
        flex-direction: column;
    }
    /* Parent flex container */
    .invoiceHeader.firstpage,
    .address {
        width: 100%;
        text-align: center;
    }

    .invoiceSubHeader{
        height: auto;
    }
    .invoiceSubHeader .estimateSubHeader, .invoiceSubHeader .POSubHeader{
        float: none;
    }

    .invoice-payment-details{
        text-align: center;
    }

    .addressLines_head {
        margin-top: 10px !important;
    }
    /* Reorder blocks */
    .address {
        order: 1;
        margin-bottom: 15px;
        text-align: center;
    }

    .address-details{
        line-height: 1.5;
    }

    .invoiceHeader.firstpage {
        order: 2;
        height: auto;
    }

    /* Improve readability */
    .invoiceHeader {
        font-size: 14px;
    }

    .dateline {
        margin-top: 6px;
        font-size: 13px;
    }

    .address img {
        max-width: 140px;
        height: auto;
        margin-bottom: 8px;
    }
    .invoice-form-card{
        max-width: 100%;
    }
    .invoice-form-card {
        padding: 24px 20px;
    }

    .form-title {
        font-size: 20px;
    }
    .watermark-page::before{
        background-size: 70%;
    }
    .descp{
        width:40% !important;
    }
}
@media (max-width: 456px) {
    .watermark-page::before{
        background-size: 90%;
    }
}
.invoice-form-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.invoice-form-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 14px;
    padding: 30px 28px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.descp{
    border-bottom: 2px solid black;
    width:7%;
    font-weight:bold;
    font-family:Sans-Serif;
    font-size:10pt;
}

.form-title {
    margin: 0;
    text-align: center;
    font-size: 22px;
    font-weight: bold;
}

.form-subtitle {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin: 8px 0 25px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

.form-group input {
    width: 92%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #c0392b;
    box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.15);
}

.invoice-form .checkout-btn {
    width: 100%;
    background: #c0392b;
    color: #ffffff;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

.checkout-btn:hover:not(:disabled) {
    background: #a93226;
}

.checkout-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: #888;
}
