﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.mudCard-Header-Help {
    background-color: #58595A;
    color: white;
    border-top-left-radius: 0px !important;
    border-top-right-radius: 0px !important;
}

.mudCard-Header-DrawerVoterAbroad {
    background-color: #D37C9C;
    color: white;
    border-top-left-radius: 0px !important;
    border-top-right-radius: 0px !important;
}

.mudCard-Header-DrawerVoter {
    background-color: #48C3B1;
    color: white !important;
}

.mudCard-Header-DrawerProfile {
    background-color: #62A60A;
    color: white !important;
}

.mudCard-Header-SpecialVotes {
    background-color: #00A0DF;
    color: #D4E5F5 !important;
}

.mudCard-Header-RegisterToVoteZA {
    background-color: #00A0DF;
    color: white !important;
}

.main_landing {
    /*background-image: url('../img/vp_banner_new.jpg');*/
    background-repeat: no-repeat;
    height:auto;
    background-size:cover;
    background-position: top right;
    width: 100%;
}

.main_landing_new {
    /*background-image: url('img/vp_banner_new.jpg');*/
    background-repeat: no-repeat;
    height: auto;
    background-size: cover;
    background-position: top right;
    width: 100%;
}

.subpage_voter_banner {
    background-color: #00a0df;
}

.margin_top {
    margin-top: 30px !important;
}

.margin_bottom {
    margin-bottom: 30px !important;
}

.jumbotron-fluid {
    padding-right: 0;
    padding-left: 0;
    border-radius: 0;
}

.homebannertop {
    font-size: 60px !important;
    margin-right: 300px !important;
}

.homebannermiddle {
    font-size: 120px !important;
    /*color: #28A745;*/
}

.homebannerbottom {
    font-size: 60px !important;
    margin-left: 300px !important;
}

.homebannertopnm {
    font-size: 60px !important;
}

.homebannerbottomnm {
    font-size: 60px !important;
}

.mud-grid-spacing-xs-3 > .mud-grid-item {
    padding: 4px;
}

.mud-input-control > .mud-input-control-input-container > .mud-input-label-inputcontrol {
    font-size: 1.2rem!important;
    font-weight: 410!important;
}

.mud-button-icon-size-large > *:first-child {
    font-size: 35px !important;
}



/*Sharon 31 October*/
.swal2-styled.swal2-confirm {
    background-color: #242E5B !Important;
    
}

.swal2-container {
    z-index: 300000 !important;
}


.swal2-html-container {
    z-index: 300000!important;
}

.text-info {
    color: #00A0DF !important;
}

/*to get rid of the horizontal scrollbar*/
.container-fluid {
    width: 100%;
    padding-right: 0px;
    padding-left: 0px;
    margin-right: auto;
    margin-left: auto;
    overflow:hidden;
}





@media only screen and (max-width: 768px) {

    .home_head {
        color: #ffffff !Important;
        text-shadow: 2px 2px #000000;
    }
    
    .shadow2 {
        box-shadow: none !important;
        margin-bottom: 20px !important;
    }

    .homebannertop {
        font-size: 30px !important;
        margin-right: 50px !important;
    }

    .homebannermiddle {
        font-size: 60px !important;
        /*color: #28A745;*/
    }

    .homebannerbottom {
        font-size: 30px !important;
        margin-left: 50px !important;
    }

    .homebannertopnm {
        font-size: 40px !important;
    }

    .homebannerbottomnm {
        font-size: 40px !important;
    }

    .mobile_height {
        height: 0px !important;
    }

    .mobile_height_20 {
        height: 20px !important;
    }

    .mobile_padding_20 {
        padding-top: 20px;
    }

    .mud-elevation-3 {
        box-shadow: none!important;
    }

    .forms_mobile {
        margin-left: 0px !important;
        margin-right: 0px !important;
        padding-left: 0px !important;
        padding-right: 0px !important;
        width: 100% !important;
    }

    .marginTop {
        margin-top: 30px!important;
    }

    .imgPreview {
        display: block;
        max-width: 400px;
        max-height: 240px;
        width: auto;
        height: auto;
    }

    .mud-typography-h4
    {
        font-size: 30px!important;
    }

    .mud-typography-h6 {
        font-size: 17px !important;
        padding-bottom: 5px!important;
    }

}

