﻿html {
    height: 100%;
}

.navbar-dark {
    background-color: #003B5C;
    margin-top: 0;
    margin-bottom: 0;
    padding: 0 0;
    box-shadow: none;
}

.navbar {
    justify-content: flex-start;
}

.navbar-brand {
    padding: 0;
}

.d-none {
    display: none;
}

.d-block {
    display: block;
}

.header {
    display: flex;
    height: 5.25rem; /* 84px */
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-top: 1.28rem;
    padding-bottom: 1.28rem;
    padding-left: 8.33%;
    padding-right: 8.33%;
    flex-shrink: 0;
    background-color: #003B5C;
    vertical-align: middle;
}

.header-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 0.3125rem; /* 5px */
    max-width: 25rem; /* 400px */
    margin-left: 0;
    padding: 0 1.25rem; /* 20px */
    align-items: center;
}

.header-item {
    display: flex;
    align-items: center;
    gap: 0.375rem; /* 6px */
}

.nzta-logoL img {
    width: 11.875rem; /* 190px */
    height: 2.625rem; /* 42px */
    padding: 1.375rem 0 1.25rem 0; /* 22px 0 20px 0 */
    margin-left: 0;
}

.header-sitename {
    background-color: #fff;
    border-top-right-radius: 3.75rem; /* 60px */
    color: #003B5C;
    font-size: 1rem;
    font-weight: 700;
    line-height: 2.75rem; /* 44px */
    margin-left: -0.8125rem; /* -13px */
    margin-top: 0;
    overflow: hidden;
    padding: 0 1.875rem 0 4.625rem; /* 0 30px 0 74px */
    position: relative;
    text-align: center;
    text-decoration: none;
    width: 14.375rem; /* 230px */
    max-height: 2.75rem; /* 44px */
}

    .header-sitename:before {
        background-color: #003B5C;
        border-radius: 3.375rem; /* 54px */
        content: "";
        height: 4.625rem; /* 74px */
        left: -2.75rem; /* -44px */
        position: absolute;
        top: -1.875rem; /* -30px */
        width: 4.625rem; /* 74px */
    }

a.header-links:hover,
a.header-span:hover {
    color: #d2dfe9;
}

.head-divider {
    width: 100%;
    border-bottom: 1px solid;
    border-color: #808080;
    margin-top: 0;
    margin-bottom: 1rem; /* 24px */
}

body {
    font-family: "Source Sans Pro";
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.5rem; /* 24px */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.sectionBlockLayout {
    margin: 0;
}

.crmEntityFormView .cell {
    padding: 0 0 0.75rem; /* 12px */
    margin-bottom: 0;
}

.crmEntityFormView .section-title {
    border-bottom-width: 0;
    margin-bottom: 0;
}

.crmEntityFormView fieldset {
    margin: 0 0 0 0;
    padding: 0;
    border: 0 none;
}

.crmEntityFormView .actions {
    border-top: 1px solid #e5e5e5;
    margin: 0;
    padding: 1.1875rem 0 0 0; /* 19px */
}

.form-container {
    width: 50%;
}

.container {
    padding: 0;
    width: 100%;
    max-width: 100% !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column
}

a.anchor-text-decoration-none {
    font-family: "Source Sans Pro";
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.5rem;
    color: #236FA6;
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: none;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
}

.payment-note p {
    margin: 0 !important;
}

.payment-note > p:has(a) {
    margin-top: 1rem !important;
}

.payment-note p a {
    text-decoration: underline;
}

.footer-copyright {
    display: flex;
    justify-content: space-between;
}

#mainContent {
    background-color: #F2F4F7;
    font-family: "Source Sans Pro";
    max-width: 100%;
    padding-top: 2.5rem; /* 40px */
    padding-bottom: 2.5rem; /* 40px */
    padding-left: 8.33%;
    padding-right: 8.33%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem; /* 16px */
    align-self: stretch;
    flex: 1 0 auto; /* grow, but allow it to shrink and expand naturally */
}

    #mainContent h1 {
        font-family: "Source Sans Pro";
        font-size: 2rem; /* 32px */
        font-style: normal;
        font-weight: 700;
        line-height: 2.25rem; /* 36px */
        margin: 0 0 2rem 0; /* bottom 40px */
        color: #323232;
    }

    #mainContent h2 {
        font-size: 1.75rem; /* 28px */
        font-weight: 700;
        line-height: 2.25rem; /* 36px */
        margin: 0rem 0 1rem 0; /* 24px top, 16px bottom */
        color: #323232;
    }

    #mainContent h3 {
        font-size: 1.5rem; /* 24px */
        font-weight: 700;
        line-height: 2.25rem;
        margin: 1.5rem 0 1rem 0;
        color: #323232;
    }

    #mainContent h4 {
        font-size: 1.25rem; /* 20px */
        font-weight: 700;
        line-height: 2.25rem;
        margin: 0 0 1rem 0;
        color: #323232;
    }

    #mainContent p,
    #mainContent .table-info {
        font-size: 1rem;
        font-weight: 400;
        line-height: 1.5rem;
        margin: 0 0 1rem 0;
    }

