.connector-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 500; /* above tiles */
}

/* Tablets */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Increase controls size */
    .leaflet-draw-toolbar a {
        width: 44px;
        height: 44px;
        padding: 8px;
        box-sizing: content-box;
        background-size: auto;
    }
    .leaflet-control-zoom a {
        width: 44px;
        height: 44px;
        padding: 8px;
        box-sizing: content-box;
        background-size: auto;
    }
    .leaflet-touch .leaflet-bar a, .leaflet-touch .leaflet-toolbar-0 > li > a {
        width: 44px;
        height: 44px;
        font-size: 20px;
        line-height: 45px;
        background-size: 314px 30px;
    }

    /* Align icons centered in controls */
    .leaflet-touch .leaflet-draw-toolbar.leaflet-bar a {
        background-position-y: 6px;
    }
}

/* General */
:root {
    --primary-color: #214B41;
    --secondary-color: #6BAB8B;
    --beige-color: rgb(42, 172, 110);
}

html, body {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    overflow-x: hidden; /* prevents horizontal scrolling */
}

body {
    font-family: 'Montserrat', Helvetica, Arial, sans-serif;
    height: 100vh;
}

.no-select {
    user-select: none; /* Standard */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
}

.nav-link {
    text-decoration: none;
    transition: text-decoration 0.3s ease;
}

