form:has(.m-form-FormElementRadio780) .panel-border {
    background-color: transparent;
}
form:has(.m-form-FormElementRadio780) .panel-body > .row > div{
    display: grid;
    grid-template-columns: repeat(14, 7%);
}


.m-form-FormElementRadio780 {
  display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
/* 
.m-form-FormElementRadio780 label {
    width: calc(100% / 3) !important;
} */

.m-form-FormElementRadio780 .form-label {
   display: none;
}

.m-form-FormElementRadio780::before, .m-form-FormElementRadio780 > .form-label, .m-form-FormElementRadio780 > input, .m-form-FormElementRadio780 .form-label{
    display: none !important;
}

.m-form-FormElementRadio780 > .input-group {
    display: flex;
    flex-direction: column;
    width: 100%;

}

.m-form-FormElementRadio780 > .input-group .input-group-addon {
    display: flex
;
    flex-direction: column;
    text-align: center;
}

.m-form-FormElementRadio780 > .input-group .input-group-addon input{
   display: none;
}

.m-form-FormElementRadio780 > .input-group .input-group-addon img{
    width: 100%;
    cursor: pointer;
    aspect-ratio: 3 / 2;
    object-fit: contain;
    padding: 10px;
 }

.m-form-FormElementRadio780 > .input-group .input-group-addon input:checked + img{
    border: solid 3px #a12312;
 }


form:has(.m-form-FormElementRadio780) fieldset {
    /* width: 100%; */
    grid-column: span 7;
    /* padding: 15px; */
    border-radius: 5px;
    margin:20px 0 20px 30px;
    background-color: #fff;
    border: solid 1px #eee;
    display: flex;
    align-items: center;
    
}

form:has(.m-form-FormElementRadio780) fieldset :is(input, select, textarea){
padding: 15px;
flex-grow: 1;
background-color: #f8f8f8;
 }

 form:has(.m-form-FormElementRadio780) fieldset :is(input[type=text]){
    max-width: 100%;
     }
        
         form:has(.m-form-FormElementRadio780) fieldset :is(.input-group.trailing){
            display: flex;
            align-items: center;
            color: #000;
            padding: 15px 0;
            font-weight: 300;
         }


         
     form:has(.m-form-FormElementRadio780) fieldset:not(.m-form-FormElementRadio111) label{
        color: #888;
        flex-basis: 280px;
        flex-shrink: 0;
        padding-left: 15px;
        text-align: left;
         }


form:has(.m-form-FormElementRadio780) .form-label, form:has(.m-form-FormElementRadio780) .form-label + p {
     grid-column: span 7;
     /* width: 100%; */
     padding: 0 30px;
}

form:has(.m-form-FormElementRadio780) .row div > .form-label {
    color: #a12312;
    font-weight: bold;
}

fieldset.form-group.m-form-FormElementRadio780 {
grid-column: span 7;
    width: 100%;
    grid-row: span 100;
    padding: 10px;
    height: auto;
    /* position: sticky; */
    top: 150px;
    margin: 0;
    margin-bottom: auto;
    box-shadow: 0 0 17px -10px #555;
    align-items: flex-start;
}

.m-form-FormElementRadio111 .input-group.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

fieldset.form-group.m-form-FormElementInput895, fieldset.form-group.m-form-FormElementInput216, fieldset.form-group.m-form-FormElementInput458,fieldset.form-group.m-form-FormElementInput951,fieldset.form-group.m-form-FormElementInput532,fieldset.form-group.m-form-FormElementInput417, fieldset.form-group.m-form-FormElementInput704 {
 grid-column: span 1;
}

fieldset.form-group.m-form-FormElementInput895 label,
fieldset.form-group.m-form-FormElementInput216 label,
fieldset.form-group.m-form-FormElementInput458 label,
fieldset.form-group.m-form-FormElementInput951 label,
fieldset.form-group.m-form-FormElementInput532 label,
fieldset.form-group.m-form-FormElementInput417 label,
fieldset.form-group.m-form-FormElementInput704 label {
  display: none;
}


form:has(.m-form-FormElementRadio780) .form-group:not(.shown) {
    display: none;
}

/* Override any existing required field asterisk styling */
.form-group:has(input[required]) label:after {
    content: none !important;
    display: none !important;
}

/* Style .form-required spans instead of using :after pseudo-element */
span.form-required {
    color: #dc3545 !important;
    font-weight: bold;
    margin-left: 4px;
}

.m-form-FormElementInput883 {
    display: none !important;
}

div#overlayPicker {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    display: none;
    z-index: 100;
}

#overlayPickerOverlayClose {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 99;
    background-color: #fff;
    opacity: 0.7;
}