.columnBlockLayout {
    margin: 0;
    padding: 0;
}

.field-label {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5rem;
}

.form-control {
    background-color: #ffffff !important;
    color: #000000;
}

.button1 {
    border-radius: 0.25rem; /* 4px */
    background-color: #236FA6;
    border-color: #236FA6;
    color: white;
    font-family: "Source Sans Pro";
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5rem;
    display: flex;
    padding: 0.75rem 1.5rem; /* 12px 24px */
    justify-content: center;
    align-items: center;
    gap: 0.75rem; /* 12px */
}

    .button1:hover {
        text-decoration: underline;
        background-color: #1C5985;
    }

    .button1:focus {
        text-decoration: underline;
        background-color: #1C5985;
        outline: none; /* remove default outline */
        box-shadow: 0 0 0 4px white, /* inner stroke (gap) */
        0 0 0 6px #0084DB; /* outer stroke */
    }

    .button1:active {
        text-decoration: underline;
        background-color: #16476A;
    }


.button2 {
    border-radius: 0.25rem; /* 4px */
    font-family: "Source Sans Pro";
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5rem;
    display: flex;
    padding: 0.75rem 1.5rem; /* 12px 24px */
    justify-content: center;
    align-items: center;
    gap: 0.75rem; /* 12px */
    color: rgb(35,111,166);
    border: 1px solid rgb(35, 111, 166);
}

    .button2:hover {
        color: #ffffff;
        text-decoration: underline;
        background-color: #236FA6;
    }

    .button2:focus {
        color: #ffffff;
        text-decoration: underline;
        background-color: #236FA6;
        outline: none; /* remove default outline */
        box-shadow: 0 0 0 4px white, /* inner stroke (gap) */
        0 0 0 6px #0084DB; /* outer stroke */
    }

    .button2:active {
        color: #ffffff;
        text-decoration: underline;
        background-color: #1C5985;
    }

.options-button {
    display: flex;
    gap: 0.75rem;
}

.payment-method {
    max-width: 12.5rem;
    padding: 1.25rem;
    border-radius: 0.5rem;
}

.payment-option {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* important */
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 0;
}

.payment-separator {
    border: none;
    border-top: 1px solid #e5e7eb; /* gray-200 */
    margin: 0.5rem 0;
}

.payment-option input[type="radio"] {
    margin-top: 0.5rem;
}