.nav-link:hover {
    text-decoration: underline;
    text-decoration-color: #154A38;
    text-decoration-thickness: 2px; 
    text-underline-offset: 4px;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.content-wrapper {
    flex-grow: 1; 
}

.content {
    padding: 1rem;
}

/* Typography  */
h1 {
    color: #154A38;
    font-weight: bold;
}

@font-face {
    font-family: "JetBrainsMono-regular";
    src: url('../fonts/jetbrainsmono/JetBrainsMono-Regular.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: "JetBrainsMono-medium";
    src: url('../fonts/jetbrainsmono/JetBrainsMono-Medium.woff2') format('woff2');
    font-display: swap;
}
.jet-brains-mono-font {
    font-family: JetBrainsMono-medium, sans-serif;
}

@font-face {
    font-family: 'Inter';
    src: url('/fonts/inter/Inter-VariableFont_opsz,wght.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

.inter-font {
    font-family: 'Inter', Helvetica, Arial, sans-serif;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/fonts/montserrat/Montserrat-VariableFont_wght.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* leaflet popup - case objects*/
/* Popup trash button style */
.mo-trash {
    background-color: #e74c3c; /* red background */
    color: white;
    border: none;
    border-radius: 50%; /* makes it perfectly round */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 0.3rem;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 18px;
    padding: 0.5rem;
    transition: background-color 0.2s ease;
}

.mo-trash:hover {
    background-color: #c0392b; /* darker on hover */
}

.mo-popup {
    font-size: 18px;
    display: inline-flex;
    flex-direction: column;
    width: fit-content;
}

.mo-row {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.leaflet-container a.leaflet-popup-close-button {
    width: 36px !important;
    height: 36px !important;
    font-size: 30px !important;
    line-height: 36px !important;
}

.leaflet-popup-content-wrapper {
    width: fit-content;
    max-width: none;
}

.leaflet-popup-content {
    width: fit-content;
    margin: 8px 10px;
}


.form-check-input:checked {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Buttons */
a, .btn-link {
    color: #006bb7;
}

.btn-primary-theme {
    color: #fff;
    background-color: #154A38;
    border: none;
    border-radius: 10px;
    min-height: 2.8rem;
    line-height: 1.2rem;
    padding: 0.5rem 1rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    white-space: normal;
    font-family: Montserrat;
    letter-spacing: 0.8px;
    font-size: small;
    transition: box-shadow 0.2s ease;
}

.btn-primary-theme:hover {
    background-color: #0b3023;
    border-color: #0b3023;
    color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important;
}

.btn-primary-theme:focus {
    outline: none;
    box-shadow: none;
}

.btn-secondary-theme {
    color: #fff;
    background-color: #6BAB8B;
    border: none;
    border-radius: 10px;
    min-height: 2.8rem;
    line-height: 1.2rem;
    padding: 0.5rem 1rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    white-space: normal;
    font-size: small;
    font-family: Montserrat;
    letter-spacing: 0.8px;
    transition: box-shadow 0.2s ease;
}

.btn-secondary-theme:hover {
    background-color: #4b8769;
    border-color: #4b8769;
    color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn-secondary-theme:focus {
    outline: none;
    box-shadow: none;
}

.circle-btn {
    border: none;
    padding: 0;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
}

#languageDropdown {
    color: #fff;
    background-color: #f9f9f9;
    border-color: #333;
    border-radius: 10px;
    height: 2.8rem;
    line-height: 1.8rem;
    padding: 0 1rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    white-space: nowrap;
    font-size: small;
    transition: box-shadow 0.2s ease;
}

#languageDropdown:hover {
    background-color: #cdcdcd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#languageDropdown:focus {
    outline: none;
}

.exit-btn {
    -webkit-appearance: none;
    appearance: none;
    color: #555;
    font-size: 25px;
    height: 2rem;
    width: 2rem;
    line-height: 1;
    border-style: solid;
    border-color: #cdcdcd;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    text-align: center;
    display: inline-flex;
    transition: all 0.2s ease;
}

    .exit-btn:hover {
        background-color: #cdcdcd;
        border-color: #999;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }

/* Tablets */
@media (min-width: 768px) and (max-width: 1024px) {
    .exit-btn {
        height: 44px;
        width: 44px;
        font-size: 22px;
    }
}
/* Positions button to the right */
.button-container {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

/* Status icons */
.status-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
    margin-left: 0.5rem;
}
/* Striped variant: uses CSS vars for colors */
.status-icon.striped {
    background-image: repeating-linear-gradient( -45deg, var(--stripe-light) 0px, var(--stripe-light) 4px, var(--stripe-dark) 4px, var(--stripe-dark) 8px );
    border: 1px solid var(--stripe-border);
}

.notsent {
    background-color: #E8A66B;
    border: 1px solid #B98455;
}

.awaitingresult {
    background-color: #CCB68A;
    border: 1px solid #A3916E;
}

.safe {
    background-color: #6AA76A;
    border: 1px solid #548554;
}

.safe-striped {
    background-image: repeating-linear-gradient( -45deg, #e5e5e5 0px, #e5e5e5 4px, #bfbfbf 4px, #bfbfbf 8px );
    border: 1px solid #999;
}

.hazardous {
    background-color: #D14D4D;
    border: 1px solid #A73D3D;
}

.remedied {
    background-color: #CCB68A;
    border: 1px solid #A3916E;
}

/* Hazardous material status colors */
.asbestos {
    --stripe-light: #9c2f41;
    --stripe-dark: #7C2534;
    --stripe-border: #7C2534;
    background-color: #9c2f41;
    border: 1px solid #7C2534;
}

.pcb {
    --stripe-light: #3c50ba;
    --stripe-dark: #304094;
    --stripe-border: #304094;
    background-color: #3c50ba;
    border: 1px solid #304094;
}

.pah-oils {
    --stripe-light: #8B4513;
    --stripe-dark: #6F370F;
    --stripe-border: #6F370F;
    background-color: #8B4513;
    border: 1px solid #6F370F;
}

.chlorinated-paraffins-phtalates {
    --stripe-light: #e0d15c;
    --stripe-dark: #B3A749;
    --stripe-border: #B3A749;
    background-color: #e0d15c;
    border: 1px solid #B3A749;
}

.chromium-vi {
    --stripe-light: #808080;
    --stripe-dark: #666666;
    --stripe-border: #666666;
    background-color: #808080;
    border: 1px solid #666666;
}

.other {
    --stripe-light: #A9A9A9;
    --stripe-dark: #878787;
    --stripe-border: #878787;
    background-color: #A9A9A9;
    border: 1px solid #878787;
}

/* Loading component */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top-color: #4b8769;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Home */
.home-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: clamp(2rem, 5vw, 6rem);
    max-width: 100%;
    padding: 1rem;
    padding-top: 3rem;
    max-width: 100%;
}

.home-content {
    padding-left: 2rem;
}

#home-text {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: left;
    box-sizing: border-box;
    max-height: 0;
    transition: max-height 0.3s ease-in-out;
}

.home-content h1 {
    font-weight: 800;
}

#home-text.show {
    display: block;
    max-height: 1000px;
}

/* Right column that holds the floorplan */
.visual {
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-end;
}

.floorplan {
    position: relative;
    display: inline-block;
    inline-size: min(70vw, 48rem); /* responsive width cap */
}

#home-image {
    display: block;
    width: 100%;
    height: auto;
    z-index: 0;
}

.sampling-card,
.line {
    position: absolute;
}

/* Placed using percentages (responsive) */
.sampling-card {
    top: var(--top);
    left: var(--left);
    transform: translate(-50%, -50%);
    background-color: #f9f9f9;
    padding: 1.5rem;
    border: 1px solid #154A38;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
    z-index: 2; /* above image, above lines */
    width: 15rem;
}

.sampling-card:hover {
    box-shadow: 0 8px 12px rgba(0,0,0,0.3);
}

.sampling-card img {
    width: auto;
    height: 50px;
    display: block;
    position: relative;
}

.s-image-container {
    position: relative; /* new */
    display: inline-block; /* optional but often nice */
}

.sampling-icon {
    position: absolute;
    top: 1px;
    right: 5px;
    z-index: 15;
}

.sampling-icon-text .fa-icon {
    font-size: 1rem;
    color: black;
    flex: 0 0 auto;
}

.sampling-icon-text {
    display: flex;
    align-items: start;
    margin-bottom: 1rem
}

.sampling-icon-text p {
    margin: 0;
    margin-left: 0.5rem;
}

.sampling-icon-text img {
    margin-left: 0.5rem;
}

/* Lines use vars as well */
.line {
    top: var(--top);
    left: var(--left);
    width: var(--w, 20%);
    height: 4px;
    border-radius: 10px;
    background-color: #4b8769;
    transform: rotate(var(--rot, 0deg));
    transform-origin: left center;
    z-index: 1;
}

/* For the whole section not to stretch too wide */
.section-wrapper {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 1rem;
}

/*  */
#company-presentation {
    margin-top: 5rem;
    padding-left: 0;
    padding-right: 0;
    max-width: 100%
}

#company-presentation-product {
    margin-top: 5rem;
    padding-left: 0;
    padding-right: 0;
    max-width: 100%
}

#about-text-home {
    flex: 2;
    max-width: 40rem;
}

#about-list-home {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5rem;
}

