:root {
    --primary-color: #00457B;
    --primary-font: 'Arial';
    --secondary-light-blue: #80B7DD;
    --secondary-extra-light-blue: #006FBA1A;
    --secondary-blue: #006FBA;
    --secondary-transparent-blue: #006FBA0D;
    --button-gray-color: #E0E0E0;
    --active-green: #147D34;
    --white: #ffffff;
}

h2, h3, h4, p, li {
    font-family: var(--primary-font);
    color: var(--primary-color);
}

h2 {
    font-size: 36px;
    font-weight: 700;
    line-height: 47px;
    margin: 40px 0;
}

h3 {
    font-size: 22px;
    font-weight: 700;
    line-height: 29px;
    margin-bottom: 10px;
}

h4 {
    font-size: 22px;
    font-weight: 700;
    line-height: 29px;
    margin-bottom: 16px;
}

p {
    font-size: 18px;
    font-weight: 400;
    line-height: 27px;
}

/* CUSTOM CLASSES */
/* 
#map_canvas {
    height: 600px !important;
    width: 100%;
    pointer-events: auto;
}

.map-container {
    position: relative;
}

.find-me {
    width: 200px;
    position: absolute;
    left: 10px;
    height: 35px;
    top: 100px;
    border-radius: 4px;
    line-height: 16px;
    cursor: pointer;
    background-color: var(--primary-color);
    color: #FFFFFF !important;
    padding: 10px 15px 10px 15px;
    font-size: 16px !important;
    text-align: center;
    display: block;
    z-index: 100;
}

#pac-input {
    display: none;
    position:absolute;
    height: 30px;
    width: 175px;
    left: 10px !important;
    top: 60px !important;
    padding: 10px !important;
    background-color: #ffffff !important;
    border: 1px solid var(--primary-color);
} */

#map_canvas {
    height: 600px !important;
    width: 100%;
    pointer-events: auto;
}

.map-container {
    position: relative;
    padding-top: 74px; /* Add space for the search input */
}

.find-me {
    width: 200px;
    position: absolute;
    left: 10px;
    height: 35px;
    top: 175px;
    border-radius: 4px;
    line-height: 16px;
    cursor: pointer;
    background-color: var(--primary-color);
    color: #FFFFFF !important;
    padding: 10px 15px 10px 15px;
    font-size: 16px !important;
    text-align: center;
    display: block;
    z-index: 100;
}

#pac-input {
    display: block; /* Changed from none */
    position: absolute;
    height: auto;
    width: 100%;
    font-size: 16px;
    left: 0;
    top: 0; /* Position at top of map-container */
    padding: 10px 20px;
    background-color: var(--secondary-transparent-blue);
    outline: none;
    border: 1px solid #000;
    border-radius: 4px;
    z-index: 100;
}

button.disabled {
    opacity: 0.6;
}

.margin-top-40 {
    margin-top: 40px;
}

header {
    height: 135px;
    .container {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        .logo {
        }

        .nav-links {
            margin-bottom: 20px;
            display: flex;
            flex-wrap: wrap;
            gap: 15px;

            a {
                padding: 0 20px;
                font-size: 22px;
                line-height: 45px;
                color: #04427b;
                text-decoration: none;
                font-family: "Fira Sans", sans-serif;
            }

            a:hover {
                color: #147D34;
            }
        }
    }
}

footer {
    padding: 44px 0;
    border-top: 1px solid #e6e6e6;
    background-image: url('https://smart.darwin.nt.gov.au/assets/theme_image/footer-bg.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    .container {
        display: flex;
        max-width: 1450px;
        
        .text-container {
            padding: 60px 45px 48px 55px;
            p {
                font-size: 14px;
                margin: 20px 0;
                font-family: "Fira Sans", sans-serif;
                font-weight: 300;
                text-align: left;
                line-height: 21px;
                color: #04427b;
            }
            a {
                text-decoration: underline;
                color: #04427b;
            }
            a:hover {
                color: #147D34;
            }
        }
    }
}

.portal-brand-section {
    background-image: url('https://smart.darwin.nt.gov.au/assets/theme_image/banner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 100px;
    padding-bottom: 40px;
    color: white;

    h1 {
        text-align: center;
        font-size: 48px;
        font-weight: 700;
        font-family: var(--primary-font);
        span {
            margin-left: 25px;
        }
    }
}

.external-link-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px 0 60px;
    a {
        color: var(--white);
        background-color: var(--secondary-blue);
        padding: 8px 32px;
        text-decoration: underline;
        border: none;
        border-radius: 4px;
        outline: none;
        user-select: none;
    }

    button {
        color: var(--secondary-blue);
        background-color: var(--white);
        padding: 8px 32px;
        text-decoration: underline;
        border: 1px solid var(--secondary-blue);
        border-radius: 4px;
        outline: none;
        text-decoration: none;

        &:hover {
            color: var(--white);
            background-color: var(--secondary-blue);
        }
    }
}