.input-and-text {
    display: flex;
    align-items: flex-start; /* align input with top of text */
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.payment-details {
    display: flex;
    flex-direction: column;
}

    .payment-details p {
        margin: 0.25rem 0 0;
        font-size: 1rem;
    }

.logos {
    display: flex;
    align-items: stretch; /* ensures divider fills full height */
    gap: 1rem;
    flex-wrap: nowrap;
}

    .logos img {
        height: 1.5rem;
        /*    margin-left: 0.5rem;*/
    }

        .logos img:first-child {
            margin-right: 0.5rem;
            position: relative;
        }

            .logos img:first-child::after {
                content: "";
                position: absolute;
                right: -0.5rem;
                top: 0;
                height: 100%;
                width: 1px;
                background-color: #d1d5db; /* gray-300 */
            }

.divider {
    width: 1px;
    align-self: stretch; /* matches logo height */
    background-color: #e5e7eb; /* or any visible color */
}

.logos-mobile {
    display: none;
}

/* show desktop logos */
.logos-desktop {
    display: flex;
    gap: 1rem;
    align-items: center;
}

input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid #236FA6;
    border-radius: 50%;
    position: relative;
    outline: none;
    cursor: pointer;
    vertical-align: middle;
    margin: 0;
    padding: 0;
    display: inline-block;
    background-color: white;
    transition: box-shadow 0.2s, background-color 0.2s;
}

    /* Checked state: filled inner dot */
    input[type="radio"]:checked::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0.8rem;
        height: 0.8rem;
        background-color: #236FA6;
        border-radius: 50%;
        transform: translate(-50%, -50%);
    }

    /* Focus state: blue ring */
    input[type="radio"]:focus {
        box-shadow: 0 0 0 4px #F2F4F7, 0 0 0 6px #0084DB;
    }

    /* ✅ Active state: darker fill and inner ring */
    input[type="radio"]:active {
        border-color: #16476A;
    }

    input[type="radio"]:active::before {
        background-color: #16476A;
    }

    /* ✅ Active state: darker fill and inner ring */
    input[type="radio"]:hover {
        border-color: #236FA6;
        background-color: #236FA6;
    }


@media (max-width: 600px) {
    .payment-option {
        flex-direction: column;
        align-items: flex-start;
    }

    .input-and-text {
        flex-direction: row; /* keep radio and text inline even on small screens */
        align-items: flex-start;
    }

    .logos {
        margin-top: 0.5rem;
    }

        .logos img:first-child::after {
            display: none;
        }


    .logos-desktop {
        display: none;
    }

    .logos-mobile {
        display: flex;
        gap: 1rem;
        align-items: center;
    }
}

input[type="text"],
input[type="email"],
input[type="number"],
select {
    background-color: #ffffff;
}

input[type="button"] {
    border-radius: 0.25rem; /* 4px */
    background-color: #236FA6;
    border-color: #236FA6;
    color: white;
    font-family: "Source Sans Pro";
    font-size: 1rem; /* 16px */
    font-style: normal;
    font-weight: 600;
    line-height: 1.5rem; /* 24px */
    display: flex;
    padding: 0.75rem 1.5rem; /* 12px 24px */
    justify-content: center;
    align-items: center;
    gap: 0.75rem; /* 12px */
}

.button1 {
    border-radius: 0.25rem; /* 4px */
    background-color: #236FA6;
    border-color: #236FA6;
    color: white;
    font-family: "Source Sans Pro";
    font-size: 1rem; /* 16px */
    font-style: normal;
    font-weight: 600;
    line-height: 1.5rem; /* 24px */
    display: flex;
    padding: 0.75rem 1.5rem; /* 12px 24px */
    justify-content: center;
    align-items: center;
    gap: 0.75rem; /* 12px */
}

/* Width classes */
.w-16 {
    width: 16.67%;
}

.w-33 {
    width: 33.33%;
}

.w-50 {
    width: 50%;
}

.footer {
    height: auto;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    padding-left: 8.33%;
    padding-right: 8.33%;
    align-self: stretch;
    background-color: #003B5C;
}

.footer-top {
    display: flex;
    align-items: end;
}

.footer-bottom {
    width: auto;
    height: 12.125rem; /* 194px */
    flex-shrink: 0;
    background-color: #003B5C;
}

.icon-inline {
    display: inline-block;
    vertical-align: middle;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 13.4375rem 13.4375rem; /* 215px each */
    grid-template-rows: auto;
    gap: 0.3125rem; /* 5px */
    max-width: 100%;
    margin: auto;
    padding: 0 1.25rem; /* 20px */
    align-items: center;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 0.3125rem; /* 5px */
    padding: 0 0;
}

.i img {
    width: auto;
    height: 1.5rem; /* 24px */
}

.nzta-logo img,
.nzgovt-logo img {
    width: auto;
    height: 2.5rem; /* 40px */
}

#session-exp-error .alert-right p {
    margin-bottom: 0rem;
}

.footer-links .footer-span {
    font-size: 1rem;
    font-family: "Source Sans Pro";
    font-style: normal;
    font-weight: 400;
    line-height: 1.5rem;
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: none;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    padding-left: 0px;
    padding-right: 0.25rem; /* 24px */
    color: #ffffff;
}

