        /* ===== RESET & BASE STYLES ===== */
        * {
            box-sizing: border-box;
        }

        html {
            height: 100%;
            overflow-x: hidden;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }

        body {
            margin: 0;
            padding: 0;
            min-height: 100vh;
            overflow-x: hidden;
            -webkit-overflow-scrolling: touch;
            font-family: 'Roboto', 'Helvetica', 'Arial', sans-serif;
            background-color: #f5f5f5;
        }

        /* ===== LAYOUT STRUCTURE ===== */
        .row.justify-content-center {
            min-height: 100vh;
            margin: 0;
            padding: 0;
        }

        .col-xl-12,
        .col-lg-12,
        .col-md-12 {
            width: 100%;
            padding: 0;
        }

        .wrapper {
            min-height: 100vh;
            width: 100%;
            background-color: #fff;
            margin:0;
        }

        /* ===== HEADER STYLES ===== */
        .wizard__header {
            position: relative;
            padding: 40px 20px;
            min-height: 90px;
            background: linear-gradient(135deg, #ffffff 0%, #8a8a8a 100%);
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }

        .wizard__header-overlay {
            display: none;
        }

        .wizard__header-content {
            max-width: 1200px;
            margin: 0 auto;
        }

        .wizard__header .row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 15px;
        }

        .wizard__title {
            color: #fff;
        }

        .agencylogo {
            max-height: 50px;
            min-height: 40px;
            height: auto;
            width: auto;
            max-width: 200px;
        }

        .wizard__subheading {
            font-size: 15pt;
            font-weight: 500;
            color: #fff;
            margin: 0;
        }

        .header-banner {
            width: 40%;
            float: right;
        }

        /* ===== FORM CONTAINER ===== */
        .wizard__content {
            width: 100%;
        }

        .panels {
            min-height: calc(100vh - 90px);
            overflow: visible;
            padding: 20px;
        }

        .panel {
            min-width:100%;
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0px;
            background: #fff;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }

        /* ===== FORM STYLES ===== */
        /*.form-section {
            margin: 30px;
            padding: 20px;
            background: #fafafa;
            border-radius: 8px;
        }

        .form-group {
            margin-bottom: 2px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .form-group label {
            font-weight: 600;
            width: 120px;
            min-width: 120px;
            color: #333;
            font-size: 14px;
            flex-shrink: 0;
        }

        .form-group input,
        .form-group select {
            padding: 8px 10px;
            border: 2px solid #ddd;
            border-radius: 4px;
            font-size: 16px;
            transition: border-color 0.3s ease;
            background: #fff;
            width: 200px;
            flex-shrink: 0;
        }

        .form-group input[type="checkbox"] {
            min-width: auto;
            width: 18px;
            height: 18px;
            flex: none;
        }

        .form-group input:focus,
        .form-group select:focus {
            outline: none;
            border-color: #667eea;
        }

        .input-with-button {
            display: flex;
            align-items: center;
            gap: 10px;
        }*/

    /* ===== FORM STYLES ===== */
    .form-section {
        /* margin: 30px; */
        /* padding: 20px; */
        background: #fafafa;
        border-radius: 8px;
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        justify-content: space-between;
    }

    .form-group {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        flex: 1 1 calc(50% - 10px); /* 2 columns with gap */
        min-width: 250px;
        max-width: 100%;
        margin-bottom:0rem;
    }

    .form-group label {
        font-weight: 600;
        color: #333;
        font-size: 14px;
        margin-bottom: 0;
        width: 140px;
        min-width: 140px;
        flex-shrink: 0;
        text-align:right;
    }

    .form-group input,
    .form-group select {
        padding: 10px 12px;
        border: 2px solid #ddd;
        border-radius: 4px;
        font-size: 14px;
        transition: border-color 0.3s ease;
        background: #fff;
        flex: 1;
        min-width: 0; /* Allow input to shrink */
    }

        .form-group input[type="checkbox"] {
            width: 18px;
            height: 18px;
            flex: none;
            min-width: 18px;
        }

        .form-group input:focus,
        .form-group select:focus {
            outline: none;
            border-color: #667eea;
        }

    .input-with-button {
        display: flex;
        align-items: center;
        gap: 8px;
        flex: 1;
        min-width: 0;
    }

    .input-with-button input {
        flex: 1;
        min-width: 0;
    }

    .input-with-button .btn-sm {
        flex-shrink: 0;
        white-space: nowrap;
    }

    .input-with-button .btn-promo {
        min-width: 100px;
    }

    /* For the Business Number field with prefix */
    .form-group .input-group-text {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 12px;
        background-color: #d7d7d7 !important;
        border: 2px solid #ddd;
        border-right: none;
        border-radius: 4px 0 0 4px;
        font-weight: 600;
        height: 42px;
        min-width: 40px;
    }

    .form-group .input-group-text + input {
        border-radius: 0 4px 4px 0;
        margin-left: 0 !important;
    }


    /* For the Business Number field with prefix */
    .form-group .input-group-text {
        display: inline-block;
        padding: 8px 12px;
        background-color: #d7d7d7 !important;
        border: 2px solid #ddd;
        border-right: none;
        border-radius: 4px 0 0 4px;
        font-weight: 600;
        height: 42px;
        line-height: 1.5;
    }

    .form-group .input-group-text + input {
        border-radius: 0 4px 4px 0;
        margin-left: 0 !important;
        flex: 1;
    }

        /* ===== PRODUCT CARDS ===== */
        .products-wrapper {
            width: 100%;
            /* padding: 0 10px; */
        }

        .products-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
            gap: 20px;
            margin: 20px 0;
        }

        .product-card {
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            overflow: hidden;
            background: #fff;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        .product-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.12);
        }

        .product-header {
            padding: 15px 20px;
            background: #f8f9fa;
            border-bottom: 2px solid #e0e0e0;
        }

        .product-header label {
            font-size: 16px;
            font-weight: 600;
            margin: 0;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .product-buttons {
            display: flex;
            justify-content: center;
            padding: 15px;
            flex-wrap: wrap;
            gap: 8px;
        }


/*        .commodity-btn {
            padding: 10px 20px;
            border: 2px solid;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            text-transform: none;
            letter-spacing: 0;
            background: #fff;
        }

        .commodity-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        }
*/
.commodity-btn {
    padding: 10px 20px;
    border: 2px solid;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 100px; /* Ensures consistent button width */
}

    .commodity-btn span {
        display: block;
        /*width: 100%;*/
        text-align: center;
    }

    .commodity-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }  

        .product-price-row {
            border-top: 1px solid darkgray;
            min-height: 70px;
            text-align: center;
            font-weight: 600;
            color: #fff;
        }

        .product-price-content {
            padding: 0px;
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 70px;
        }

        .product-no-selection {
            font-size: 14pt;
        }

        .price-display {
            display: block;
            align-items: baseline;
            gap: 8px;
        }

        .price-large {
            font-size: 26pt;
        }

        .price-unit {
            font-size: 9pt;
        }

        .product-discount-row {
            border-top: 1px solid darkgray;
            min-height: 70px;
            text-align: center;
            font-weight: 600;
            background-color: darkgreen;
            color: white;
            padding: 15px;
        }

        .discount-content {
            font-size: 14px;
        }

        /* ===== ADDITIONAL INFO SECTIONS ===== */
        .info-section {
            border-top: 2px solid;
            padding: 5px 0;
            font-size: 10pt;
            padding-left: 15px;
        }

        .info-section-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 10px;
        }

        .info-section-header label {
            font-size: 14pt;
            font-weight: 600;
            margin: 0;
        }

        .info-section-content {
            padding-left: 20px;
        }

        .charity-select {
            width: 60%;
            margin: 15px 0;
        }

        /* ===== DROPZONE ===== */
        .dropzone-wrapper {
            margin: 20px 30px;
        }

        .dropzone {
            border: 2px dashed #ddd;
            border-radius: 8px;
            background: #848282;
            color: white;
            padding: 0;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            min-height: 50px;
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .dropzone:hover {
            border-color: #667eea;
            background: #6f6f6f;
        }

        .dropzone .dz-message {
            margin: 1.1em;
            font-size: 14px;
        }

        .dropzone .dz-preview {
            margin: 0;
        }

        .dropzone .dz-preview .dz-image {
            height: 50px;
        }

        .dropzone .dz-preview .dz-details {
            padding: 0;
        }

        .dropzone .dz-preview .dz-progress {
            margin-top: -30px;
        }

        /* ===== BUTTONS ===== */
        .btn {
            /* padding: 12px 24px; */
            border: none;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            height: 35px;
        }

        .btn:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        }

        .btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }

        .btn-primary {
            background-color: #667eea;
            color: #fff;
        }

        .btn-success {
            background-color: #28a745;
            color: #fff;
        }

        .btn-danger {
            background-color: #dc3545;
            color: #fff;
        }

        .btn-light {
            background-color: #f8f9fa;
            color: #333;
            border: 1px solid #ddd;
        }

        .btn-default {
            background-color: #e0e0e0;
            color: #333;
        }

        .btn-sm {
            padding: 8px 16px;
            font-size: 12px;
        }

        .btn-xs {
            padding: 6px 12px;
            font-size: 11px;
        }

        .btn-group {
            display: flex;
            gap: 8px;
            margin-bottom: 10px;
        }

        /* ===== TERMS & CONDITIONS ===== */
        .terms-section {
            margin: 30px;
            padding: 20px;
            background: #fff3cd;
            border: 2px solid #ffc107;
            border-radius: 8px;
            text-align: center;
        }

        .terms-section a {
            color: #0056b3;
            text-decoration: none;
            font-weight: 600;
        }

        .terms-section a:hover {
            text-decoration: underline;
        }

        .terms-checkbox {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            margin-top: 15px;
            cursor: pointer;
        }

        .terms-checkbox input[type="checkbox"] {
            width: 18px;
            height: 18px;
            cursor: pointer;
        }

        .terms-checkbox span {
            color: darkred;
            font-weight: 600;
        }

        .submit-section {
            width: 100%;
            text-align: center;
            margin: 20px 0;
        }

        .md-dialog-container {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            width: 100vw;
            height: 100vh;
            height: 100dvh;
            display: flex !important;
            justify-content: center !important;
            /* CHANGED: Use flex-start and an explicit padding-top for better behavior when content overflows */
            align-items: flex-start !important;
            z-index: 10000;
            background-color: rgba(0,0,0,0.5);
            padding: 20px;
            /* ADDED: Provides a margin from the top of the viewport */
            padding-top: 5vh;
            visibility: visible !important;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            transform: translateZ(0);
            -webkit-transform: translateZ(0);
        }

