#critical-distance {
    background-color:#002B6B;
    width:100%;
    position: relative;
    padding-top:60px;
    font-size:10px;
    color:#fff;
    font-family: 'Open Sans', sans-serif;
}

#critical-distance header {
    padding:26px 0;
    position: absolute;
    z-index:1;
    top:60px;
    left:0;
    right:0;
}

#critical-distance .container {
        max-width: 1200px;
    margin: 0 auto;
    display: flex
;
    justify-content: space-between;
}

#critical-distance header h1 {
    max-width:450px;
}
#critical-distance header img {
    display: block;
    width:100%;
    height:auto;
}
#critical-distance header p.instructions {
    font-size: 3.6em;
    line-height: 1.4em;
    font-weight: 700;
    max-width: 460px;
}

.cd-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}
.cd-modal.open {
    display: block;
}

.cd-modal .inner {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    max-width: 750px;
    padding:20px;
    border-top:8px solid #0097b2;
    position: relative;
}

.cd-video-modal .inner{
    max-width: 1100px;
}

.cd-video-headings {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}
.cd-video-headings h3{
    font-size: 1.8em;
    font-weight: 700;
    color:#0097b2;
    margin-right:20px;
}
.cd-video-modal video {
    width: 100%;
    height: auto;
}
.cd-video-modal .question {
        font-size: 27px;
        color:#000;
        margin:20px 0;
}
.cd-modal .modal-close {
    position: absolute;
    top: 10px;
    right: 3px;
    background-color: transparent;
    border: none;
    color: #333;
    padding: 10px;
}

.cd-modal h2{
    color: #0097b2;
    margin-top: 30px;
    margin-bottom: 20px;
    font-size: 1.4em;
    font-weight: 700;
    font-family: 'Open Sans', sans-serif;
}

.contact-form {
    display: flex;
    gap: 8px;
    flex-wrap:wrap;
}
.contact-form .flex-1 {
    flex: 1;
    min-width: calc(50% - 8px);
}
.contact-form .flex-2 {
    flex: 1;
    width: 100%;
    min-width: 100%;
}

.contact-form label{
    width: 100%;
    margin-bottom: 4px;
    font-weight: bold;
    font-size: .85em;
    color:#333333
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px;
    margin-bottom: 20px;;
}
.contact-form input:active,
.contact-form input:focus,
.contact-form textarea:active,
.contact-form textarea:focus {
    border:2px solid #0097B2;
    outline: none;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 10px;
    flex-wrap: wrap;
}
.checkbox-group input {
    width: 30px;
    min-width: 30px;
    flex-shrink: 0;
    margin: 0;
}
.checkbox-group label {
    flex: 1;
    font-size: 16px;
    color: #333;
    margin: 0;
    cursor: pointer; /* Ensure label is clickable */
}

.contact-form  button[type="submit"] {
    background-color: #0097B2;
    color: #fff;
    padding: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    width:100%;
    transition: background-color 0.3s ease;
}


.map-container {
    position: relative;
    max-width: 1020px;
    margin: 0 auto;
    padding: 0 4%;
    padding-top:30px;
}
.cd-map {
    position: relative;
    height:0;
    padding-bottom: 75%; /* 4:3 aspect ratio */
}
.cd-map .map-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.cd-map .cd-map-point {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
    transform: scale(1)  translateX(-50%);
    transform-origin:center bottom;
}
.cd-map .cd-map-point:hover {
    transform: scale(1.1) translateX(-50%);
}
.cd-map .cd-map-point img{
    width:150px;
    height:auto;
    border-radius:50%;
    border: 8px solid #0097B2;
}

.cd-gundu {
    top: 39%;
    left: 3.5%;
}
.cd-img2 {
    top: 59%;
    left: 62.5%;
}
.cd-img3{
    top: 35%;
    left: 81%;
}
.checkboxExplanation {
    display: block;
        color: #50b8e7;
        font-size:14px;
        width:100%;
}

