html {
    scroll-behavior: smooth;
}
/* Default (desktop and larger screens) */
#logo {
    width: auto;
    height: 100px;
    margin: 0 10px;
}

/* Mobile (screen width 991px and below) */
@media screen and (max-width: 991px) {
    #logo {
        height: auto;
        width: 50px;
    }
}

.static-top.navbar .menu-bar>.navbar-nav>li>a:hover {
    text-decoration: none !important;
}

.nav-link {
    position: relative;
    padding-bottom: 4px;
    /* spacing above the animated line */
    font-family: "Open Sans" !important;
    font-size: 1rem !important;
    display: inline-block;
    /* make width match text only */
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;

    width: 0%;
    height: 4px;
    /* thickness of underline */
    background: #000;
    /* color of underline */
    transition: width 0.3s ease-in-out;
}

.nav-link:hover::after {
    width: 100%;
    visibility: unset !important;
}

.nav-item .dropdown-toggle::after {
    visibility: hidden;
}

/* Dropdown menu styling */
.dropdown-menu {
    background-color: #ffffff !important;
    border: 1px solid #ddd !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    border-radius: 0 !important;
    padding: 0 !important;
    font-family: "Open Sans", sans-serif !important;
}

/* Dropdown items */
.dropdown-menu .dropdown-item {
    color: var(--bs-dark) !important;
    /* makes text-secondary */
    font-family: "Open Sans", sans-serif !important;
    padding: 10px 15px;
    font-size: 1rem !important;
}

/* Hover effect */
.dropdown-menu .dropdown-item:hover {
    background-color: #f8f9fa !important;
    color: var(--bs-secondary) !important;
    padding: 10px 15px;
    font-size: 1rem !important;
    color: #ffffff !important;
    background-color: #323130 !important;
}

/* .dropdown-menu > li:first-child,
.dropdown-menu > .dropdown-divider:first-of-type {
    display: none !important;
} */

table.section {
    width: 100%;
    border-collapse: collapse;
}

/* Hide empty spacer cells */
table.section .zero-cell {
    display: none;
}

/* Responsive layout for small screens */
@media screen and (max-width: 768px) {

    table.section,
    table.section tbody,
    table.section tr,
    table.section td {
        display: block;
        width: 100% !important;
    }

    table.section tr {
        margin-bottom: 15px;
    }

    table.section .cell {
        box-sizing: border-box;
        width: 100% !important;
        padding: 0 15px;
    }

    /* Ensure inputs take full width */
    table.section .control input,
    table.section .control select,
    table.section .control textarea {
        width: 100% !important;
        box-sizing: border-box;
    }

    /* Adjust labels */
    table.section .table-info label {
        display: block;
        margin-bottom: 4px;
        font-weight: 500;
    }
}

fieldset h3 {
    font-size: 2rem !important;
    padding-left: 15px !important;
}

fieldset h2 {
    font-size: 2.5rem !important;
}

#faqbtn {
    margin-top: 15px !important;
}

button {
    font-size: 1rem !important;
    border-radius: 0px !important;
}

.panel {
    padding: 20px 30px;
    background: #eef1ef;
    margin-bottom: 1rem;
}

.black-panel {
    transition: 0.3s ease-in-out all;
    padding: 20px;
    background: #1c2321;
    margin-bottom: 1rem;
}

a.button,
a.Button {
    padding: 1rem 4rem 1rem 1.4rem !important;
    background: #1c2321;
    text-decoration: none;
    color: #fff;
    text-align: left;
    position: relative;
    transition: all 0.3s ease-in-out;
    display: inline-block;
    box-shadow: none !important;
    font-weight: 400;
    width: auto;
    margin-left: 0px !important;
}

/* Add right arrow */
a.button::after,
a.Button::after {
    content: "›";
    /* right arrow */
    position: absolute;
    right: 1.4rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    line-height: 1;
}


/* Tablet */
@media screen and (max-width: 991px) {
    fieldset h3 {
        font-size: 1.75rem !important;
        padding-left: 15px !important;
    }

    fieldset h2 {
        font-size: 2.25rem !important;
    }

    select {
        width: 100% !important;
    }

    #aipmDefinition p {
        font-size: 20px !important;
    }

    #faqbtn {
        margin-top: 15px !important;
    }

    button {
        font-size: 1rem !important;
    }
}

/* Mobile */
@media screen and (max-width: 600px) {
    fieldset h3 {
        font-size: 1.5rem !important;
        padding-left: 15px !important;
    }

    fieldset h2 {
        font-size: 2rem !important;
    }

    select {
        width: 100% !important;
    }

    td .control {
        width: auto !important;
    }

    td.picklist-cell .control select {
        min-width: 75px;
    }

    .control span.checkbox input[type="checkbox"] {
        transform: scale(1.5);
    }

    .table-info:has(> #aipm_privacystatementterms_label) {
        padding-left: 0;
    }

    #aipmDefinition p {
        font-size: 20px !important;
    }
}

/* Hide the table headers on small screens */
@media screen and (max-width: 768px) {
    table.cart-items-regpm thead {
        display: none;
    }

    /* Make each row block */
    table.cart-items-regpm tbody tr {
        display: block;
        margin-bottom: 1em;
        border: 1px solid #ccc;
        padding: 0.5em;
        border-radius: 6px;
    }

    /* Make each cell display as block */
    table.cart-items-regpm tbody td {
        display: block;
        padding: 0.3em 0;
        position: relative;
        width: 100%;
    }

    /* Add labels before each cell based on class */
    table.cart-items-regpm tbody td.item-description::before {
        content: "Item: ";
        font-weight: bold;
    }

    table.cart-items-regpm tbody td.item-subtotal::before {
        content: "Subtotal: ";
        font-weight: bold;
    }

    table.cart-items-regpm tbody td.item-gst::before {
        content: "GST: ";
        font-weight: bold;
    }

    table.cart-items-regpm tbody td.item-amount::before {
        content: "Total Amount: ";
        font-weight: bold;
    }
}

/* Responsive row layout for both cart tables */
@media screen and (max-width: 768px) {

    /* Hide table headers */
    table.cart-items thead {
        display: none;
    }

    /* Make each row block */
    table.cart-items tbody tr {
        display: block;
        margin-bottom: 1em;
        border: 1px solid #ccc;
        padding: 0.5em;
        border-radius: 6px;
    }

    /* Make each cell block */
    table.cart-items tbody td {
        display: block;
        padding: 0.8em;
        position: relative;
        width: 100%;
    }

    /* Add labels before each cell based on class */
    table.cart-items tbody td.item-description::before {
        content: "Item: ";
        font-weight: bold;
    }

    table.cart-items tbody td.item-subtotal::before {
        content: "Subtotal: ";
        font-weight: bold;
    }

    table.cart-items tbody td.item-gst::before {
        content: "GST: ";
        font-weight: bold;
    }

    table.cart-items tbody td.item-amount::before {
        content: "Total Amount: ";
        font-weight: bold;
    }
}