#about-list-home .btn-item:last-child .btn-round::after {
    display: none;
}

/* Archus prize section */
#archus-prize {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    background-color: #333;
}

/* ----- Left side ----- */
#archus-prize .left-prize-wrapper {
    display: grid;
    grid-template-areas: "stack";
    height: 100%;
    padding: 15px;
    color: #fff;
}

#archus-prize .logo {
    grid-area: stack;
    place-self: start;
}

#archus-prize .logo img {
    max-width: 100px;
    height: auto;
    display: block;
}

#archus-prize .text {
    grid-area: stack;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    flex-wrap: wrap;
    color: white;
}

#archus-prize .text h2 {
    color: #fff;
    margin: 0;
    font-weight: 700;
}

/* ----- Right side ----- */
#archus-prize .prize-group img {
    display: block;
    max-width: 100%;
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    /* Stack the two columns */
    #archus-prize {
        grid-template-columns: 1fr;
        flex-direction: column;
        text-align: center;
    }

        #archus-prize .left-prize-wrapper {
            grid-template-rows: auto auto;
            padding: 5px;
            justify-items: center;
        }

        #archus-prize .logo img {
            max-width: 50px;
        }

        #archus-prize .text {
            padding: 2rem 1rem 2rem 1rem;
            justify-content: center;
            align-items: center;
        }

        /* Center blow the text */
        #archus-prize .prize-group img {
            width: 100%;
            margin: 0;
        }

        #archus-prize .prize-group img {
            width: 100%;
            height: auto;
        }
}
/* Tablets */
@media (max-width: 1024px) and (min-width: 769px) {
    #archus-prize .logo img {
        max-width: 50px;
        between desktop and tablet size
    }
}

@media(max-width: 760px) {
    .home-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }

    .home-content {
        max-width: 100%;
        padding-left: 0;
    }

    .visual {
        margin-left: 0;
        justify-content: center;
        width: 100%;
    }

    .floorplan {
        inline-size: 100%;
    }

    .sampling-card {
        width: clamp(12rem, 50vw, 16rem);
    }

    #s-card-1 {
        --top: 50% !important;
        --left: 30% !important;
    }

    #s-card-2 {
        display: none;
    }

    #s-card-3 {
        display: none;
    }

    .line-2 {
        display: none;
    }

    #about-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 1rem;
    }

    #about-text-home {
        width: 100%;
        ;
        margin-bottom: 2rem;
    }

    #about-list-home {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
    }

    .btn-item {
        text-align: center;
    }

    h5 {
        font-size: 1rem;
        line-height: 1.2rem;
    }

    #company-presentation {
        margin-top: 0rem;
    }
}