/*added*/
        body.modal-open {
            /* CHANGED: Removed position: fixed to prevent scroll reset/stuck issue on Safari */
            position: relative;
            height: 100%;
            overflow: hidden;
            width: 100%;
        }
        md-dialog {
            position: relative !important;
            top: auto !important;
            left: auto !important;
            right: auto !important;
            bottom: auto !important;
            margin: auto !important;
            transform: none !important;
            background: #fff;
            border-radius: 8px;
            box-shadow: 0 8px 32px rgba(0,0,0,0.2);
            max-width: 500px;
            width: 100%;
            max-height: 80vh !important;
            height: auto !important;
            overflow-y: auto;
            padding: 20px;
        }

        .modal-content {
            max-height: 750px;
            width: 300px;
            min-height: 350px;
            overflow-y: auto;
        }

        .modal-content-large {
            max-height: 900px;
            height: 900px;
            width: 320px;
            overflow-y: auto;
        }

        .close-btn,
        .btn-close,
        .dialog-close {
            position: absolute;
            top: 10px;
            right: 15px;
            background: none;
            border: none;
            font-size: 22px;
            line-height: 1;
            color: #666;
            cursor: pointer;
            transition: color 0.2s;
            padding: 0;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10;
        }

        .close-btn:hover,
        .btn-close:hover,
        .dialog-close:hover {
            color: #000;
        }

        .dialog-content {
            padding-top: 40px;
        }

        .dialog-title {
            margin: 0 0 15px 0;
            font-size: 18px;
            font-weight: 600;
            color: #333;
        }

        .solar-dialog {
            max-width: 600px;
        }

        .solar-table {
            width: 100%;
            margin-top: 15px;
        }

        .solar-table tr {
            display: block;
            margin-bottom: 15px;
        }

        .solar-table td {
            display: block;
            padding: 20px;
        }

        .row-content {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .col-left,
        .col-right {
            width: 100%;
        }

        .col-left .title {
            font-size: 20px;
            font-weight: 600;
        }

        .col-left .rate {
            font-size: 28px;
            font-weight: 700;
        }

        .col-right ul {
            list-style: disc;
            padding-left: 20px;
            margin: 0;
        }

        .col-right li {
            margin-bottom: 10px;
            display: list-item;
        }

        /* ===== ADDRESS DIALOG STYLES ===== */
        .address-radio-group {
            width: 85%;
            margin: 0 0 15px 0;
            border: 1px solid black;
            padding: 10px;
        }

        .address-search {
            width: 77%;
        }

        .address-results {
            max-height: 190px;
            overflow: auto;
            width: 250px;
            border: 2px solid black;
            background-color: lightyellow;
            padding: 10px;
            margin: 15px 0;
        }

        .smallbox {
            margin: 10px 5px;
        }

        .smallbox input {
            width: 100%;
        }

        /* ===== SUCCESS MESSAGE ===== */
        #congrats-message,
        #removal-message {
            text-align: center;
            padding: 40px 20px;
            max-width: 800px;
            margin: 0 auto;
        }

        .wizard__congrats-message {
            font-size: 24px;
            font-weight: 400;
            color: #28a745;
            line-height: 1.6;
            width: 80%;
            margin: 0 auto;
            opacity: 1;
        }

        .completion-details {
            font-size: 14px;
            text-align: left;
            max-width: 600px;
            margin: 20px auto;
        }

        .completion-details ul {
            list-style: disc;
            padding-left: 20px;
        }

        .completion-details li {
            margin-bottom: 5px;
            display: list-item;
        }

        #barcode {
            text-align: center;
            margin: 20px 0;
        }

        #barcode img {
            max-width: 100%;
            height: auto;
        }

        /* ===== UTILITY CLASSES ===== */
        .padding-0 {
            padding: 0 !important;
        }

        .hidePanel {
            display: none !important;
        }

        .text-center {
            text-align: center;
        }

        .float-right {
            float: right;
        }

        .tab {
            margin-left: 30px;
        }

        .subheader {
            line-height: 1.4;
            color: #6f6f6f;
            font-weight: normal;
            margin-top: 0.2rem;
            margin-bottom: 0.5rem;
        }

        /* ===== ANGULAR MATERIAL OVERRIDES ===== */
        md-input-container {
            margin: 15px 0;
        }

        md-input-container:not(.md-input-invalid) .md-errors-spacer {
            display: none !important;
        }

        .md-errors-spacer {
            min-height: 0 !important;
        }

        md-input-container md-select .md-select-value {
            min-height: 15px;
        }

        #promo md-input-container .md-placeholder,
        md-input-container label:not(.md-no-float):not(.md-container-ignore) {
            transform-origin: left bottom;
        }

        md-radio-button.md-default-theme.md-checked .md-off,
        md-radio-button.md-checked .md-off {
            border-color: rgba(10,10,10,0.87);
        }

        md-radio-button .md-default-theme .md-on,
        md-radio-button .md-on {
            background-color: rgba(10,10,10,0.87);
        }

        .autocomplete-custom-template .md-autocomplete-suggestion {
            border-bottom: 1px solid #ccc;
            height: auto;
            width: 100%;
            padding-top: 8px;
            padding-bottom: 8px;
            white-space: normal;
        }

        .row.date > .column,
        .row.date > .columns {
            padding-left: 0.1rem;
            padding-right: 0.1rem;
        }

        @media (min-width: 768px) {
            .wrapper {
                width: 70%;
                margin-left: auto;
                margin-right: auto;
            }
        }

        /* ===== RESPONSIVE BREAKPOINTS ===== */