.jumbotron {
    padding: 2rem 1rem;
    margin-bottom: 2rem;
    background-color: #e9ecef;
    border-radius: 0rem;
}

@media (min-width: 576px) {
    .jumbotron {
        padding: 4rem 2rem;
    }
}

@media only screen and (max-width: 992px) {

    .home_head {
        color: #ffffff !Important;
        text-shadow: 2px 2px #000000;
    }
    .main_landing {
        background-color:white; /*this was aqua, i changed to white*/
        width: 100%;
    }

    .main_landing_new {
        background-color: white; /*this was aqua, i changed to white*/
        width: 100%;
    }


}

.mudCard-Header-Error {
    background-color: #F44336 !important;
    color: white;
}

.mudCard-Header-Warning {
    background-color: #FF9800 !important;
    color: white;
}

.mudCard-Header-Info {
    background-color: #2196F3 !important;
    color: white;
}

.mudCard-Header-Success {
    background-color: #00C853 !important;
    color: white;
}

.mudCard-Header-Tertiary {
    background-color: #006064 !important;
    color: white;
}

@media only screen and (min-width: 1024px) {
    /* Laptop */
   
    
    .margin_right_4 {
        margin-right: 30px !important;
    }

    h1 {
        font-size: 46px !important;
        font-weight: 300 !important;
    }

    .home {
        font-size: 66px !important;
        font-weight: 700 !important;
    }

    
}



@media only screen and (min-width: 1080px) {
   
    
    
    h1 {
        font-size: 46px !important;
        font-weight: 300 !important;
    }

    .home {
        font-size: 80px !important;
        font-weight: 700 !important;
    }

    .imgPreview {
        display: block;
        max-width: 640px;
        max-height: 480px;
        width: auto;
        height: auto;
    }
}