/* Solution section */
.bg-solution {
    background-color: #154A38;
}

.solution-title-text {
    font-weight: 700;
    color: #154A38;
    margin-bottom: 2rem;
}

.left-content h2 {
    margin-left: 0rem;
}

@media (min-width: 992px) {
    .left-content h2 {
        margin-left: 10rem;
    }
}

/* Product card */
.product-container {
    margin-top: 6rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 6rem;
    margin: auto;
}

.product-card {
    width: 22rem;
    height: 24rem;
    border-radius: 0.625rem;
    border: none;
    overflow: hidden;
}

.product-card h3 {
    font-family: JetBrainsMono-medium;
}

.product-card p {
    color: #333333de;
    font-weight: 400;
}

.product-card-img {
    max-height: 3rem;
}

.card-body {
    position: relative;
}

.product-card-bottom-row {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
}

.product-button-container {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
}

#guide-card {
    filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.2));
}

#inventory-card {
    filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.2));
}

#building-card {
    filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.2));
}

#material-card {
    filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.2));
}

.product-detail {
    padding-bottom: 5rem;
}

.bg-product {
    background-color: #F0FFF6;
    max-width: 100%;
    height: auto;
    overflow: hidden;
}

@media (max-width: 760px) {
    .product-container {
        margin-top: 1rem;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .product-card {
        width: 18rem;
        height: 26rem;
    }

    .product-card-img {
        max-height: 3rem;
    }

    .bg-product {
        padding-top: 50px;
        min-height: 100vh;
        height: auto;
    }
}

/* Logo showcase slide */
#logo-slide-section {
    margin-top: 6rem;
}

.logo-slide-title {
    font-weight: 700;
    color: #154A38;
    margin-bottom: 4rem;
}

.logo-slide-container {
    margin-block: 32px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.logo-slide {
    display: flex;
    gap: 6.25rem;
    padding: 3rem 3.125rem;
}

.logo-wrapper img {
    height: 3.75rem;
    object-fit: contain;
    transform: scale(1.2);
    transition: transform 0.3s ease;
}

.slider-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 8rem;
    background: linear-gradient(to right, #fff 0%, #fff 40%, transparent 100%);
    z-index: 2;
}

.slider-right {
    position: absolute;
    top: 0;
    left: 0;
    width: 8rem;
    background: linear-gradient(to left, #fff 0%, #fff 40%, transparent 100%);
    z-index: 2;
}

.slider-track {
    display: flex;
    width: fit-content;
}

@media (max-width: 760px) {
    .logo-wrapper img {
        height: 24px;
    }

    .logo-slide {
        padding: 24px 32px;
        gap: 60px;
    }
}


/* Product page */
.product-detail-text,
.about-detail-text {
    padding-right: 12rem;
}

@media (max-width: 1024px) {
    .product-detail-text,
    .about-detail-text {
        padding-right: 0rem;
    }
}

/* About MIRA */
.person-presentation-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.person-presentation-container img {
    border-radius: 50%;
    width: 7rem;
    height: 7rem;
    overflow: hidden;
    object-fit: cover;
}

.person-presentation-container .stacked-text {
    display: flex;
    flex-direction: column;
    font-family: JetBrainsMono-medium;
    padding-left: 1.5rem;
}

.about-methods-container {
    padding: 1rem;
    padding-top: 7rem;
    padding-bottom: 10rem;
}

#about-section h1 {
    margin-top: 2rem;
    padding-left: 1rem;
}

#about-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4rem;
    margin-top: 2rem;
}

#about-text {
    flex: 2;
    max-width: 40rem;
}

.about-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.about-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5rem;
}

.about-lists {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 9rem;
}

.about-wrapper h3 {
    text-align: center;
    margin: 2rem;
    font-weight: 700;
    color: #154A38;
}

/*.btn-round {
flex-shrink: 0;
position: relative;
color: #fff;
background-color: #154A38;
border: 2px solid #154A38;
border-radius: 50%;
height: 3rem;
width: 3rem;
transition: box-shadow 0.3s ease;
}*/