.footer-links {
    padding-right: 1rem;
    display: inline-flex; /* keep items inline */
    align-items: center; /* vertically align */
    gap: 4px; /* small spacing between text and icon */
    text-decoration: none; /* optional */
}

a:hover {
    color: #1C5985;
}

a:focus {
    color: #1C5985;
    outline: none;
    box-shadow: 0 0 0 4px white, 0 0 0 6px #0084DB;
}

a:active {
    color: #16476A;
}

a.footer-links:hover .footer-span {
    color: #1C5985;
}

a.footer-links:focus {
    color: #1C5985;
    outline: none;
    box-shadow: 0 0 0 4px #003B5C, 0 0 0 6px #0084DB;
}

a.footer-links:active .footer-span {
    color: #16476A;
}

.footer-text {
    font-family: "Source Sans Pro";
    font-size: 0.75rem; /* 12px */
    font-style: normal;
    font-weight: 400;
    line-height: 1.125rem; /* 18px */
}

.footer-grid > .footer-item:nth-child(1) {
    justify-self: start;
}

.footer-grid > .footer-item:nth-child(2),
.footer-grid > .footer-item:nth-child(3),
.footer-grid > .footer-item:nth-child(6) {
    justify-self: end;
}

.footer-grid > .footer-item:nth-child(4) {
    justify-self: center;
}

.footer-grid > .footer-item:nth-child(5) {
    justify-self: start;
}

.row-span1 {
    grid-column: span 1;
    margin: 1rem 0; /* 16px */
}

.row-span1 {
    grid-column: span 1;
    margin: 1rem 0; /* 16px */
}

.row-span2 {
    grid-column: span 2;
    margin: 1rem 0;
}

.row-divider {
    grid-column: span 3;
    border-bottom: 0.03125rem solid; /* 0.5px */
    margin: 1rem 0;
}

/* CSS for better resizing on laptops and mobile phones */

@media (min-width: 18.75rem) and (max-width: 25rem) {
    .html {
        height: 100%;
        margin: 0;
    }

    .header {
        /*height: 3rem;*/ /* 48px */
        margin-left: 0;
        margin-right: 0;
        padding-left: 1.5rem; /* 24px */
        padding-right: 1.5rem;
        text-align: center;
        flex-direction: column;
        align-items: center;
        width: 100%; /* 300px */
    }

    .header-grid {
        margin: 0;
        padding: 0.75rem 0; /* 12px 0 12px 0 */
        max-width: 18.75rem;
    }

    .navbar-dark {
        margin: 0;
    }

    .nzta-logoL img {
        width: 6.8125rem; /* 109px */
        height: 1.5rem; /* 24px */
        padding: 0.75rem 0; /* 12px 0 */
        margin-left: 0;
    }

    .header-sitename {
        font-size: 0.75rem; /* 12px */
        width: 8.25rem; /* 132px */
        padding: 0 0 0 2.1875rem; /* 35px */
        height: 1.5rem; /* 24px */
    }

        .header-sitename:before {
            border-radius: 12.5rem; /* 200px */
            height: 3.75rem; /* 60px */
            left: -3.125rem; /* 50px */
            width: 4.375rem; /* 70px */
        }
}

@media (min-width: 18.75rem) and (max-width: 25rem) {
    .head-divider {
        width: 100%;
        border-bottom: 1px solid;
        border-color: #808080;
        margin-top: 0;
        margin-bottom: 1rem; /* 16px */
    }

    #mainContent {
        max-width: 100%;
        /*padding: 2.5rem 1.5rem;*/ /* 40px 24px */
        margin: 0;
        padding-top: 1rem !important;
    }

        #mainContent h1 {
            font-family: "Source Sans Pro";
            font-size: 1.75rem; /* 28px */
            font-style: normal;
            font-weight: 700;
            line-height: 2.125rem; /* 34px */
            margin: 0;
            color: #323232;
        }

        #mainContent h2 {
            font-family: "Source Sans Pro";
            font-size: 1.5rem; /* 24px */
            font-style: normal;
            font-weight: 700;
            color: #323232;
        }

        #mainContent h3 {
            font-family: "Source Sans Pro";
            font-size: 1.25rem; /* 20px */
            font-style: normal;
            font-weight: 700;
            padding-top: 0;
            margin-bottom: 1rem; /* 16px */
            padding-bottom: 0;
            color: #323232;
        }

        #mainContent h4 {
            font-family: "Source Sans Pro";
            font-size: 1.125rem; /* 18px */
            font-style: normal;
            font-weight: 700;
            line-height: 1.5rem; /* 24px */
            color: #323232;
        }

        #mainContent p {
            font-family: "Source Sans Pro";
            font-size: 1rem; /* 16px */
            font-style: normal;
            font-weight: 400;
            line-height: 1.5rem; /* 24px */
            margin-bottom: 1rem;
            padding-bottom: 0;
        }

        #mainContent .table-info {
            font-family: "Source Sans Pro";
            font-size: 1rem; /* 16px */
            font-style: normal;
            font-weight: 400;
            line-height: 1.5rem;
            margin-top: 0;
            padding-top: 0;
            margin-bottom: 1rem;
            padding-bottom: 0;
        }

    .form-container {
        width: 100%;
    }

    .wrapper {
        min-width: 100%;
    }
}