@media only screen and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation:portrait) {
    .home_head {
        color: #ffffff !Important;
        text-shadow: 2px 2px #000000;
    }
    
    .i_portrait {
        max-width: 128px !important;
    }

    .i_portraitLogo {
        max-width: 55px !important;
        margin-left: 20px !important;
    }

    .imargin_left {
        margin-left: 20px !important;
    }

    .home {
        font-size: 50px !important;
        font-weight: 500 !important;
    }

    .i_portraitSign {
        margin-right: 30px !important;
    }

    .iportraitAccount {
        max-width: 20px !important;
    }

    .btn {
        padding: .375rem .75rem !important;
    }

    .form-control-lg {
        height: 58px !important;
    }


   /* .form-control::placeholder {
        color: #c1c1c1 !important;
        font-size: 16px !important;
        font-weight: 300 !important;
        overflow: visible !important;
    }

    input::placeholder {
        overflow: visible !important;
    }*/

    .page_margin {
        padding-top: 70px !important;
    }

    .ipage_margin {
        padding-top: 70px !important;
    }

    .imargin {
        margin-left: 0px !important;
        margin-right: 0px !important;
    }

    .imgPreview {
        display: block;
        max-width: 640px;
        max-height: 480px;
        width: auto;
        height: auto;
    }

    .mud-button-filled, .mud-icon-button {
        padding: 10px !important;
    }

    .fancy-title::after {
        content: "ANOTHER TEXT ""\f072";
        color: violet;
        font-family: Fontawesome;
        background: linear-gradient(to right, #7ce5df 27%,#f1da36 100%);
        font-size: 18px;
        padding: 2px 4px;
        border: 1px solid;
    }
}



/*loading screen*/

.logo {
    width: 145px !important;
    margin-left: 3px;
}


:root {
    --accent-color1: #242E5B;
    --accent-color2: #242E5B;
    --accent-color3: #00A0DF;
    --accent-color4: #00A0DF;
}

.mud-ex-app-loader-loading-container .app-name {
    background: linear-gradient( 90deg,var(--accent-color1),var(--accent-color2),var(--accent-color3),var(--accent-color4));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes rotate-background {
    0% {
        transform: scale(1.5) rotate(0deg);
    }

    100% {
        transform: scale(1.5) rotate(360deg);
    }
}

.mud-ex-app-loader-loading-container {
    position: relative;
    overflow: hidden;
}

    .mud-ex-app-loader-loading-container::before {
        content: "";
        opacity: .15;
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background-image: linear-gradient(45deg, transparent 50%, var(--accent-color1) 50%), linear-gradient(135deg, transparent 50%, var(--accent-color2) 50%), linear-gradient(-135deg, transparent 50%, var(--accent-color3) 50%), linear-gradient(-45deg, transparent 50%, var(--accent-color4) 50%);
        background-blend-mode: screen;
        animation: rotate-background 30s linear infinite;
        z-index: -1;
    }


/*heading colors*/

h4 {
    color: #242E5B !important;
}

.home_head {
    color: #242E5B;
}

.navLinkDrawer a {
    color: #fff !important;
    font-size: 20px !important;
}

.navLinkDrawer a::after  {
    color: #fff !important;
    font-size: 20px !important;
}

.mud-nav-link .mud-nav-link-text {
    color: #fff !important;
}

/******Map control********/

.iec-map-popup-header {
    background-color: var(--mud-palette-info);
    color: var(--mud-palette-white);
}

.iec-map-popup-pin-icon {
    width: 25px;
}

.iec-popup-note {
    font-size: 0.85rem !important;
}

.iec-popup-note-contrast {
    color: var(--mud-palette-error) !important;
}

.iec-popup-button {
    background-color: var(--mud-palette-primary) !important;
    color: var(--mud-palette-white) !important;
    width: 150px;
    height: 40px;
}

.iec-popup-input > div > .mud-shrink ~ label {
    color: var(--mud-palette-info-darken) !important;
    font-size: 1rem !important;
    text-wrap: nowrap !important;
}

.iec-popup-input > div > :not(.mud-shrink) ~ label {
    color: var(--mud-palette-info-darken) !important;
    font-size: 0.94rem !important;
    text-wrap: nowrap !important;
}

.iec-popup-input > div > .mud-shrink > input {
    font-size: 0.94rem !important;
}

.iec-popup-input > div > .mud-shrink > textarea {
    font-size: 0.94rem !important;
    text-transform: uppercase;
}

.iec-popup-input-readonly {
    background-color: var(--mud-palette-info)
}

.iec-map-infobubble {
    background-color: #000000;
}

.iec-map-infobubble-body {
    color: white;
    text-align: left;
}

div:has(> .iec-map-message-header-normal) {
    background-color: var(--mud-palette-info);
    font-size: large;
    font-weight: bold;
}

div:has(> .iec-map-message-header-error) {
    background-color: var(--mud-palette-error);
    font-size: large;
    font-weight: bold;
}

div:has(> input[readonly]), div:has(> textarea[readonly]) {
    background-color: rgba(0,0,0,.09);
    border-top-left-radius: 4px;
    border-top-right-radius: 4px
}

div > textarea {
    text-transform: uppercase;
}

div[role="alert"] svg {
    font-size: 2.25rem !important;
    align-self: center !important;
}

div[role="alert"] div[class~="gap-3"] {
    gap: 0px !important;
}


@media screen and (max-width: 450px) {
    .vs-button-auto {
        padding-left: 4px !important;
        padding-right: 4px !important;
    }

    .vs-popup-auto {
        max-width: 100% !important;
        margin-left: 4px !important;
        margin-right: 4px !important;
        max-width: -webkit-fill-available !important;
        max-width: -moz-available !important;
    }
}

@media screen and (min-width: 451px) {
    .vs-button-auto {
        padding-left: 64px !important;
        padding-right: 64px !important;
    }

    .vs-popup-auto {
        max-width: 500px !important;
        margin-left: 14px !important;
    }
}

.mud-tab.mud-tab-active {
    background-color: var(--mud-palette-action-disabled) !important;
}

/******End Map Control******/
.text-success {
    color: #62A60A!important;
}

.mud-warning-text {
    color: #FFB718 !important;
}


/* Smaller, lighter placeholder text */
::placeholder {
    font-size: 0.875rem !important; /* 14px */
    opacity: 0.7;
    font-weight: 400;
}

/* MudBlazor uses ::-webkit-input-placeholder too */
::-webkit-input-placeholder {
    @extend ::placeholder;
}

::-moz-placeholder {
    @extend ::placeholder;
}

:-ms-input-placeholder {
    @extend ::placeholder;
}

:-moz-placeholder {
    @extend ::placeholder;
}
/* All MudStepper icons smaller */
.mud-stepper .mud-step-icon {
    font-size: 1.1rem !important;
    width: 1.1rem !important;
    height: 1.1rem !important;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Smaller stepper icons */
.stepper-sm .mud-step-icon {
    font-size: 1.1rem !important;
    width: 1.1rem !important;
    height: 1.1rem !important;
    min-width: 1.1rem !important;
}


/* HIDE WHEN NOT ACTIVE */
.address-finder-hidden {
    display: none !important;
}

/* FULL SCREEN MAP — 100% WORKING WITH AUTOCOMPLETE & CLICKABLE */
.address-finder-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: white;
}


/* This is the KEY — allows map & autocomplete to work */
.map-full-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    pointer-events: auto !important; /* ← ALLOWS CLICKS */
}

/* Make sure the map itself can receive events */
.address-map-itself {
    width: 100% !important;
    height: 100% !important;
    pointer-events: auto !important;
}


/* MudBlazor autocomplete needs high z-index */
.mud-popover-open {
    z-index: 10000 !important;
}


/* Close button — always clickable */
.map-close-btn {
    position: fixed !important;
    bottom: 32px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 2147483647 !important;
    /* RED BACKGROUND + WHITE TRIM */
    background: #d32f2f !important;
    border: 4px solid white !important;
    box-shadow: 0 8px 32px rgba(211, 47, 47, 0.6) !important;
    /* BIG & EASY TO TAP */
    width: 64px !important;
    height: 64px !important;
    border-radius: 50% !important;
    /* Make sure it's NOT aligned by any top constraints */
    top: auto !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease !important;
}

    .map-close-btn:hover,
    .map-close-btn:active {
        background: #b71c1c !important;
        transform: translateX(-50%) scale(1.1) !important;
        box-shadow: 0 12px 40px rgba(211, 47, 47, 0.8) !important;
    }

/* Mobile-specific fine-tuning */
@media (max-width: 768px) {
    .map-close-btn {
        bottom: 24px !important; 
        left: 50% !important;
        top: auto !important;
        transform: translateX(-50%) !important;
    }
}


/* SHOW SMOOTHLY + FULL CONTROL */
.address-finder-visible {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999;
    background: white;
    animation: slideUp 0.4s ease-out;
}

/* BEAUTIFUL SLIDE-UP ANIMATION */
@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

/* MAP CONTAINER — 100% RESPONSIVE */
.address-map-container {
    width: 100% !important;
    height: 100% !important;
    max-height: 100vh !important;
}

/* MOBILE: Make search bar smaller */
@media (max-width: 960px) {
    .address-map-container .mud-input-control {
        font-size: 14px !important;
    }

    .address-map-container .mud-input > input {
        padding: 12px 8px !important;
    }

    .address-map-container .mud-paper {
        margin: 8px !important;
    }

    .map-close-btn {
        top: 12px;
        right: 12px;
    }

}

/* Ensure map fills container */
#map, [id^="map_"] {
    width: 100% !important;
    height: 100% !important;
}

