
#spinLoading {
    width: 100% !important;
}

/* Fix for any tables */
table {
    width: 100% !important;
    max-width: 100% !important;
}

/* Form elements wrapper for proper sizing */
/*div[style="display: inline-block; vertical-align: top"] {*/
/*    width: 100% !important;*/
/*    display: block !important;*/
/*}*/

/* Fix form row layouts */
div.row {
    flex-direction: column;
}

/* Touch-friendly radio buttons */
.mdc-radio {
    padding: 10px 5px;
}

.container .sc-nav__login-open-btn {
    position: static;
}

/* Improve button tap targets */
.sc-nav__login-open-btn a {
    min-height: 44px;
    line-height: 44px;
    padding: 0 15px;
}

.grid-row>.grid-col-5-md{
    max-width: calc(100% - 32px) !important;
}

.arrow{
    border: none !important;
}

div#form6 div div:not(.customerDob):not(.sc-nav__login-open-btn div)  {
    margin-bottom: 8px;
}


/* Fix for iOS input zoom */
@media screen and (max-width: 767px) {

    .button-container a {
        margin: 5px 5px;
    }

    .dd-dataholder span {
        white-space: normal !important;
    }

    div#form6 div div:not(.customerDob) {
        width: 100%;
    }

    .container .sc-nav__login-open-btn {
        float: none !important;
    }

    input[type="text"],
    input[type="number"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    select {
        font-size: 16px !important;
    }
}

/* Responsive modal fix for all screen sizes */
.swal2-container {
    padding: 10px !important;
}

/* Add flex layout to body to ensure footer stays at bottom */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

@media screen and (max-width: 767px) {
    body {
        overflow-x: hidden;
    }

    .container {
        width: 100%;
        padding: 0 10px;
    }

    .grid-row {
        flex-direction: column;
    }

    .grid-col-12, .grid-col-4-md, .grid-col-5-md, .grid-col-6-md, .grid-col-8-md {
        width: 100%;
        max-width: 100%;
        flex-basis: 100%;
    }

    .mdc-text-field, .mdc-select, .mdc-slider, .img-container, .mdc-select__anchor, .mdc-notched-outline {
        width: 100% !important;
        max-width: 100% !important;
    }

    #mdcIDNumber, input.mdc-text-field__input {
        width: 100% !important;
    }

    .mdc-notched-outline {
        width: 100% !important;
    }

    .u-padding-top-large-md {
        padding-top: 20px !important;
    }

    .u-padding-bottom-large-md {
        padding-bottom: 20px !important;
    }

    h2 {
        font-size: 24px !important;
        line-height: 30px !important;
    }

    hr {
        width: 100% !important;
    }

    #customerIDRow, #form1 div:not(.mdc-radio__background):not(.mdc-radio), #form2 div:not(.mdc-radio__background):not(.mdc-radio), #form3 div:not(.mdc-radio__background):not(.mdc-radio), #manualButtonRow, #buttonRow {
        width: 100% !important;
        max-width: 100% !important;
    }

    .o-button {
        width: 100%;
        display: block;
        margin: 0;
    }

    .sc-nav__nav .sc-nav__login-open-btn a {
        max-width: 80px;
        min-height: 30px !important;
        font-size: 14px !important;
        line-height: 25px !important;
    }

    .header-font-size {
        font-size: 1.1rem !important;
    }

    .image-container {
        text-align: center;
    }

    .image-container img {
        max-width: 100%;
        height: auto;
    }

    .c-header__logo {
        max-width: 120px;
    }

    .c-header__toggle {
        right: 5px;
    }

    /* Form adjustments for mobile */
    .grid-col-12.grid-col-5-md {
        min-height: auto !important;
        padding: 20px 15px !important;
    }

    .mdc-form-field {
        width: 100% !important;
        margin-bottom: 15px;
    }

    /* Make select dropdowns full width */
    .mdc-select, .mdc-select__anchor {
        width: 100% !important;
    }

    /* Fix sweetalert popups on mobile */
    .swal2-popup {
        width: 90% !important;
        max-width: 90% !important;
        font-size: 16px !important;
    }

    /* Adjust calculator container for mobile */
    .calculator_container .calculator_content {
        width: 100% !important;
        margin: 20px auto 0 auto !important;
    }

    .calculator_container .text_content div:first-child {
        font-size: 22px !important;
        line-height: 26px !important;
    }

    /* Make sliders responsive */
    .calculator_container .calculator_content .slider_section .slider_container div {
        width: calc(100% - 50px) !important;
    }

    /* Prevent horizontal overflow */
    .strip {
        padding-bottom: 30px;
        padding-top: 30px;
        width: 100% !important;
        overflow-x: hidden;
    }

    /* Mobile header improvements */
    .mobile-navigation {
        display: flex;
        width: 100%;
    }

    .mobile-navigation__header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 10px;
    }

    /* Fix loading screen on mobile */
    .fullscreensilk {
        width: 100% !important;
        height: 100% !important;
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
    }

    @media screen and (max-width: 1500px) {
        html {
            display:inline-block !important;
            width:100% !important;
        }
    }
}