@media (min-width: 18.75rem) and (max-width: 25rem) {
    .footer {
        margin-left: auto;
        margin-right: auto;
        padding-left: 8.33%; /* 12px */
        padding-right: 8.33%;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem; /* 24px */
    }

    .footer-bottom {
        padding: 0;
        height: 15.4375rem; /* 247px */
        background-color: #003B5C;
    }

    .footer-grid {
        display: block;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 0.3125rem; /* 5px */
        max-width: 100%;
        margin: auto;
        padding: 1.5rem; /* 24px */
        align-items: center;
    }

    .footer-item:nth-child(1) {
        grid-column: span 1;
        justify-self: start !important;
        padding-top: 0.875rem; /* 14px */
        padding-bottom: 0;
    }

    .footer-item:nth-child(2) {
        grid-column: span 1;
        justify-self: start !important;
        padding-top: 1.5rem; /* 24px */
        padding-bottom: 0;
    }

    .footer-item:nth-child(3) {
        grid-column: span 1;
        justify-self: start !important;
        padding-top: 1rem; /* 16px */
        padding-bottom: 0;
    }

    .footer-item:nth-child(4) {
        grid-column: span 1;
        display: none;
    }

    .footer-item:nth-child(5) {
        grid-column: span 1;
        align-self: stretch;
        justify-self: start !important;
        padding-top: 1.5rem;
        padding-bottom: 0;
    }

    .footer-item {
        justify-content: center;
        padding: 0.3125rem 0; /* 5px 0 */
    }

    .footer-text {
        font-size: 0.625rem; /* 10px */
    }

    a.footer-links .footer-span {
        font-size: 0.875rem; /* 14px */
        padding-right: 0.25rem; /* 12px */
        padding-left: 0.25rem; /* 4px */
    }

    .i img {
        width: auto;
        height: 1.125rem; /* 18px */
    }

    .nzta-logo img,
    .nzgovt-logo img {
        width: auto;
        height: 2.5rem; /* 40px */
    }

    a.footer-links {
        color: #d2dfe9;
        font-family: "Source Sans Pro";
        font-size: 0.875rem; /* 14px */
        font-style: normal;
        font-weight: 400;
        line-height: 1.3125rem; /* 21px */
        letter-spacing: 0.015625rem; /* 0.25px */
        /*        text-decoration-line: underline;
        text-decoration-style: solid;
*/ text-decoration-skip-ink: none;
        text-decoration-thickness: auto;
        text-underline-offset: auto;
    }

    .footer-item:nth-child(6) {
        grid-column: span 1;
        display: none;
        font-size: 0.75rem; /* 12px */
        font-family: "Source Sans Pro";
    }

    .w-16,
    .w-33,
    .w-50 {
        width: 100%;
    }

    .row-span1,
    .row-span2,
    .row-divider {
        grid-column: span 1;
        margin: 0;
        padding: 0;
        border-bottom: none;
    }

    .options-button {
        display: block;
        gap: 0.75rem;
    }

    .footer-img-logo {
        margin-top: 1rem;
        justify-content: start;
        margin-bottom: 1rem;
        flex-direction: column
    }

    .footer-img {
        padding-top: 1rem;
        width: 50%;
    }

    .footer-hrline {
        display: none;
    }

    .options-button {
        display: block;
        gap: 0.75rem;
    }

    #btnPay {
        margin-bottom: 1rem;
    }

    .button1 {
        width: 100%;
    }

    .button2 {
        width: 100%;
    }
}