/*        @media (max-width: 1024px) {
            .products-container {
                grid-template-columns: 1fr;
            }

            .header-banner {
                width: 100%;
                float: none;
            }
        }

        @media (max-width: 768px) {
            .wizard__header {
                padding: 20px 15px;
                min-height: auto;
            }

            .wizard__header .row {
                flex-direction: column;
                text-align: center;
            }

            .wizard__subheading {
                text-align: center;
                font-size: 15pt;
            }

            .header-banner {
                width: 100%;
            }

            .panels {
                padding: 10px;
            }

            .panel {
                padding: 10px;
            }

            .form-section,
            .terms-section,
            .dropzone-wrapper {
                margin: 15px;
            }

            .form-group label {
                width: 100px;
                min-width: 100px;
                font-size: 13px;
            }

            .form-group input,
            .form-group select {
                width: calc(100% - 110px);
                min-width: 150px;
            }

            .products-container {
                grid-template-columns: 1fr;
                gap: 15px;
            }

            .commodity-btn {
                font-size: 13px;
                padding: 8px 16px;
            }

            .modal-content,
            .modal-content-large {
                width: 100%;
                max-width: 90vw;
            }

            md-dialog {
                max-width: 95vw;
                max-height: 85vh !important;
                padding: 15px;
            }

            .md-dialog-container {
                padding: 10px;
                align-items: flex-start !important;
                padding-top: 5vh;
            }

            .charity-select {
                width: 100%;
            }

            .address-search {
                width: 100%;
            }

            .address-results {
                width: 100%;
            }
        }

        @media (max-width: 480px) {
            .wizard__header {
                padding: 15px 10px;
            }

            .agencylogo {
                max-height: 40px;
            }

            .wizard__subheading {
                font-size: 11pt;
            }

            .form-section,
            .terms-section,
            .dropzone-wrapper {
                margin: 10px;
                padding: 15px;
            }

            .form-group label {
                font-size: 12px;
                width: 90px;
                min-width: 90px;
            }

            .form-group input,
            .form-group select {
                padding: 8px 10px;
                font-size: 13px;
                width: calc(100% - 100px);
                min-width: 120px;
            }

            .btn {
                padding: 10px 20px;
                font-size: 13px;
            }

            .price-large {
                font-size: 22pt;
            }

            .commodity-btn {
                padding: 6px 12px;
                font-size: 12px;
            }

            .products-container {
                grid-template-columns: 1fr;
            }
        }
*/
/* ===== RESPONSIVE BREAKPOINTS ===== */
/* ===== RESPONSIVE BREAKPOINTS ===== */
@media (max-width: 1024px) {
    .products-container {
        grid-template-columns: 1fr;
    }

    .header-banner {
        width: 100%;
        float: none;
    }

    .form-group {
        flex: 1 1 100%; /* Single column on tablets */
    }
}