.btn-round {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
    cursor: default;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-round.trad {
    background-color: #6BAB8B;
}

.btn-round.mira {
    background-color: #6BAB8B;
    color: #154A38;
    font-size: 16px;
    position: relative;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-block;
    overflow: visible;
}

/* check mark icon */
.btn-round.mira .fa-icon {
    position: absolute;
    top: 40%;
    left: 65%;
    transform: translate(-50%, -85%) scale(2.8);
    font-size: 12px;
    line-height: 1;
    z-index: 2;
}

.about-list .btn-item:last-child .btn-round::after {
    display: none;
}

ul.about-green-list {
    list-style: none;
    margin: 0;
    padding-left: 0;
}

ul.about-green-list li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

ul.about-green-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 12px;
    height: 12px;
    background-color: #15362E;
    border-radius: 50%;
}

.about-title {
    font-family: JetBrainsMono-medium;
}

.about-text-title {
    color: #154A38;
}

.btn-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    font-family: JetBrainsMono-medium;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-top: 8rem;
}

.about-header {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #154A38;
    padding-bottom: 1rem;
}

    .about-header h3 {
        font-weight: 700;
    }

@media (max-width: 760px) {
    .person-presentation-container {
        margin-top: 1rem;
        flex-direction: row;
        align-items: center;
    }

        .person-presentation-container i {
            margin-right: 0;
            margin-bottom: 10px;
        }

    .about-lists {
        flex-direction: column;
        gap: 1rem;
        position: relative;
    }

    .about-list {
        gap: 2rem;
        justify-content: flex-start;
    }

    .btn-item h5 {
        text-align: left;
    }

    #about-section h1 {
        margin-top: 2rem;
        padding-left: 1rem;
    }

    #about-container {
        margin-top: 0.1rem;
    }

    .about-wrapper h3 {
        text-align: center;
    }

    .about-grid {
        display: flex;
        flex-direction: column;
    }

    .about-header {
        text-align: center;
        justify-content: center;
    }

    .btn-item {
        flex-direction: row;
        align-items: flex-start;
        margin-bottom: 1rem;
    }

    .about-header:nth-child(1) {
        order: 1;
    }

    .about-header:nth-child(2) {
        order: 5;
    }

    .btn-item:nth-child(3) {
        order: 2;
    }

    .btn-item:nth-child(5) {
        order: 3;
    }

    .btn-item:nth-child(7) {
        order: 4;
    }

    .btn-item:nth-child(4) {
        order: 6;
    }

    .btn-item:nth-child(6) {
        order: 7;
    }

    .btn-item:nth-child(8) {
        order: 8;
    }
}

/* Contact page */
.contact-form-container {
    max-width: none;
    width: 100%;
    padding: 0;
    background-color: transparent;
    border: none;
    box-shadow: none;
    margin: 0;
}

.form-group {
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: Montserrat, Helvetica, Arial, sans-serif;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    color: #333;
}

.form-control:focus {
    border-color: #6BAB8B;
    box-shadow: 0 0 4px rgba(107, 171, 139, 0.5);
    outline: none;
}

.form-select {
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
}

.form-select:focus {
    border-color: #6BAB8B;
    box-shadow: 0 0 4px rgba(107, 171, 139, 0.5);
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: none !important;
}

.contact-form-container h2,
.contact-form-container p {
    text-align: center;
}

.contact-form-container h2,
.contact-info h2 {
    font-family: JetBrainsMono-medium;
}

.contact-grid-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 4rem;
    padding: 2rem;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-card {
    background-color: white;
    border-radius: 10px;
    padding: 1rem;
    filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.2));
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

    .info-card i {
        margin-right: 0.8rem;
        margin-left: 0.8rem;
        color: #154A38;
    }

.info-card-title {
    font-family: JetBrainsMono-medium;
}

.info-card-text {
    margin-left: 0.8rem;
}