@media (min-width: 25.0625rem) and (max-width: 60em) {
    .html {
        height: 100%;
        margin: 0;
    }

    .wrapper {
        min-width: 100%;
    }

    .header {
        width: 100%; /* 400px */
        margin-left: 0;
        margin-right: 0;
        padding-left: 1.5rem; /* 24px */
        padding-right: 1.5rem;
        padding-top: 1.28rem;
        padding-bottom: 1.28rem;
        text-align: center;
        flex-direction: unset;
        align-items: center;
    }

    #nztaSiteHeader {
        margin-top: 1.28rem;
    }

    .navbar-dark {
        margin: 0;
    }

    .header-grid {
        margin: 0;
        padding: 0.75rem 0 0.75rem 0.75rem; /* 12px */
    }

    .header-sitename {
        font-size: 0.75rem; /* 12px */
        width: 12.1875rem; /* 195px */
        padding: 0 1.875rem 0 4.0625rem; /* 30px 65px */
    }
}

@media (min-width: 25.0625rem) and (max-width: 60em) {
    .head-divider {
        width: 100%;
        border-bottom: 1px solid #808080;
        margin-top: 0;
        margin-bottom: 1rem; /* 16px */
    }

    input[type="button"],
    .btn,
    .button1 {
        border-radius: 0.25rem; /* 4px */
        background-color: #236FA6;
        border-color: #236FA6;
        color: white;
        font-family: "Source Sans Pro";
        font-size: 1rem; /* 16px */
        font-style: normal;
        font-weight: 600;
        line-height: 1.5rem; /* 24px */
        display: flex;
        padding: 0.75rem 1.5rem; /* 12px 24px */
        justify-content: center;
        align-items: center;
        gap: 0.75rem; /* 12px */
        width: 100%;
    }

    .form-container {
        width: 100%;
    }

    #mainContent {
        max-width: 100%;
        padding: 2.5rem 1.5rem; /* 40px 24px */
        margin: 0;
    }

        #mainContent h1 {
            font-size: 1.75rem; /* 28px */
            font-style: normal;
            font-weight: 700;
            line-height: 2.125rem; /* 34px */
            margin: 0;
            color: #323232;
        }

        #mainContent h2 {
            font-family: "Source Sans Pro";
            font-size: 1.5rem; /* 24px */
            font-style: normal;
            font-weight: 700;
            color: #323232;
        }

        #mainContent h3 {
            font-family: "Source Sans Pro";
            font-size: 1.25rem; /* 20px */
            font-style: normal;
            font-weight: 700;
            padding-top: 0;
            margin-bottom: 1rem; /* 16px */
            padding-bottom: 0;
            color: #323232;
        }

        #mainContent h4 {
            font-family: "Source Sans Pro";
            font-size: 1.125rem; /* 18px */
            font-style: normal;
            font-weight: 700;
            line-height: 1.5rem; /* 24px */
            color: #323232;
        }

        #mainContent p,
        #mainContent .table-info {
            font-family: "Source Sans Pro";
            font-size: 1rem;
            font-style: normal;
            font-weight: 400;
            line-height: 1.5rem; /* 24px */
            margin-bottom: 1rem;
            padding-bottom: 0;
        }

    .footer {
        margin-left: auto;
        margin-right: auto;
        padding-left: 8.33%;
        padding-right: 8.33%;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem; /* 24px */
    }

    .footer-item {
        justify-content: center;
        padding: 0.3125rem 0; /* 5px */
    }

    .i img {
        width: auto;
        height: 1.3125rem; /* 21px */
    }

    .nzta-logo img,
    .nzgovt-logo img {
        width: auto;
        height: 2.5rem; /* 40px */
    }

    .options-button {
        display: block;
        gap: 0.75rem;
    }

    #btnPay {
        margin-bottom: 1rem;
    }

    .button2 {
        width: 100%;
    }

    .w-16,
    .w-33,
    .w-50 {
        width: 100%;
    }

    .row-span1,
    .row-span2,
    .row-divider {
        grid-column: span 1;
        margin: 0;
        padding: 0;
        border-bottom: none;
    }
}