.cd-map-point-pointer {
    border-bottom-color: rgb(255, 255, 255);
    border-bottom-style: solid;
    border-bottom-width: 0px;
    border-image-outset: 0;
    border-image-repeat: stretch;
    border-image-slice: 100%;
    border-image-source: none;
    border-image-width: 1;
    border-left-color: rgba(0, 0, 0, 0);
    border-left-style: solid;
    border-left-width: 20px;
    border-right-color: rgba(0, 0, 0, 0);
    border-right-style: solid;
    border-right-width: 20px;
    border-top-color: rgb(0, 151, 178);
    border-top-style: solid;
    border-top-width: 24px;
    box-sizing: border-box;
    color: rgb(255, 255, 255);
    cursor: pointer;
    display: block;
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-feature-settings: normal;
    font-variation-settings: normal;
    height: 40px;
    line-height: 24px;
    margin-bottom: 0px;
    margin-left: 0px;
    margin-right: 0px;
    margin-top: -40px;
    padding-bottom: 0px;
    padding-left: 0px;
    padding-right: 0px;
    padding-top: 0px;
    scale: 4;
    tab-size: 4;
    text-size-adjust: 100%;
    transform-origin: 20px 0px;
    unicode-bidi: isolate;
    width: 40px;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
        transform: scale(.83, .9);
}


#critical-distance footer {
    padding-bottom:50px;
}

#critical-distance footer .container {
    display: flex;
    justify-content: space-between;
}

#critical-distance footer .ask-the-experts {
    background-color:#0097B2;
    border-radius:20px;
    padding:20px;
    width:45%;
    transform: scale(1);
    transition: .4s;
    transform-origin: center;
}
#critical-distance footer .ask-the-experts:hover{
    transform: scale(1.1);
}


#critical-distance footer .ask-the-experts a{
    display: flex;
    align-items: center;
    width:100%;
    color:#fff !important
}
#critical-distance footer .ask-the-experts img {
    width:100px;
    height:auto;
    margin-right:20px;
}
#critical-distance footer .ask-the-experts h3 {
    font-size: 3.6em;
    line-height: 1.4em;
    font-weight: 700;
    color:#fff;
    text-decoration: none;
    line-height:1.2em;
}
#critical-distance footer .ask-the-experts:hover h3,
#critical-distance footer .ask-the-experts:hover a {
        text-decoration: none !important;
}
#critical-distance footer .cd-logos {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 45%;
}
#critical-distance footer .cd-logos img{
    height:70px;
    width: auto;

}


.cd-modal-link {
    cursor: pointer;
}

    .cd-video-headings h3.h3-location  {
        font-size: 18px;
        white-space: nowrap;
    }

@media screen and (max-width: 1024px) {
    #critical-distance header p.instructions {
        font-size: 2.6em;
    }
    #critical-distance header h1 {
        max-width:300px;
    }
    #critical-distance footer .ask-the-experts img {
        width:80px;
    }
    #critical-distance footer .ask-the-experts h3 {
        font-size: 2.6em;
    }
    #critical-distance footer .cd-logos img {
        width:30%;
        height: auto;
    }
    .map-container {
        left:4%;
    }
}

@media screen and (max-width: 768px) {
#critical-distance footer .container {
    flex-wrap:wrap;
    
}
#critical-distance footer .ask-the-experts {
    width:60%;
    margin-bottom:20px;
}
#critical-distance footer .cd-logos {
    width:60%;
    margin:40px auto;
}
}

@media screen and (max-width: 500px) {
    #critical-distance {
        padding-top:180px;
    }
    #critical-distance header .container {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;

        gap:20px;
    }
    .cd-map img{
        width:100%;
        height:auto;
    }
    #critical-distance footer .ask-the-experts {
        width:100%;
        margin-top:60px;
    }
    #critical-distance footer .ask-the-experts img {
        width:35px;
    }
    #critical-distance footer .ask-the-experts h3 {
        font-size:2.2em;
    }
    .cd-map .cd-map-point img {
        width: 50px;
        height: auto;
        border-radius: 50%;
        border-width:4px;
    }
.cd-map-point-pointer {
    transform: scale(0.30, .4) translateY(14px);
    }
    .map-container {
        left:0;
    }
    .cd-video-headings h3 {
        font-size:1.4em;
        width:100%;
        margin-bottom:10px;
        
    }




    .cd-video-modal .question {
        font-size: 1.2em;
        margin:10px 0;
        line-height: 1.3em;
    }
    .cd-gundu {
        top:49%;
    }
    .cd-img2 {
    top: 73%;
    left: 69.5%;
    }
    .cd-img3 {
top: 45%;
    left: 95%;
    }
}

    @media screen and (max-width: 600px) {
        .cd-video-headings {
            display: block;
        }
         .cd-video-headings h3 {
            font-size:1.2em;
            width:100%;
            margin-bottom:10px;
            
        }
        .cd-video-headings h3.h3-location {
            font-size: 1em;
        }
    }