.intro-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 0 auto;

    .button-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 40px;

        button {
            color: var(--white);
            background-color: var(--secondary-blue);
            padding: 8px 32px;
            text-decoration: underline;
            border: none;
            border-radius: 4px;
            outline: none;
            user-select: none;
        }
    }

    .other-tools-container {
        margin-top: 80px;
        background-color: #006FBA26;
        padding: 40px 0;
        display: flex;
        justify-content: center;
    }
}

.flex-center {
    display: flex;
    justify-content: center;
}

.main-form-container {
    min-height: 900px;
}

.main-container {
    max-width: 1440px;

    display: flex;
    padding: 0 100px 0;
    flex-wrap: wrap;
    

    .survey-container {

    }

    .survey-details-container {
        background-color: #FFFFFF;
        box-shadow: 0px 1px 4px 0px #006FBA40;

        h4 {
            padding: 24px;
            font-size: 22px;
            font-weight: 700;
            line-height: 29px;
        }
        ul {
            padding: 0 40px 40px;
            list-style-position: inside;

            li {
                font-size: 16px;
                font-weight: 400;
                line-height: 27px;
            }
        }
    }


    .survey-section {
        margin-top: 24px;

        h4 {
            position: relative;

            span.missing-warning {
                color: red;
                font-size: 14px;
                position: absolute;
                top: 0;
                padding-left: 5px;
            }
        }

        .image-wrapper {
            padding: 0;
            margin-top: 5px;
            img {
                width: 100%;
                object-fit: cover;
            }
        }

        textarea {
            min-height: 150px;
            background-color: var(--secondary-transparent-blue);
            border-radius: 4px;
        }

        input[type="date"] {
            background-color: var(--secondary-transparent-blue);
            border-radius: 4px;
            border: 1px solid #3B393C;
            padding: 10px 20px;
        }

        input[type="file"] {
            background-color: var(--secondary-transparent-blue);
            border-radius: 4px;
            border: 1px solid #3B393C;
            padding: 10px 20px;
        }

        input[type="text"], input[type="email"] {
            background-color: var(--secondary-transparent-blue);
            border-radius: 4px;
            border: 1px solid #3B393C;
            padding: 10px 20px;
        }

        .odswidget-select {
            padding: 0;
            border-radius: 4px;
            height: 45px;
            border: 1px solid #3B393C;
            .odswidget-select-input-container {
                height: 45px;
            }
            .odswidget-select-button {
                padding: 10px 20px;
                background: var(--secondary-transparent-blue);
                border: none;
                .odswidget-select-button-label {
                    outline: none;
                    font-size: 16px;
                    color: #000000;
                }
                .fa-angle-down {
                    color: #000000;
                }
            }

            .odswidget-select-input {
                outline: none;
                border: none;
                height: 40px;
            }
        }
    }

    .radio-container {
        display: flex;
        justify-content: space-evenly;
        flex-wrap: wrap;

        label {
            padding: 10px;
            border-radius: 8px;
            cursor: pointer;
            user-select: none;
            
            transition: background-color 0.3s ease;
    
            input[type="radio"] {
                display: none;
            }
    
            input[type="radio"]:checked + span {
                background-color: var(--secondary-light-blue);
            }
    
            span {
                background-color: var(--secondary-extra-light-blue);
                display: inline-block;
                padding: 10px 30px 10px 10px;
                font-size: 22px;
                font-weight: 700;
                line-height: 29px;
                color: var(--primary-color);

                img {
                    margin-right: 10px;
                }
            }
        }
    }
}

.button-container {
    padding: 40px 100px 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;


    button {
        padding: 8px 32px;
        text-decoration: underline;
        border: none;
        border-radius: 4px;
        outline: none;
        user-select: none;
        .fa-arrow-left {
            margin-right: 5px;
        }

        .fa-arrow-right {
            margin-left: 5px;
        }
    }

    button:first-child {
        margin-right: auto;
        background-color: var(--button-gray-color);
    }

    button:nth-child(2),button:nth-child(3) {
        margin-left: 10px;
        background-color: var(--secondary-blue);
        color: var(--white);
    }
}

@media (max-width: 992px) {
    .main-container {

        .survey-details-container {
            margin-top: 40px;
        }
    }
}
@media (max-width: 600px) {
    .main-container {
        padding: 0 20px;
    }

    .button-container {
        padding: 40px 20px 80px;
    }
}