.info-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

        .info-card-link:focus,
        .info-card-link:active,
        .info-card-link:visited {
            color: inherit;
        }

        .info-card-link .info-card {
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            cursor: pointer;
            color: #154A38;
        }

        .info-card-link:hover .info-card {
            transform: translateY(-2px);
            box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.25);
            color: #154A38;
        }

    .contact-form {
        flex: 1;
        background-color: white;
        padding: 1.5rem;
        border-radius: 10px;
        filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.2));
    }

    .bg-contact {
        background-color: #F0FFF6;
        width: 100%;
        min-height: 100vh;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        padding: 2rem 0;
        box-sizing: border-box;
    }

    @media (max-width: 768px) {
        .contact-grid-container {
            flex-direction: column;
            padding: 1rem;
        }

        .contact-form {
            padding: 1rem;
        }

        .info-card {
            padding: 1rem;
        }
    }


    /* Footer */
    .footer {
        background: linear-gradient(34deg, #15362E 0%, #214B41 100%);
        padding: 0 5rem;
    }

    .footer-container {
        margin: 0 auto;
    }

    .footer-top {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        padding-top: 4rem;
        border-bottom: 1px solid rgba(255,255,255,0.5);
    }

    .footer-menu {
        width: 20%;
        margin-bottom: 3rem;
    }

    .footer-menu-large {
        width: 30%;
    }

    .footer .text-label {
        color: white;
        font-weight: bold;
        font-size: 1.2rem;
    }

    .footer ul {
        padding: 0;
        list-style: none;
    }

    .footer-top li,
    .footer-top p,
    .footer-top a:not(.circle-icon) {
        color: white;
        font-size: 1rem;
        text-decoration: none;
    }

    .footer-top a:hover {
        text-decoration: underline;
    }

    .footer-bottom {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        padding: 2rem 0;
        color: white;
        font-size: 0.9rem;
    }

    .circle-icon {
        display: inline-block;
        color: #15362E;
        background-color: white;
        border-radius: 50%;
        padding: 0.5rem;
        line-height: 1;
        text-align: center;
        width: 30px;
        height: 30px;
        transition: color 0.3s ease;
    }

        .circle-icon:hover {
            color: white;
            background: none;
        }

    @media only screen and (max-width: 1024px) {
        .footer {
            padding: 0 3rem;
        }

        .footer-menu {
            width: 48%;
        }

        .footer-menu-large {
            width: 100%;
        }

            .footer-menu-large p {
                max-width: 55rem;
            }
    }

    @media only screen and (max-width: 750px) {
        .footer-menu,
        .footer-menu-large {
            width: 100%;
        }
    }

    @media only screen and (max-width: 580px) {
        .footer {
            padding: 0 2rem;
        }
    }


    /* Other */
    h1:focus {
        outline: none;
    }

    .valid.modified:not([type=checkbox]) {
        outline: 1px solid #26b050;
    }

    .invalid {
        outline: 1px solid #e50000;
    }

    .validation-message {
        color: #e50000;
    }

    .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."
        }

    .darker-border-checkbox.form-check-input {
        border-color: #929292;
    }


    #components-reconnect-modal {
        /*    display: none !important;*/
        display: flex !important;
        opacity: 1 !important;
        background-color: rgb(255 255 255 / 80%) !important;
    }

        #components-reconnect-modal::before {
            content: '';
            width: 300px;
            height: 65px;
            background: var(--secondary-color);
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            display: block;
            border-radius: 8px;
        }

        #components-reconnect-modal h5 {
            margin-top: 50px !important;
            padding: .75rem 1.25rem;
            width: 300px;
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 1050;
            color: var(--primary-color);
            background-color: var(--secondary-color);
            box-shadow: 0px 10px 10px 0px hsl(0deg 0% 0% / 20%);
            border-radius: 8px;
        }

        #components-reconnect-modal div {
            border-color: rgb(0, 100, 0) rgb(60, 179, 113) rgb(144, 238, 144) !important;
            margin: auto;
            z-index: 1050;
        }

        #components-reconnect-modal h5 a {
            color: #333 !important;
        }

        #components-reconnect-modal button {
            color: #515151;
            padding: 4px 8px;
            font-size: .875rem;
            min-width: 64px;
            box-sizing: border-box;
            transition: background-color 250ms cubic-bezier(.4,0,.2,1) 0ms,box-shadow 250ms cubic-bezier(.4,0,.2,1) 0ms,border 250ms cubic-bezier(.4,0,.2,1) 0ms;
            font-weight: 500;
            line-height: 1;
            letter-spacing: .02857em;
            text-transform: uppercase;
            margin: auto !important;
            background: var(--primary-color);
            z-index: 1500;
            border: 0;
        }

    .list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

        .list li {
            display: flex;
            align-items: center;
            margin-bottom: 1rem;
            font-size: 1rem;
        }