/* MAP DIALOGS ONLY — OTP & OTHER DIALOGS STAY NORMAL */
/* Only affects MudMessageBox dialogs — OTP stays normal */
/*.mud-dialog-container {
    z-index: 999999 !important;
}*/



/*******For Map*/


div:has(> input[readonly]), div:has(> textarea[readonly]) {
    background-color: rgba(0,0,0,.09);
    border-top-left-radius: 4px;
    border-top-right-radius: 4px
}

div > textarea {
    text-transform: uppercase;
}

div[role="alert"] svg {
    font-size: 2.25rem !important;
    align-self: center !important;
}

div[role="alert"] div[class~="gap-3"] {
    gap: 0px !important;
}

.iec-map-popup-header {
    background-color: #00A0DF;
    color: var(--mud-palette-white);
}

.iec-map-popup-pin-icon {
    width: 25px;
}

.iec-popup-note {
    font-size: 0.85rem !important;
}

.iec-popup-note-contrast {
    color: var(--mud-palette-error) !important;
}

.iec-popup-button {
    background-color: var(--mud-palette-primary) !important;
    color: var(--mud-palette-white) !important;
    width: 150px;
    height: 40px;
}

.iec-map-infobubble {
    background-color: #000000;
}

.iec-map-infobubble-body {
    color: white;
    text-align: left;
}