#overlayPickerClose {
    width: 30px;
    position: absolute;
    left: 100%;
    top: 0;
    padding: 5px;
    background-color: #a12312;
    border-radius: 50%;
    transform: translate(-50%,-50%);
    cursor: pointer;

}

div#overlayContent {
    width: 900px;
   
    max-width: 95%;
    background: #fff;
    z-index: 100;
    box-shadow: 0 0 17px -10px #555;
    padding: 50px 50px;
    position: relative;
    border-radius: 20px;
    
}

.overlayContentWrapper {
    overflow-x: auto;
    max-height: 85vh;
}

/* Custom scrollbar for WebKit browsers (e.g., Chrome, Edge, Safari) */
.overlayContentWrapper::-webkit-scrollbar {
    width: 3px; /* Scrollbar width */
    height: 3px; /* Scrollbar height (for horizontal scrolling) */
  }
  
  .overlayContentWrapper::-webkit-scrollbar-thumb {
    background-color: #a12312; /* Scrollbar thumb color */
    border-radius: 10px; /* Optional: round the edges of the scrollbar */
  }
  
  .overlayContentWrapper::-webkit-scrollbar-track {
    background-color: transparent; /* Scrollbar track background */
  }
  
  /* Custom scrollbar for Firefox */
  .overlayContentWrap {
    scrollbar-width: thin; /* Make the scrollbar thin */
    scrollbar-color: #a12312 transparent; /* Thumb color and track color */
  }

div#overlayPicker.shown {
    display: flex !important;
    gap: 20px;
    flex-direction: column;
}
div#overlayPicker .hidden {
    display: none;
}



.overlayContentWrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    /* border: solid 1px #eee; */
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    margin: 30px 0;
    position: relative;
    counter-increment: sectionCount;
 
}





.overlayContentWrap::before {
    content: counter(sectionCount);
    display: flex;
    font-weight: bold;
    position: absolute;
    width: 27px;
    height: 27px;
    align-items: center;
    justify-content: center;
    background-color: #a12312;
    color: #fff;
    border-radius: 50%;
    top: 19px;
    left: 0;
  
    line-height: 0;

}

.productImgWrap {
    aspect-ratio: 16 / 9;
}

.productImgWrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 116px;
}


.overlayContentWrap > div {
    display: flex;
    flex-direction: column;
    padding: 15px;
    /* border:solid 1px #ccc; */
    cursor: pointer;
    background-color: #fff;
    position: relative;
    min-height: 40px;
    box-shadow: 0 0 17px -10px #555;
    border-radius: 10px;
}

.overlayContentWrap h3 {
font-weight: bold;
color:#a12312;
margin-left: 20px !important;
}

.overlayContentWrap div.active {
    border: solid 1px #a12312;
}

.overlayContentWrap div span{
    /* position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%); */
    text-align: center;
}

.overlayContentWrap div img{
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    object-position: center;
    max-height: 116px;
}

.overlayContentWrap h3 {
    grid-column: span 3;
    width: 100%;
    margin: 0;
}

#PickRoofBtn {
    background-color: #a12312;
    color: #fff;
    border-radius: 30px;
    padding: 12px 24px;
    cursor: pointer;
    min-width: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    transition: background-color 0.2s;
}

#PickRoofBtn:hover {
    background-color: #811c0e;
}

#PickRoofBtn.hidden {
    display: none;
}

.openBtnSvg {
    width: 25px;
}

.formTopContent {
    margin-bottom: 30px;
    display: flex;
    justify-content: flex-start;    
    margin-top: 18px;
}
.fadeForm {
    position: relative;
}
.fadeForm>div, .panel-body:has(.fadeForm) + .panel-footer{
    opacity: 0.2;
    pointer-events: none;
    position: relative;
    filter: blur(3px);
}

/* .fadeForm::after {
    content: 'V\00E6lg et tag, f\00F8r du kan udfylde formularen.';
    position: absolute;
    left: 50%;
    top: 50px;
    transform: translateX(-50%);
    font-size: 25px;
    font-weight: bold;
    color: #007BB0;
    padding: 10px;
    border-radius: 30px;
} */

.m-form-article .panel-footer {
    width: 50%;
    margin-left: auto;
    text-align: center;
}

.m-form-article .panel-footer .m-contact-description-bottom {
    margin-top: 1rem;
}

.m-form-article .panel-footer button {
    width: 100%;
    padding: 10px;
    background-color: #a12312;
    border-radius: 30px;
    color: #fff;
}

.subTopMenu {
    margin-top: 15px;
}

.subTopMenu::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 100%; 
  height: 20px; 
  
  border-bottom: 20px solid transparent;

}