@media (max-width: 768px) {
    .wizard__header {
        padding: 20px 15px;
        min-height: auto;
    }

        .wizard__header .row {
            flex-direction: column;
            text-align: center;
        }

    .wizard__subheading {
        text-align: center;
        font-size: 15pt;
    }

    .header-banner {
        width: 100%;
    }

    .panels {
        padding: 10px;
    }

    .panel {
        padding: 10px;
    }

    .form-section {
        margin: 15px;
        padding: 15px;
    }

    .form-group {
        flex: 1 1 100%; /* Single column on mobile, label beside input */
        min-width: 100%;
    }

        .form-group label {
            width: 110px;
            min-width: 110px;
            font-size: 13px;
        }

    .products-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .commodity-btn {
        font-size: 13px;
        padding: 8px 16px;
    }

    .modal-content,
    .modal-content-large {
        width: 100%;
        max-width: 90vw;
    }

    md-dialog {
        max-width: 95vw;
        max-height: 85vh !important;
        padding: 15px;
    }

    .charity-select {
        width: 100%;
    }

    .address-search {
        width: 100%;
    }

    .address-results {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .wizard__header {
        padding: 15px 10px;
    }

    .agencylogo {
        max-height: 40px;
    }

    .wizard__subheading {
        font-size: 11pt;
    }

    .form-section {
        margin: 10px;
        padding: 0px;
        gap: 10px;
    }

    .form-group {
        gap: 8px;
    }

        .form-group label {
            width: 95px;
            min-width: 95px;
            font-size: 12px;
        }

        .form-group input,
        .form-group select {
            font-size: 13px;
            padding: 8px 10px;
        }

    .btn {
        /* padding: 10px 20px; */
        font-size: 12px;
    }

    .price-large {
        font-size: 20pt;
    }

    .commodity-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .products-container {
        grid-template-columns: 1fr;
    }

    .input-with-button .btn-promo {
        min-width: 90px;
        font-size: 11px;
        padding: 8px 12px;
    }

    .header-banner {
        text-align: center;
    }
}

/* For very wide screens, keep it at 2 columns max */
@media (min-width: 1400px) {
    .form-group {
        flex: 1 1 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
}

        /* ===== PRINT STYLES ===== */
        @media print {
            .wizard__header,
            .btn,
            .dropzone {
                display: none;
            }

            .panel {
                box-shadow: none;
                border: 1px solid #ddd;
            }
        }

        /* ===== ACCESSIBILITY ===== */
        *:focus-visible {
            outline: 2px solid #667eea;
            outline-offset: 2px;
        }

        /* ===== ANIMATIONS ===== */
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .panel {
            animation: fadeIn 0.4s ease-out;
        }

        /* ===== SCROLLBAR STYLING ===== */
        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }

        ::-webkit-scrollbar-track {
            background: #f1f1f1;
        }

        ::-webkit-scrollbar-thumb {
            background: #888;
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: #555;
        }

        /* shared style for all dialogs */
        /*#solardialog,
        #telusdialog,
        #addressdialog {
            position: fixed !important;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            display: flex !important;
            justify-content: center;
            align-items: center;
            background: rgba(0,0,0,0.45);*/ /* semi-transparent backdrop */
            /*z-index: 10000;
        }*/

        /* inner content (actual dialog box) */
        /*#solardialog > .dialog-content,
        #telusdialog > .dialog-content,
        #addressdialog > .dialog-content {
            background: #fff;
            border-radius: 10px;
            width: 90%;
            max-width: 480px;
            padding: 20px;
            box-shadow: 0 6px 25px rgba(0,0,0,0.35);
        }*/

        #solardialog,
        #telusdialog,
        #addressdialog {
            position: fixed !important;
            top: 0;
            left: 0;
            width: 100dvw; /* dynamic viewport width */
            height: 100dvh; /* dynamic viewport height – respects Safari bars */
            display: flex !important;
            justify-content: center;
            align-items: center;
            background: rgba(0,0,0,0.45);
            z-index: 10000;
        }

        #solardialog > .dialog-content,
        #telusdialog > .dialog-content,
        #addressdialog > .dialog-content {
            background: #fff;
            border-radius: 10px;
            width: 90%;
            max-width: 480px;
            padding: 20px;
            box-shadow: 0 6px 25px rgba(0,0,0,0.35);
        }

        /* optional backdrop overlay for clarity */
        .dialog-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.4);
            z-index: 9999;
        }

        .wrapper,
        .panels,
        .panel,
        .wizard__content {
            transform: none !important;
            perspective: none !important;
            overflow: visible !important;
        }