/* Additional responsive styles for mobile */
/* Fix for hero image on mobile */
@media only screen and (max-width: 767px) {
    .hero-card-art-2-content {
        background-size: cover !important;
        background-position: center center !important;
        min-height: 200px !important;
    }

    .showcase-wrapper .showcase-item {
        margin-bottom: 20px;
    }

    .image-container {
        justify-content: center !important;
    }

    .grid-row {
        display: flex;
        flex-direction: column;
    }

    .tabs-2 li {
        width: 100%;
        margin-bottom: 10px;
    }

    .tabs-2 li a {
        width: 100%;
        display: block;
        text-align: center;
    }

    /* Calculator container responsive fixes */
    .calculator_container {
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
    }

    .calculator_container img {
        max-width: 100%;
        height: auto;
    }

    /* Grid layout fixes */
    .grid-col-12 {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Fix for sticky nav on mobile */
    .sticky-nav-content-actions {
        flex-direction: column;
        align-items: center;
    }

    .sticky-nav-actions {
        margin-bottom: 10px;
    }

    /* Fix for cards being too small on mobile */
    .showcase-wrapper.columns-4 .showcase-item {
        width: 100% !important;
        float: none !important;
        margin-bottom: 10px;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .showcase-item .showcase-inner {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        height: auto !important;
        min-height: 140px !important;
        padding: 10px 0 !important;
    }

    .showcase-item .showcase-media-inner {
        width: 100% !important;
        text-align: center !important;
        margin-bottom: 10px !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    .showcase-item .showcase-media {
        background-size: contain !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        height: 100px !important;
        width: 100px !important;
        display: inline-block !important;
    }

    .showcase-item .showcase-content {
        height: auto !important;
        min-height: auto !important;
        padding: 0 !important;
        text-align: center !important;
        width: 100% !important;
    }

    .showcase-item .showcase-content h4.title-s {
        font-size: 15px !important;
        line-height: 1.2 !important;
        margin-bottom: 3px !important;
    }

    .showcase-item .showcase-content h6 {
        font-size: 13px !important;
        line-height: 1.2 !important;
        margin: 0 !important;
    }
}

/* Safari-specific fixes */
@supports (-webkit-touch-callout: none) {
    input[type="range"] {
        -webkit-appearance: none;
    }

    input[type="range"]::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 25px;
        height: 25px;
        background: var(--primary-light-color);
        border-radius: 12.5px;
        cursor: pointer;
    }

    .hero-card-art-2-content {
        -webkit-background-size: cover !important;
    }

    /* Fix for Range inputs on iOS */
    input[type="range"]::-webkit-slider-runnable-track {
        height: 5px;
        border-radius: 2.5px;
        background: #d3d3d2;
    }

    /* Fix for button appearance on iOS */
    .btn {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }
}

/* Fix for responsive tabs */
.responsive-tab .tabs-2 {
    display: flex;
    flex-direction: row;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    justify-content: center;
}

.responsive-tab .tabs-2 li {
    width: auto;
    margin: 0 5px;
    flex: 1;
    max-width: 50%;
}

.responsive-tab .tabs-2 li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 45px;
    padding: 0 15px;
    text-align: center;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 15px;
    line-height: 1.3;
}

.responsive-tab .tabs-2 li a:hover,
.responsive-tab .tabs-2 li a.active {
    background: var(--primary-regular-color);
    color: #fff;
    border-color: var(--primary-regular-color);
}

.responsive-tab .tabs-2 li a .tab-link-text {
    display: block;
    font-size: 13px;
    line-height: 1.3;
}

@media (max-width: 767px) {
    .responsive-tab .tabs-2 {
        flex-wrap: wrap;
    }

    .responsive-tab .tabs-2 li {
        width: 100%;
        margin: 0 0 5px 0;
    }

    .responsive-tab .tabs-2 li a {
        height: 50px;
        font-size: 15px;
    }
}

.hero-card-art-2-content {
    background-size: cover !important;
    background-position: 22% center !important;
    background-repeat: no-repeat !important;
    width: 100% !important;
    position: relative !important;
    overflow: hidden !important;
    height: auto !important;
    min-height: 300px;
}

@media screen and (min-width: 768px) {
    .hero-card-art-2-content {
        min-height: 350px !important;
        background-position: 22% center !important;
    }
}

@media screen and (min-width: 992px) {
    .hero-card-art-2-content {
        min-height: 400px !important;
        background-position: 22% center !important;
    }
}

@media screen and (min-width: 1200px) {
    .hero-card-art-2-content {
        min-height: 450px !important;
        background-position: 22% center !important;
    }
}

@media screen and (max-width: 768px) {
    .mar-tp {
        margin-top: 0px !important;
    }
    .hero-card-art-2-text {
        margin-top: 0px !important;
    }
}
.mar-rt-lt {
    margin-right: 15% !important;
    margin-left: 15% !important;
}
@media only screen and (max-device-width:375px){
    .mar-rt-lt {
        margin-right: 7%;
        margin-left: 7%;
    }
}

@media only screen and (max-device-width:414px){
    .clr-blue{
        color: #fff !important;
        margin-bottom: 57px !important;
    }
}

@media only screen and (min-device-width:415px) {
    .clr-blue{
        color: #032f5e !important;
        margin-bottom: 57px !important;
    }
}