.subTopMenu::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, calc(-100% + 15px));
    width: 0; 
  height: 0; 
  border-left: 25px solid transparent;
  border-right: 25px solid transparent;
  
  border-bottom: 25px solid #fff;

}
.subTopMenu > li:not(:last-of-type) {
    border-bottom: solid 1px #eee;
}
.subTopMenu a {
    color: #000;
    font-size: 15px;
    line-height: normal;

}

.subTopMenu a:hover {
    color: #a12312;

}

.ctaBtn  {
    line-height: 0;
    height: 40px;
}

@media (max-width: 1180px) {
    fieldset.form-group.m-form-FormElementRadio780 {
        grid-column: span 14;
        position: static;
        margin-bottom: 20px;
    }
    form:has(.m-form-FormElementRadio780) .form-label, form:has(.m-form-FormElementRadio780) .form-label + p {
        grid-column: span 14;
    }

    form:has(.m-form-FormElementRadio780) fieldset {
        grid-column: span 14;
    }

    fieldset.form-group.m-form-FormElementInput895, fieldset.form-group.m-form-FormElementInput216, fieldset.form-group.m-form-FormElementInput458, fieldset.form-group.m-form-FormElementInput951, fieldset.form-group.m-form-FormElementInput532, fieldset.form-group.m-form-FormElementInput417, fieldset.form-group.m-form-FormElementInput704 {
        grid-column: span 2;
    }

    form:has(.m-form-FormElementRadio780) fieldset :is(select) {
        min-width: 100px;
    }

}

@media (max-width: 700px) {
    fieldset.form-group.m-form-FormElementInput895, fieldset.form-group.m-form-FormElementInput216, fieldset.form-group.m-form-FormElementInput458, fieldset.form-group.m-form-FormElementInput951, fieldset.form-group.m-form-FormElementInput532, fieldset.form-group.m-form-FormElementInput417, fieldset.form-group.m-form-FormElementInput704 {
        grid-column: span 4;
    }

    form:has(.m-form-FormElementRadio780) fieldset :is(.input-group.trailing), fieldset.form-group.m-form-FormElementRadio111.shown {
        flex-direction: column;
    }

    form:has(.m-form-FormElementRadio780) fieldset {
        margin: 20px 0;
    }

    .m-form-FormElementRadio780 {
        display: grid !important
    ;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

}

[data-producttab-btn].active {
    background-color: #efefef;
}

.frontpageHeroTitle {
    line-height: 1.1;
    letter-spacing: -0.02em;
}

@media (max-width: 640px) {
    .frontpageHeroTitle {
        line-height: 1.2;
        letter-spacing: -0.01em;
    }
    
    .hero {
        min-height: 400px;
    }
    
    .hero .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 350px;
    }
}

#selectedRoof {
    width: 100%;
    display: grid;
    grid-template-areas: "img title btn""img price btn";
    grid-template-columns: 50px 1fr 1fr;
    gap:0 30px;
    max-width: 100ch;
    padding: 20px;
    border: solid 1px #eee;
    margin-bottom: 30px;
    border-radius: 10px;
}

.selectedRoofImg {
    grid-area: img;
    width: 50px;
}

.selectedRoofTitle {
    grid-area: title;
    font-weight: bold;
}

.selectedRoofPrice {
    grid-area: price;
}

.selectedRoofBtn {
    grid-area: btn;
    background-color: #a12312;
    color: #fff;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: auto;
    height: 40px;
    width: 200px;
    margin-left: auto;
    cursor: pointer;
}


@media (max-width: 500px) {

    #selectedRoof {
        grid-template-areas: "img""title""price""btn";
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .selectedRoofBtn {
        width: 100%;
    }
    
}


@media (max-width: 768px) {
    .overlayContentWrap {
        grid-template-columns: repeat(2, 1fr);
        padding: 20px;

    }

    .overlayContentWrap h3 {
        grid-column: span 2;
    }

    div#overlayContent {
        padding: 20px;
    }
}


@media (max-width: 400px) {
    /* .overlayContentWrap {
        padding: 5px;

    } */

    /* div#overlayContent {
        padding: 10px;
    } */
    .overlayContentWrap {
        grid-template-columns: repeat(1, 1fr);

    }

    .overlayContentWrap h3 {
        grid-column: span 1;
    }
    .ctaBtn {
        line-height: 0;
        height: 30px;
    }

}
/* 

.callMeTitle {

    color: pink !important;

    &:hover {
        color: red !important;
    }

    .test {
        color: #007BB0;

        &:hover {
            background-color: #007bb0;
            color: red;
        }
    }
} */