/* ===== ADDRESS AUTOCOMPLETE DROPDOWN STYLES ===== */
        .address-autocomplete-wrapper {
            position: relative;
            width: 100%;
            margin: 0; /* Ensure no extra margin */
        }

        .search-input-wrapper {
            position: relative;
            display: flex;
            align-items: center;
            width: 96%;
            margin: 0; /* Remove any margin */
        }


.address-autocomplete-input {
    width: 100% !important;
    padding: 10px 40px 10px 12px !important;
    border: 2px solid #ddd !important;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.address-autocomplete-input:focus {
    outline: none;
    border-color: #667eea !important;
}

.dropdown-icon {
    position: absolute;
    right: 12px;
    color: #666;
    pointer-events: none;
    font-size: 14px;
}

        .address-dropdown {
            position: absolute;
            top: calc(100% + 4px); /* 4px gap */
            left: 0;
            right: 0;
            margin-top: 0 !important; /* Override any inherited margin */
            background: #fff;
            border: 1px solid #ddd;
            border-radius: 6px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            max-height: 300px;
            overflow-y: auto;
            z-index: 1000;
            pointer-events: auto;
        }

.dropdown-searching {
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.dropdown-searching i {
    margin-right: 8px;
}

.dropdown-results {
    padding: 8px 0;
}

.dropdown-result-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-result-item:last-child {
    border-bottom: none;
}

.dropdown-result-item:hover {
    background: #f8f9fa;
}

.result-address {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    margin-bottom: 6px;
}

.result-sites {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.site-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #f0f0f0;
    border-radius: 12px;
    font-size: 11px;
    color: #666;
}

.site-badge i {
    font-size: 12px;
}

.site-badge .fa-fire {
    color: #ff6b6b;
}

.site-badge .fa-plug {
    color: #ffd93d;
}

.dropdown-no-results {
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 13px;
    line-height: 1.6;
}

.dropdown-no-results i {
    display: block;
    font-size: 24px;
    margin-bottom: 10px;
    color: #999;
}

.address-helper-text {
    margin-top: 8px;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

/* ===== ALERT STYLES ===== */
.alert {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-radius: 8px;
    margin: 20px 30px;
    font-size: 14px;
    line-height: 1.6;
}

.alert-warning {
    background: #fff3e0;
    border: 1px solid #ffb74d;
    color: #e65100;
}

.alert-icon {
    flex-shrink: 0;
}

.alert-icon i {
    font-size: 24px;
    color: #ff9800;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 15px;
}

.alert-message {
    font-size: 13px;
}

.alert-message a {
    color: #1976d2;
    text-decoration: none;
    font-weight: 600;
}

.alert-message a:hover {
    text-decoration: underline;
}

/* ===== SELECTED ADDRESS CARDS ===== */
.selected-addresses-container {
    margin: 20px 30px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.selected-address-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.card-address-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.card-delete-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.card-delete-btn:hover {
    background: #ffebee;
    color: #d32f2f;
}

.card-delete-btn i {
    font-size: 16px;
}

.card-content-row {
    display: flex;
    align-items: flex-start;
}

.card-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: default;
    width: 100%;
    margin: 0;
}

.card-checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    width: 20px;
    height: 20px;
    cursor: default;
}

.checkbox-visual {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    background: #fff;
    flex-shrink: 0;
    margin-top: 2px;
}

.card-commodity-info {
    flex: 1;
}

.commodity-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.commodity-row i {
    font-size: 16px;
}

.commodity-row .fa-fire {
    color: #ff6b6b;
}

.commodity-row .fa-plug {
    color: #ffd93d;
}

.commodity-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.site-id-row {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.high-usage-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #fff3e0;
    border-radius: 4px;
    font-size: 12px;
    color: #e65100;
    font-weight: 500;
}

.high-usage-badge i {
    color: #ff9800;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .selected-addresses-container {
        margin: 15px;
    }

    .btn-promo {
        height: 55px;
        margin-top: 5px;
    }

    .alert {
        margin: 15px;
        flex-direction: column;
    }

    .alert-icon {
        text-align: center;
    }
}

        .card-commodity-list {
            width: 100%;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .card-checkbox-label {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            cursor: default;
            width: 100%;
            margin: 0;
            padding: 10px;
            background: #f8f9fa;
            border-radius: 6px;
            border: 1px solid #e9ecef;
        }

            .card-checkbox-label:hover {
                background: #f1f3f5;
            }

        /* Force hide old address dialog */
        #addressDialog {
            display: none !important;
            visibility: hidden !important;
        }

        /* Prevent ARIA issues with dropdowns */
        .address-dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            margin-top: 4px;
            background: #fff;
            border: 1px solid #ddd;
            border-radius: 6px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            max-height: 300px;
            overflow-y: auto;
            z-index: 1000;
            pointer-events: auto;
        }