div:has(> .iec-map-message-header-normal) {
    background: linear-gradient(135deg, #1976d2, #42a5f5) !important;
    color: white !important;
    padding: 20px !important;
    border-radius: 16px 16px 0 0 !important;
    text-align: center !important;
    font-size: 1.4rem !important;
    font-weight: 600 !important;
}

div:has(> .iec-map-message-header-error) {
    background: linear-gradient(135deg, #d32f2f, #f44336) !important;
    color: white !important;
    padding: 20px !important;
    border-radius: 16px 16px 0 0 !important;
    text-align: center !important;
    font-size: 1.4rem !important;
    font-weight: 600 !important;
}

.mud-dialog .mud-dialog-content {
    font-size: var(--mud-typography-body1-size);
    font-family: var(--mud-typography-body1-family);
    font-weight: var(--mud-typography-body1-weight);
    line-height: var(--mud-typography-body1-lineheight);
    letter-spacing: var(--mud-typography-body1-letterspacing);
    text-transform: var(--mud-typography-body1-text-transform);
}

.mud-button-filled.mud-button-filled-dark {
    color: #ffffff !Important;
    background-color: #242E5B !Important;
}

.alert-message {
    width: fit-content;
    margin: 4px;
    align-items: center;
}

.mud-dialog .mud-dialog-title {
    background-color: var(--mud-palette-primary);
}


.map-region-label {
    position: relative;
    left: -50%;
    top: -8px;
    display: block;
    white-space: nowrap;
    border: none;
    color: darkblue;
    padding: 4px;
    z-index: 1000;
    font-size: 16px;
    font-weight: bold;
    background-color: #efefe540;
    border-radius: 4px;
    border: solid thin red;
}

@media screen and (max-width: 450px) {
    .vs-button-auto {
        padding-left: 4px !important;
        padding-right: 4px !important;
    }

    .vs-popup-auto {
        max-width: 100% !important;
        margin-left: 4px !important;
        margin-right: 4px !important;
        max-width: -webkit-fill-available !important;
        max-width: -moz-available !important;
    }
}

@media screen and (min-width: 451px) {
    .vs-button-auto {
        padding-left: 64px !important;
        padding-right: 64px !important;
    }

    .vs-popup-auto {
        max-width: 500px !important;
        margin-left: 14px !important;
    }
}

.mud-tab.mud-tab-active {
    background-color: var(--mud-palette-action-disabled) !important;
}


/* Make the message box content clean */
.map-dialog-fix .mud-dialog-content {
    padding: 24px !important;
    font-size: 1.1rem !important;
    text-align: center !important;
}


/* Big, beautiful buttons */
.map-dialog-fix .mud-button-filled {
    height: 56px !important;
    font-size: 20px !important;
    font-weight: 500 !important;
    border-radius: 12px !important;
}

/* NUCLEAR OPTION — ALWAYS ON TOP OF ANY MAP, DRAWER, OR OVERLAY */
/* MAP — full screen but low priority */
.address-map-itself {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important; /* Behind everything */
}

/* ONLY YOUR CUSTOM DIALOG WINS — NOTHING ELSE TOUCHED */
.ie-dialog-nuclear {
    z-index: 2147483647 !important; /* Nuclear win */
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    pointer-events: auto !important;
    box-shadow: 0 25px 80px rgba(0,0,0,0.6) !important;
    border-radius: 16px !important;
    max-width: 90vw !important;
}


/* PERFECT SWEETALERT2 FONT SIZE — IEC 2025 OFFICIAL FIX */
.swal2-popup {
    font-size: 15px !important; /* Base font — clean & readable */
}

.swal2-title {
    font-size: 20px !important; /* Title — bold but not huge */
    font-weight: 600 !important;
    color: #1e293b !important;
}

.swal2-html-container {
    font-size: 15.5px !important; /* Body text — perfect */
    line-height: 1.6 !important;
    color: #334155 !important;
}

.swal2-confirm {
    font-size: 15px !important;
    font-weight: 600 !important;
}

.swal2-cancel {
    font-size: 15px !important;
}


/*************DO and DONTS ON UPLOAD IDENTITY DOCUMENT**************/

/* Container stays centered on all devices */
.id-hints-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap; /* keep horizontal */
    margin-bottom: 20px;
}

/* Buttons thick, bold, equal size */
.id-hint-btn {
    min-width: 160px;
    height: 58px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    padding: 14px 22px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Popover styling */
.popover-paper {
    max-width: 360px;
    padding: 16px;
    border-radius: 6px;
}

/* Header with close button */
.popover-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

/* Borders */
.success-border {
    border: 2px solid var(--mud-palette-success);
    background: rgba(76, 175, 80, 0.10);
}

.error-border {
    border: 2px solid var(--mud-palette-error);
    background: rgba(244, 67, 54, 0.10);
}

/* ---- MOBILE FIX ---- */
/* Keep buttons horizontal but nicely spaced */
@media (max-width: 600px) {
    .id-hints-container {
        gap: 12px;
        justify-content: center;
    }

    .id-hint-btn {
        min-width: 145px;
        height: 56px !important;
    }
}


/* Outer container: always center area under the ID image */
.id-help-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 2rem;
}

/* Buttons row – stay horizontal, wrap only if really needed */
.id-help-buttons {
    display: flex;
    flex-wrap: wrap; /* lets them wrap on very small screens */
    gap: 1rem;
    justify-content: center; /* center on desktop & mobile */
}

/* Make buttons chunkier / taller */
.id-help-button {
    min-width: 180px;
    min-height: 56px; /* height bump */
    padding: 0.5rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 500;
}

/* Popover container – keep it tight around the content on desktop */
.id-help-popover {
    max-width: 380px; /* stops that huge white area */
}

    /* Make sure inner paper doesn’t stretch weirdly */
    .id-help-popover .mud-paper {
        max-width: 380px;
    }

/* Optional: on very small screens let it breathe a bit */
@media (max-width: 600px) {
    .id-help-popover,
    .id-help-popover .mud-paper {
        max-width: 90vw;
    }
}



/* Container: keep buttons side-by-side, centered, on all screens */
.do-dont-container {
    display: flex;
    justify-content: center; /* center on desktop */
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap; /* allows wrap if space is really tiny */
}

/* Each button + its popover is one vertical “column” */
.do-dont-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Make buttons thicker and prevent full-width stretch */
.do-dont-button.mud-button-root {
    min-width: 180px;
    height: 56px; /* increase height */
    padding-top: 10px;
    padding-bottom: 10px;
    width: auto; /* important so they don’t stretch to 100% on mobile */
}

/* Popover visual tweaks */
.popover-box {
    max-width: 360px;
}

.popover-content {
    border-radius: 6px;
}

/* Optional: colored borders to match your previous styles */
.success-border {
    border: 2px solid var(--mud-palette-success);
    background: rgba(76, 175, 80, 0.06);
}

.error-border {
    border: 2px solid var(--mud-palette-error);
    background: rgba(244, 67, 54, 0.06);
}

/********************************************/

/* HIDE Default blazor error */
#blazor-error-ui {
    display: none !important;
}