.form-section-1 {
    padding-bottom: 80px;
    padding-top: 40px;
}

/* TILES SECTION */

.list-items-area {
    
    .insights-list {
        padding: 10px 16px;
        font-size: 20px;
        font-weight: 700;
        color: var(--white);
        background-color: var(--secondary-blue);
        border-radius: 10px 10px 0 0;
    }

    .insights-list-items {
        p {
            padding: 10px 16px;
            font-size: 15px;
            color: var(--primary-color);
            margin: 0;
            text-decoration: underline;
            cursor: pointer;
        }
        .active {
            color: var(--active-green);
        }
    }
}

.custom-chart-container {
    width: 100%;

    height: 500px;
    position: relative;

    #summary-chart {
        position: absolute;
        top: 0;
    }
}

.final-section-other-tools {
    font-weight: 700;
}

.p-0 {
    padding: 0 !important;
}

.flex-wrap {
    display: flex;
    flex-wrap: wrap;
}

.page-break-before {
    page-break-before: always;
    break-before: page;
}

.page-break-after {
    page-break-after: always;
    break-after: page;
}

.page-break-avoid {
    page-break-inside: avoid;
    break-inside: avoid;
}

.form-answers-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;

    .answer-box {
        margin-top: 25px;
        padding: 0 20px 0 0;
        .answer {
            border-top: 3px solid var(--primary-color);
            padding: 25px 0;

            h3 {
                font-size: 28px;
                font-weight: 700;
                line-height: 36px;
                margin-bottom: 10px;
            }

            .rating-header {
                display: flex;
                align-items: center;

                .rating {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    margin-left: 15px;
                    gap: 10px;
                    background-color: var(--secondary-extra-light-blue);
                    padding: 10px 30px 10px 10px;
                    font-size: 22px;
                    font-weight: 700;
                    line-height: 29px;
                    color: var(--primary-color);
                    img {
                        width: 40px;
                        height: 40px;
                        vertical-align: center;
                    }
                }
            }

            

            p:last-child {
                margin-bottom: 0;
            }
        }
    }


}

.tiles-area {
    h2.tooltip-title {
        font-size: 24px;
        line-height: 22px;
        font-weight: 700;
        margin: 0 0 20px 0;
    }

    .tiles-container {
        display: flex;
        flex-wrap: wrap;
        margin: 0 -10px;

        .tile-wrapper {
            padding: 0 5px;
            display: flex;
        }

        .tile {
            margin-bottom: 10px;
            text-decoration: none;
            padding: 0;
            width: 100%;
            transition: .4s;
            border-radius: 10px;
            overflow-x: hidden;
            text-overflow: ellipsis;
            min-height: 30px;
            max-height: 450px;
            transition: border-image 0.3s ease;
            
            position: relative;
            z-index: 1;

            .tile-inner {
                position: relative;
                background: white;
                border-radius: 10px;
                z-index: 2;
                height: 100%;
                display: flex;
                flex-direction: column;
                z-index: 5;

                .tile-image_container {
                    position: relative;
                    max-height: 45%;

                    img {
                        width: 100%;
                        height: 200px;
                    }
                }

                .tile-text_container {
                    background: var(--white);
                    /* height: 55%; */

                    .tile-heading {
                        display: flex;
                        justify-content: space-between;
                        align-items: center;
                        padding: 10px 15px;
                        
                        .fa-chevron-right  {
                            color: var(--primary-color);
                        }

                        h4 {
                            font-size: 17px;
                            font-weight: 700;
                            line-height: 28px;
                            letter-spacing: 0em;
                            text-align: left;
                            color: var(--primary-color);
                            margin: 0;

                            
                        }
                    }

                    .description {
                        p {
                            font-size: 13px;
                            font-weight: 400;
                            line-height: 24px;
                            letter-spacing: 0px;
                            text-align: left;
                            color: #00457B;
                            font-weight: 300;
                            padding: 0 15px;
                        }
                    }
                }
            }

            &::before {
                content: '';
                position: absolute;
                top: 0; left: 0; right: 0; bottom: 0;
                padding: 3px;
                background: linear-gradient(91.39deg, #00A18F 11.6%, #006FBA 83.06%);
                border-radius: 10px;
                -webkit-mask: 
                linear-gradient(#fff 0 0) content-box, 
                linear-gradient(#fff 0 0);
                -webkit-mask-composite: xor;
                mask-composite: exclude;
                z-index: 100;
                opacity: 0;
                transition: opacity 0.3s ease;
            }

            &:hover::before {
                opacity: 1;
            }
        }


    }
}