@media (min-width: 62rem) and (max-width: 75rem) {
    .header {
        width: 100%;
        padding-left: 8.33%;
        padding-right: 8.33%;
    }

    .header-sitename {
        font-size: 0.875rem; /* 14px */
        width: 12.5rem; /* 200px */
        padding: 0 1.875rem 0 4.625rem; /* 0 30px 0 74px */
    }

    #mainContent {
        max-width: 100%;
        padding-left: 8.33%;
        padding-right: 8.33%;
        margin: 0;
    }

    .footer-item {
        padding: 0;
    }

    .i img {
        width: auto;
        height: 1.5rem; /* 24px */
    }

    .nzta-logo img,
    .nzgovt-logo img {
        width: auto;
        height: 2.5rem; /* 40px */
    }

    input[type="button"],
    .btn,
    .button1 {
        border-radius: 0.25rem; /* 4px */
        background-color: #236FA6;
        border-color: #236FA6;
        color: white;
        font-family: "Source Sans Pro";
        font-size: 1rem; /* 16px */
        font-style: normal;
        font-weight: 600;
        line-height: 1.5rem; /* 24px */
        display: flex;
        padding: 0.75rem 1.5rem; /* 12px 24px */
        justify-content: center;
        align-items: center;
        gap: 0.75rem; /* 12px */
    }
}

.alert {
    display: flex;
    max-width: fit-content;
    overflow: hidden;
    margin-bottom: 2rem !important;
}

.alert-left {
    background-color: #bc3832;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
}

    .alert-left .icon {
        background-color: #fff;
        color: #dc3545;
        font-weight: bold;
        font-size: 1.5rem;
        border-radius: 50%;
        width: 2rem;
        height: 2rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

.alert-right {
    background-color: #fff;
    padding: 1rem;
    flex-grow: 1;
    border: 0.5px solid #d1d5db;
    border-left: none;
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}

    .alert-right strong {
        display: block;
        margin-bottom: 0.1rem;
    }

.alert-success {
    display: flex;
    max-width: fit-content;
    overflow: hidden;
    margin-bottom: 2rem !important;
}

.alert-success-left {
    background-color: #06893a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
}

    .alert-success-left .icon {
        display: flex;
        align-items: center;
        justify-content: center;
    }

.payment-summary {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 1.5rem;
    max-width: 600px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.summary-item {
    display: flex;
    flex-direction: column;
}


.row {
    display: grid;
    grid-template-columns: 15rem 1fr;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0;
}

.label {
    color: #6b7280; /* gray-600 */
    margin-bottom: 0.25rem;
}

.nzta-logo {
    width: auto;
    height: 2.5rem;
}

.header-icon {
    width: auto;
    height: 2.5rem;
}

@media (min-width: 640px) {
    .summary-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .label {
        margin-bottom: 0;
    }
}

/* Hide by default */
.footer-browser,
.footer-mobile {
    display: none;
}


/* Small screens (<768px) */
@media (max-width: 991px) {
    .footer-mobile {
        display: block;
    }

    a.footer-links {
        color: #d2dfe9;
        font-family: "Source Sans Pro";
        font-size: 0.875rem; /* 14px */
        font-style: normal;
        font-weight: 400;
        line-height: 1.3125rem; /* 21px */
        letter-spacing: 0.015625rem; /* 0.25px */
        /*text-decoration-line: underline;*/
        text-decoration-style: solid;
        text-decoration-skip-ink: none;
    }

    .footer-img-logo {
        margin-top: 1rem;
        justify-content: start;
        margin-bottom: 1rem;
        flex-direction: column;
        gap: 0rem;
    }

    .footer-img {
        padding-top: 1rem;
        width: 50%;
    }

    .footer-hrline {
        display: none;
    }

    .footer-copyright {
        margin-bottom: 5px;
    }

    .footer-links + .footer-links {
        margin-top: 1rem; /* add top margin if it wraps to a new line */
    }
}

/* Medium and larger screens (≥768px) */
@media (min-width: 992px) {
    .footer-browser {
        display: block;
    }
}

/* Medium and larger screens (≥768px) */
@media (min-width: 667px) and (max-width: 991px) {
    .footer-img {
        width: 35%;
    }
}