#blazor-error-ui.show {
    display: block;
}

/* Hide by default; shown via Blazor or your reconnectionHandler */
#blazor-error-ui {
    display: none;
}

.iec-conn-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px;
    z-index: 9999;
    font-family: Arial, sans-serif;
}

.iec-conn-card {
    max-width: 980px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-left: 6px solid #FF6B35; /* IEC orange accent */
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,.12);
    display: flex;
    gap: 14px;
    padding: 14px 16px;
    align-items: center;
}

.iec-conn-left {
    flex: 1;
}

.iec-conn-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.iec-conn-body {
    font-size: 13px;
    color: #374151;
    line-height: 1.35;
}

.iec-conn-tip {
    font-weight: 600;
}

.iec-conn-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.iec-btn {
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
}

.iec-btn-primary {
    background: #FF6B35;
    border-color: #FF6B35;
    color: #fff;
}

.iec-btn-secondary {
    background: #fff;
    border-color: #d1d5db;
    color: #111827;
}

.iec-conn-small {
    margin-top: 8px;
    font-size: 11px;
    color: #6b7280;
}

.iec-conn-right {
    color: #FF6B35;
    display: flex;
    align-items: center;
}

.iec-action-btn {
    width: 100%;
}

@media (min-width: 600px) {
    .iec-action-btn {
        width: 200px;
    }
}