.tw-toggle {
    /* background: #95A5A6; */
    display: flex;
    align-items: center;
    height: 40px;
    padding: 2px 3px;
    border-radius: 50px;
    position: relative;
    border: 2px solid #777;
    margin: 0;
    flex-wrap: nowrap;
    width: 310px;
    margin-left: auto;
    margin-right: auto;
}

	.tw-toggle label {
		text-align: center;
		font-family: sans-serif;
		display: inline-block;
		color: #777;
		position: relative;
		z-index: 2;
		margin: 0;
		text-align: center;
		padding: 2px 0;
		font-size: 15px;
		/* cursor: pointer; */
		width: 100px
	}

	.tw-toggle input {
		/* display: none; */
		height: 40px;
		margin: 0;
		position: absolute;
		z-index: 3;
		opacity: 0;
		cursor: pointer;
		width: 100px
	}

	.tw-toggle span {
		height: 32px;
		width: 95px;
		line-height: 40px;
		border-radius: 50px;
		background: #fff;
		display: block;
		position: absolute;
		left: 22px;
		top: 2px;
		transition: all 0.3s ease-in-out;
	}

	.tw-toggle input[value="false"] {
		left: 3px;
	}

	.tw-toggle input[value="-1"] {
		left: 103px;
	}

	.tw-toggle input[value="true"] {
		left: 203px;
	}

	.tw-toggle input[value="false"]:checked ~ span {
		background: #e74c3c;
		left: 3px;
		color: #fff;
	}

    .tw-toggle input[value="true"]:checked ~ span {
        background: #e74c3c;
        left: 203px;
    }

    .tw-toggle input[value="-1"]:checked ~ span {
        background: #e74c3c;
        left: 103px;
    }

	.tw-toggle input[value="false"]:checked + label, .tw-toggle input[value="true"]:checked + label {
		color: #fff;
	}

	.tw-toggle input[value="-1"]:checked + label {
		color: #fff;
	}

    .tw-toggle input[value="2"]:checked + label {
        color: #fff;
    }

	/* Solar (value="2") input position — desktop */
	.tw-toggle input[value="2"] {
		left: 309px;
	}

/* Mobile overrides — placed AFTER base styles so they win on specificity order */
@media (max-width: 480px) {
    .tw-toggle label {
        width: 75px !important;
        font-size: 14px !important;
        padding: 1px 0;
    }

    .tw-toggle input {
        width: 75px !important;
        height: 34px;
    }

    .tw-toggle span {
        width: 78px !important;
        height: 32px;
    }

    /* Re-anchor input hit areas for mobile slot size (75px each, starting at 3px) */
    .tw-toggle input[value="false"]  { left: 3px; }
    .tw-toggle input[value="-1"]     { left: 78px; }
    .tw-toggle input[value="true"]   { left: 153px; }
    .tw-toggle input[value="2"]      { left: 228px; }
}
