.invoice-page {
    background: var(--bg-page, #F6F4FF);
    color: var(--ink, #071F36)
}

.invoice-page main {
    padding: 30px 0 60px;
    font-family: 'IBM Plex Sans', sans-serif
}

.invoice-page main>section {
    padding: 0
}

.invoice-hero {
    width: min(100% - 32px, 1160px);
    margin: 0 auto;
    text-align: center
}

.invoice-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: #0068b5;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase
}

.invoice-hero h1 {
    max-width: none;
    margin: 0;
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -.03em;
    white-space: nowrap
}

.invoice-hero p {
    max-width: 900px;
    margin: 16px auto 0;
    color: var(--text-secondary, #4A5B70);
    font-size: 18px;
    line-height: 1.6
}

.invoice-trust {
    margin: 16px auto 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap
}

.invoice-trust span {
    padding: 7px 11px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border, #D2DEEB);
    color: var(--text-secondary, #4A5B70);
    font-size: 13px;
    font-weight: 600
}

.invoice-builder {
    width: min(100% - 32px, 1160px);
    margin: 22px auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, .9fr);
    gap: 24px;
    align-items: start
}

.invoice-form,
.invoice-preview-card {
    background: #fff;
    border: 1px solid var(--border, #D2DEEB);
    border-radius: 18px;
    box-shadow: 0 18px 48px rgba(13, 12, 58, .08)
}

.invoice-form {
    padding: 22px
}

.invoice-form-head h2 {
    margin: 0;
    font-size: 27px
}

.invoice-form-head p {
    margin: 6px 0 0;
    color: var(--text-secondary, #4A5B70)
}

.invoice-field {
    margin-top: 16px
}

.invoice-field label,
.invoice-field legend {
    display: block;
    color: var(--ink, #071F36);
    font-size: 14px;
    font-weight: 600
}

.invoice-field label span {
    color: var(--text-secondary, #4A5B70);
    font-weight: 400
}

.invoice-field input,
.invoice-field textarea {
    box-sizing: border-box;
    width: 100%;
    margin-top: 6px;
    padding: 12px 13px;
    border: 1px solid var(--border, #D2DEEB);
    border-radius: 10px;
    background: #fff;
    color: var(--ink, #071F36);
    font: inherit;
    outline: none
}

.invoice-field input:focus,
.invoice-field textarea:focus {
    border-color: #0068b5;
    box-shadow: 0 0 0 3px rgba(0, 132, 255, .1)
}

.invoice-money-input {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    margin-top: 6px;
    border: 1px solid var(--border, #D2DEEB);
    border-radius: 10px;
    overflow: hidden;
    background: #fff
}

.invoice-money-input:focus-within {
    border-color: #0068b5;
    box-shadow: 0 0 0 3px rgba(0, 132, 255, .1)
}

.invoice-money-input span {
    padding: 0 11px;
    color: var(--text-secondary, #4A5B70);
    font-size: 13px;
    font-weight: 700;
    border-right: 1px solid #e4e8ef
}

.invoice-money-input input {
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none
}

.invoice-hint,
.invoice-form-note {
    margin: 6px 0 0;
    color: var(--text-secondary, #4A5B70);
    font-size: 12px;
    line-height: 1.4
}

.invoice-gst-field {
    border: 0;
    padding: 0
}

.invoice-gst-field label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-weight: 500
}

.invoice-gst-field input {
    width: auto;
    margin: 0;
    accent-color: #0068b5
}

.invoice-error {
    margin: 7px 0 0;
    color: #b42318;
    font-size: 12px
}

.invoice-submit,
.invoice-continue {
    width: 100%;
    box-sizing: border-box;
    margin-top: 20px;
    padding: 13px 17px;
    border-radius: 10px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none
}

.invoice-preview-card {
    position: sticky;
    top: 110px;
    padding: 22px
}

.invoice-preview-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start
}

.invoice-preview-label {
    display: block;
    color: #0068b5;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em
}

.invoice-preview-top p {
    margin: 4px 0 0;
    color: var(--text-secondary, #4A5B70);
    font-size: 12px
}

.invoice-preview-status {
    padding: 6px 9px;
    border-radius: 999px;
    background: #eef7ff;
    color: var(--primary, #0068B5);
    font-size: 11px;
    font-weight: 700
}

.invoice-preview-client {
    margin-top: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border, #D2DEEB)
}

.invoice-preview-client span {
    color: var(--text-secondary, #4A5B70);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em
}

.invoice-preview-client strong {
    display: block;
    margin-top: 5px;
    font-size: 22px
}

.invoice-preview-client p {
    margin: 6px 0 0;
    color: var(--text-secondary, #4A5B70);
    font-size: 14px;
    line-height: 1.4
}

.invoice-totals {
    margin: 18px 0 0
}

.invoice-totals div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 7px 0
}

.invoice-totals dt {
    color: var(--text-secondary, #4A5B70)
}

.invoice-totals dd {
    margin: 0;
    font-weight: 600
}

.invoice-total {
    margin-top: 5px;
    padding-top: 13px !important;
    border-top: 1px solid var(--border, #D2DEEB);
    font-size: 20px
}

.invoice-total dt,
.invoice-total dd {
    color: var(--ink, #071F36);
    font-weight: 700
}

.invoice-cost-panel {
    margin-top: 18px;
    padding: 14px;
    border-radius: 12px;
    background: #f3f8fc;
    border: 1px solid var(--border, #D2DEEB)
}

.invoice-cost-panel span {
    display: block;
    color: var(--text-secondary, #4A5B70);
    font-size: 13px
}

.invoice-cost-panel strong {
    display: block;
    margin-top: 4px;
    font-size: 18px
}

.invoice-cost-panel p {
    margin: 7px 0 0;
    color: var(--text-secondary, #4A5B70);
    font-size: 12px;
    line-height: 1.4
}

.invoice-result {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e4e8ef
}

.invoice-result h2 {
    margin: 0;
    font-size: 24px
}

.invoice-result p {
    margin: 7px 0 0;
    color: var(--text-secondary, #4A5B70);
    line-height: 1.45
}

.invoice-login {
    display: block;
    margin-top: 11px;
    text-align: center;
    color: var(--primary, #0068B5);
    font-size: 14px;
    text-decoration: none
}

.invoice-result small {
    display: block;
    margin-top: 8px;
    text-align: center;
    color: var(--text-secondary, #4A5B70)
}

.invoice-explainer {
    width: min(100% - 32px, 1160px);
    margin: 56px auto 0
}

.invoice-explainer>h2 {
    margin: 0;
    text-align: center;
    font-size: clamp(30px, 4vw, 44px)
}

.invoice-explainer-grid {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px
}

.invoice-explainer-grid article {
    padding: 18px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--border, #D2DEEB)
}

.invoice-explainer-grid article>strong {
    display: inline-flex;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    background: var(--ink, #071F36);
    color: #fff
}

.invoice-explainer-grid h3 {
    margin: 13px 0 0;
    font-size: 18px
}

.invoice-explainer-grid p {
    margin: 7px 0 0;
    color: var(--text-secondary, #4A5B70);
    font-size: 14px;
    line-height: 1.5
}

@media(max-width:900px) {
    .invoice-hero h1 {
        white-space: normal
    }

    .invoice-builder {
        grid-template-columns: 1fr
    }

    .invoice-preview-card {
        position: static
    }

    .invoice-explainer-grid {
        grid-template-columns: 1fr
    }
}

@media(max-width:640px) {
    .invoice-page main {
        padding: 28px 0 44px
    }

    .invoice-hero,
    .invoice-builder,
    .invoice-explainer {
        width: min(100% - 24px, 1100px)
    }

    .invoice-hero p {
        font-size: 16px
    }

    .invoice-form,
    .invoice-preview-card {
        padding: 18px
    }

    .invoice-trust {
        gap: 7px
    }

    .invoice-trust span {
        font-size: 12px
    }

    .invoice-preview-client strong {
        font-size: 20px
    }
}

.invoice-cost-panel {
    background: linear-gradient(135deg, rgb(0, 138, 251), rgb(121, 58, 255));
    border-color: transparent;
    color: #fff
}

.invoice-cost-panel span {
    color: rgba(255, 255, 255, .72)
}

.invoice-cost-panel p {
    color: #fff
}

.invoice-gst-default {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px
}

.invoice-gst-default label {
    margin-top: 0 !important
}

.invoice-gst-toggle {
    padding: 6px 10px;
    border: 1px solid var(--border, #D2DEEB);
    border-radius: 999px;
    background: #eef7ff;
    color: var(--primary, #0068B5);
    font: 700 11px/1.2 'IBM Plex Sans', sans-serif;
    cursor: pointer
}

.invoice-gst-toggle:hover,
.invoice-gst-toggle:focus-visible {
    border-color: #0068b5;
    background: #e2f2ff;
    outline: none
}

.invoice-gst-options {
    margin-top: 8px
}

.invoice-gst-options label {
    margin-top: 8px !important
}

.invoice-cost-panel {
    padding: 0;
    overflow: hidden;
    background: #fff;
    border: 2px solid var(--primary, #0068B5);
    color: var(--ink, #071F36)
}

.invoice-cost-main {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr)
}

.invoice-cost-offer {
    padding: 20px;
    background: linear-gradient(135deg, var(--primary, #0068B5), var(--primary-hover, #004F8A));
    color: #fff
}

.invoice-cost-offer>span {
    display: block;
    color: #fff;
    font-size: 14px
}

.invoice-cost-offer>strong {
    display: block;
    margin-top: 5px;
    color: #fff;
    font-size: 27px;
    line-height: 1.1
}

.invoice-cost-confirm {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .3);
    color: rgba(255, 255, 255, .9);
    font-size: 12px
}

.invoice-cost-confirm>span {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    background: #35c96b;
    color: #fff;
    font-size: 18px;
    font-weight: 700
}

.invoice-cost-confirm strong {
    display: block;
    margin-top: 3px;
    color: #fff;
    font-size: 15px
}

.invoice-saving {
    position: relative;
    min-height: 190px;
    padding: 20px 20px 18px;
    background: #fff;
    overflow: hidden
}

.invoice-saving-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1
}

.invoice-saving-icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 50%;
    background: #35bd68;
    color: #fff !important;
    font-size: 25px;
    font-weight: 700
}

.invoice-saving-heading>strong {
    color: #167039;
    font-size: 27px;
    line-height: 1.1
}

.invoice-saving>p {
    position: relative;
    z-index: 1;
    max-width: 260px;
    margin: 12px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--border, #D2DEEB);
    color: var(--ink, #071F36);
    font-size: 14px;
    line-height: 1.45
}

.invoice-saving-art {
    position: absolute;
    right: 28px;
    bottom: 18px;
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 7px solid #ffc94d;
    border-radius: 50%;
    background: #ffdf78;
    color: #fff;
    font-size: 27px;
    font-weight: 700;
    box-shadow: 0 0 0 4px rgba(255, 201, 77, .18)
}

.invoice-cost-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 14px 16px;
    background: var(--surface, #FFFFFF);
    border-top: 1px solid var(--border, #D2DEEB)
}

.invoice-cost-benefits>div {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0
}

.invoice-cost-benefits>div>span {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    border: 2px solid var(--primary, #0068B5);
    border-radius: 50%;
    color: var(--primary, #0068B5) !important;
    font-size: 20px;
    font-weight: 700
}

.invoice-cost-benefits strong {
    color: var(--ink, #071F36);
    font-size: 12px;
    line-height: 1.2
}

.invoice-cost-benefits small {
    display: block;
    margin-top: 3px;
    color: var(--text-secondary, #4A5B70);
    font-size: 11px;
    font-weight: 400
}

@media(max-width:640px) {
    .invoice-cost-main {
        grid-template-columns: 1fr
    }

    .invoice-saving {
        min-height: 150px
    }

    .invoice-saving-art {
        right: 24px;
        bottom: 16px
    }

    .invoice-cost-benefits {
        grid-template-columns: 1fr;
        gap: 10px
    }

    .invoice-cost-benefits>div {
        align-items: flex-start
    }
}

.invoice-saving-heading>strong span {
    display: inline;
    color: inherit !important;
    font-size: inherit
}

.invoice-cost-main {
    min-height: 210px
}

.invoice-cost-offer {
    box-sizing: border-box;
    padding: 20px 22px
}

.invoice-cost-offer>span {
    font-size: 13px;
    line-height: 1.3;
    white-space: nowrap
}

.invoice-cost-offer>strong {
    font-size: 24px;
    white-space: nowrap
}

.invoice-cost-confirm {
    margin-top: 16px;
    padding-top: 12px
}

.invoice-saving {
    box-sizing: border-box;
    min-height: 210px;
    padding: 20px 20px 16px
}

.invoice-saving-heading {
    gap: 10px
}

.invoice-saving-icon {
    width: 38px;
    height: 38px;
    font-size: 22px
}

.invoice-saving-heading>strong {
    font-size: 24px;
    white-space: nowrap
}

.invoice-saving>p {
    max-width: 230px;
    margin-top: 10px;
    font-size: 13px
}

.invoice-saving-art {
    right: 22px;
    bottom: 16px;
    width: 48px;
    height: 48px;
    border-width: 6px
}

.invoice-cost-benefits {
    padding: 12px 14px;
    gap: 10px
}

.invoice-cost-benefits>div {
    gap: 7px
}

.invoice-cost-benefits>div>span {
    width: 31px;
    height: 31px;
    font-size: 18px
}

.invoice-cost-benefits strong {
    font-size: 11px
}

.invoice-cost-benefits small {
    font-size: 10px
}

@media(max-width:640px) {
    .invoice-cost-main {
        min-height: 0
    }

    .invoice-cost-offer>span {
        white-space: normal
    }

    .invoice-cost-offer>strong {
        font-size: 24px
    }

    .invoice-saving {
        min-height: 178px
    }

    .invoice-cost-benefits {
        padding: 12px 14px
    }
}

.invoice-saving-icon {
    display: grid !important;
    place-items: center;
    color: #fff !important
}

.invoice-total dt,
.invoice-total dd {
    color: #0068b5
}

.invoice-cost-panel {
    margin-top: 18px;
    padding: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border, #D2DEEB);
    border-radius: 14px;
    color: var(--ink, #071F36)
}

.invoice-cost-intro {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 18px 16px
}

.invoice-cost-icon {
    display: grid !important;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: #35bd68;
    color: #fff !important;
    font-size: 26px;
    font-weight: 700
}

.invoice-cost-intro>div>span {
    display: block;
    color: var(--text-secondary, #4A5B70) !important;
    font-size: 14px !important;
    line-height: 1.3
}

.invoice-cost-intro strong {
    display: block;
    margin-top: 4px;
    color: var(--ink, #071F36) !important;
    font-size: 24px !important;
    line-height: 1.1
}

.invoice-cost-intro p {
    margin: 7px 0 0;
    color: #167039 !important;
    font-size: 14px !important;
    font-weight: 600
}

.invoice-cost-intro b {
    color: #35bd68
}

.invoice-saving-box {
    display: grid;
    grid-template-columns: 42px minmax(70px, auto) 1fr;
    align-items: center;
    gap: 12px;
    margin: 0 18px;
    padding: 13px 14px;
    border: 1px solid #bce4c8;
    border-radius: 10px;
    background: #f1fbf3
}

.invoice-saving-box>.invoice-saving-icon {
    display: grid !important;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    background: #35bd68;
    color: #fff !important;
    font-size: 21px
}

.invoice-saving-value>span {
    display: block;
    color: #167039 !important;
    font-size: 12px !important
}

.invoice-saving-value>strong {
    display: block;
    margin-top: 2px;
    color: #167039 !important;
    font-size: 26px !important;
    line-height: 1
}

.invoice-saving-box p {
    margin: 0;
    color: var(--ink, #071F36) !important;
    font-size: 12px !important;
    line-height: 1.4
}

.invoice-saving-box small {
    grid-column: 3;
    color: var(--text-secondary, #4A5B70) !important;
    font-size: 11px;
    line-height: 1.3
}

.invoice-cost-benefits {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin: 16px 18px 0;
    padding: 0;
    border-top: 1px solid var(--border, #D2DEEB);
    background: #fff
}

.invoice-cost-benefits>div {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 2px;
    border-bottom: 1px solid var(--border, #D2DEEB)
}

.invoice-cost-benefits>div>span {
    display: grid !important;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    place-items: center;
    border: 2px solid #0068b5;
    border-radius: 50%;
    color: #0068b5 !important;
    font-size: 20px !important
}

.invoice-cost-benefits strong {
    color: var(--ink, #071F36) !important;
    font-size: 13px !important;
    line-height: 1.2
}

.invoice-cost-benefits small {
    display: block;
    margin-top: 3px;
    color: var(--text-secondary, #4A5B70) !important;
    font-size: 12px !important;
    font-weight: 400
}

.invoice-cost-trust {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 0;
    padding: 16px 18px;
    background: #f3f7ff
}

.invoice-cost-trust>span {
    display: grid !important;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 2px solid #0068b5;
    border-radius: 50%;
    color: #0068b5 !important;
    font-size: 25px !important
}

.invoice-cost-trust strong {
    display: block;
    color: var(--ink, #071F36) !important;
    font-size: 14px !important
}

.invoice-cost-trust small {
    display: block;
    margin-top: 3px;
    color: var(--text-secondary, #4A5B70) !important;
    font-size: 12px !important;
    line-height: 1.35
}

@media(max-width:640px) {
    .invoice-saving-box {
        grid-template-columns: 38px 1fr
    }

    .invoice-saving-box p {
        grid-column: 1/-1
    }

    .invoice-saving-box small {
        grid-column: 1/-1
    }

    .invoice-cost-intro strong {
        font-size: 22px !important
    }
}

.invoice-saving-value>strong span {
    display: inline !important;
    color: inherit !important;
    font-size: inherit !important;
    line-height: 1 !important
}