#hero {
    width: 100%;
    background-image: url("/img/services/solar-hero-darkened.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    color: white;
    margin-top: 0;
    min-height: min(calc(90vh - 30px), 1000px);
    background-position: 60% top;
    padding: 0 min(5%, 20px);
    max-height: 1000px;
    max-width: unset !important;
}

main {
    padding-top: 0;
}
.rolldisplay{
    width: 100%;
    height: 70px;
    margin: 20px auto;
    grid-area: f;
    overflow: hidden;
    position: relative;
    display: flex;
}
.rolldisplay img{
    height: 70px;
    width: auto !important;
    margin: 0 15px;
    flex-shrink: 0;
    border-radius: 0 !important;
}
@keyframes move-marq{
    0%{
        transform: translateX(0%);
    }100%{
        transform: translateX(-50%);
    }
}
.track{
    display: flex;
    width: max-content;
    align-items: center;
    justify-content: start;
    overflow: visible;
    flex-shrink: 0;
    /* padding-left: 50px; gap: 20px; */
    animation: move-marq infinite 30s linear;
}
#other_service {
    color: #fff;
    display: block;
    width: max-content;
    margin: auto;
    margin-bottom: 16px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);

}

section:not(#hero) {
    max-width: 1200px;
    margin: auto;
}

main>.decor.ci {
    position: absolute;
    bottom: 0;
    right: 0;
    transform: translateX(30%) translateY(30%);
    width: 50vw;
    max-width: 400px;
    aspect-ratio: 1;
    background-color: #22402e;
    border-radius: 50%;
}

#hero h1 {
    margin: 0;
    font-size: min(52px, 7vw);
    text-align: center;
    line-height: min(55px, 7.2vw);
    padding-top: 50px;
    font-style: italic;
    margin-bottom: 40px;
}

#hero .points>div {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: min-content;
    gap: 5px;
}

#hero .points a {
    width: 13px;
    aspect-ratio: 1;
    background-color: white;
    border-radius: 50%;
    user-select: none;
}
#ratings .stars .star{
    width: 30px;
    aspect-ratio: 1;
}

#hero .points a.active {
    background-color: #277D31;
}

#hero .points a:hover {
    background-color: #2b8e37;
}

#hero .card {
    width: 100%;
    background-color: white;
    border: 1px solid #b4b4b4;
    color: black;
    display: flex;
    margin: 10px 0 5px 0;
    max-height: 70px;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    font-size: min(5vw, 18px);
}

#hero .card p {
    font-weight: 500;
}

#hero .card img {
    height: min(10vw, 40px);
    margin-left: -7px;
    margin-right: 7px;
    aspect-ratio: 1;
    border: none;
}

#hero .slider {
    padding-bottom: 40px;
    overflow-x: scroll;
    display: flex;
    flex-wrap: nowrap;
    max-width: 1000px;
    margin: auto;
    margin-bottom: 0;
    margin-top: 0;
    scroll-snap-stop: normal;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

#hero .slider .slide>p {
    font-weight: 500;
    font-size: 18px;
    line-height: 1.75rem;
    margin-top: 5px;
}

#hero .slide {
    flex-shrink: 0;
    display: grid;
    justify-items: left;
    max-width: 100%;
    grid-template-rows: 70px min-content min-content;
    transition: transform .5s;
    scroll-snap-align: center;
}

#hero .slider img.general {
    width: 95%;
    max-height: 320px;
    border-radius: 15px;
    margin: auto;
    justify-self: center;
    object-fit: cover;
    overflow-clip-margin: unset;
}


#inbetween {
    
    justify-items: left;
    gap: 0;
}

#inbetween p {
    font-size: 20px;
    line-height: 2.0rem;
    font-weight: 500;
}

#inbetween .rolldisplay {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 30px
}

#inbetween .rolldisplay img {
    max-width: 50%;
    max-height: 60px;
}

#inbetween img {
    width: 100%;
    border-radius: 15px;
}

#inbetween strong {
    font-weight: 700;
}

#inbetween button.save {
    padding: 11px 30px;
    font-size: 23px;
}

#inbetween a.button {
    margin: auto;
}

#inbetween a:hover {
    box-shadow: 4px 4px 6px 0 #0003;
    border-radius: 15px;
}


#ratings h2 {
    text-transform: uppercase;
    font-weight: 500;
    font-size: min(10vw, 37px);
}

#ratings .cards {
    display: grid;
    justify-items: center;
    gap: 26px;
    justify-self: center;
}

#ratings .card {
    box-shadow: 4px 4px 10px 0 #0006;
    border-radius: 13px;
    width: 100%;
    max-width: 350px;
    display: grid;
    justify-items: center;
    border: 1px solid #b4b4b4;
    padding: 25px 13px;
    justify-self: center;
    background-color: white;
    grid-template-rows: min-content min-content min-content 1fr;
}

#ratings .card p {
    margin: 0;
}

#ratings .name,
#ratings .place {
    font-size: 21px;
    font-weight: 500;
}

#ratings .name {
    text-transform: uppercase;
}

#ratings .stars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    margin-top: 10px;
    margin-bottom: 20px;
}

#ratings .text {
    font-size: 17px;
    text-align: center;
}

#ratings button.save {
    padding: 8px 23px;
    font-size: 20px;
}

#ratings a.button {
    margin: auto;
    justify-self: center;
    margin-top: 25px;
}

#ratings {
    display: grid;
    justify-items: left;
    position: relative;
}

#ratings a:hover {
    box-shadow: 4px 4px 6px 0 #0003;
    border-radius: 15px;
}

#ratings .decor.ci {
    border-radius: 50%;
    aspect-ratio: 1;
    width: 60vw;
    max-width: 400px;
    position: absolute;
    background-color: #277D31;
    top: 120px;
    left: 0;
    transform: translateX(-30%);
}

#ratings .decor.ci:nth-child(2) {
    left: unset;
    top: unset;
    background-color: #294936;
    bottom: 0px;
    right: 0;
    transform: translateX(30%);
}

#ratings .decor.ch {
    position: absolute;
    top: 130px;
    left: 0;
    background-image: url('/img/decor/checker.png');
    height: calc(100% - 130px);
    width: 100%;
}


#offer {
    display: grid;
    justify-items: center;
    margin-top: 20px;
}


section:not(#hero) {
    padding: 0 min(6vw, 60px);
}

h1 {
    font-size: min(15vw, 50px);
    font-weight: 600;
    text-transform: uppercase;
    font-style: italic;
}

#offer *:not(.privacy) h2,
#offer>h2 {
    font-size: min(10vw, 40px);
    font-weight: 600;
    margin-bottom: 0px;
}

.offers {
    margin-bottom: 60px;
}

form {
    max-width: 600px;
    margin-bottom: 20px;
}

input {
    border: 2px solid #277D31;
    color: #277D31;
}

textarea {
    display: block;
    padding: 10px;
}

.form-group {
    margin: 4px 0;
    padding: 5px 0;
    width: 100%;
    position: relative;
}

.error-message {
    color: #294936;
    font-size: 13px;
    margin-top: 5px;
    font-weight: 500;
}

#addressLengthError {
    margin-top: -7px;
}

.personal {
    display: grid;
    grid-template-areas:
        "l l"
        "a a"
        "b c";
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 5px;
}

.personal>label {
    grid-area: l;
}

.a {
    grid-area: a;
}

.b {
    grid-area: b;
}

.c {
    grid-area: c;
}

.personal .form-group input {
    display: block;
}

label {
    font-size: 24px;
}

label:has(~ input) {
    transition: .1s;
    font-size: 15px;
}

label:has(~ input) {
    position: absolute;
    z-index: 2;
    top: 25px;
    left: 10px;
    transform: translateY(-50%);
    cursor: text;
}

label:has(~ input:not(:placeholder-shown)),
label:has(~ input:focus) {
    top: -7px;
    transform: translateY(0);
    background-color: white;
}

label.required::after {
    content: '*';
}

.helper-text {
    margin-top: 7px;
}

.checkbox-group {
    display: flex;
    align-items: start;
    justify-content: start;
}

.checkbox-group label {
    font-size: 15px;
    margin-top: 0px;
    margin-left: 5px;
}

.checkbox-group input {
    border-radius: 3px;
    border: 2px solid #277D31;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

#message {
    width: 100%;
    min-height: 20ch;
    resize: none;
    border: 2px solid #277D31;
}

#message:focus {
    border: 1px solid #2b8e37;
}

form input[type="checkbox"]:checked::before {
    width: 7px;
    transform: translateX(0) translateY(0);
}

form input[type="checkbox"]:checked::after {
    width: 16px;
    transform: translateX(-4px) translateY(-8px);
}

.bl {
    width: 100%;
    height: 100%;
    background-color: #000A;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.feedback {
    width: min(calc(100% - 20px), 400px);
    height: max-content;
    padding: 25px 15px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.438);
    box-sizing: border-box;
    background-color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
}

.feedback button {
    cursor: pointer;
    border: none;
    background-color: white;
    border-radius: 2px;
    vertical-align: middle;
    text-align: center;
    padding: 5px;
    width: 30px;
    height: 30px;
}

.feedback button:hover {
    box-shadow: 2px 2px 5px 0 #000A;
}

.sm-title {
    font-size: 22px;
    text-align: center;
    margin: 0;
}

#send {
    padding: 8px 25px;
    font-size: 19px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.privacy {
    width: 100%;
    height: max-content;
    padding: 20px min(6vw, 60px);
    /* background-color: white; */
    max-width: 600px;

    margin-bottom: 40px;
    border-radius: 10px;
    border: 1px solid #757575;
    background-color: #bcd1bf;
    box-shadow: 0 5px 7px 0px #0003;
    margin-top: 0;
    margin-bottom: 30px;
}

.privacy .sm-title {
    font-weight: 500;
    font-size: 18px;
    text-align: left;
    color: #22402e;
}

.privacy h2 {
    font-size: 40px;
    margin-bottom: 20px;
    text-align: left;
    margin-top: 6px;
    color: #22402e;
}

.privacy p {
    font-size: 17px;
    text-align: left;
    line-height: 1.2em;
}


#offer .decor.ci {
    position: absolute;
    width: 50vw;
    aspect-ratio: 1;
    border-radius: 50%;
    background-color: #277d31;
    max-width: 300px;
    left: 50%;
    top: 540px;
    transform: translateX(0) translateY(-50%);
}

@media only screen and (min-width: 720px) {
    #hero h1 {
        width: 100%;
        text-align: center;
        font-size: max(55px, 6vw);
        line-height: max(60px, 6vw);
    }

    #hero .points>div {
        grid-area: dots;
    }

    #hero .points {
        display: grid;
        grid-template-areas: "dots .";
        width: 100%;
        max-width: 1000px;
        margin: auto;
        margin-top: 10vh;
        padding: 0;
        margin-bottom: 10px;
        column-gap: 2%;
        grid-template-columns: 1fr 1fr;
    }

    #hero .slide .card {
        grid-area: card
    }

    #hero .slider .slide>p {
        grid-area: txt;
        max-height: min-content;
        margin-bottom: 0;
    }

    #hero .slide>img.general {
        grid-area: img;
        max-height: 200px;
    }

    #hero .slide {
        display: grid;
        width: 100%;
        max-width: 1000px;
        max-height: min-content;
        margin: auto;
        grid-template-areas:
            "card img"
            "txt img";
        padding: 0;
        column-gap: 2%;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 65px min-content;
        align-items: stretch;
    }

    #hero .slide .card {
        margin: 0;
        margin-bottom: 10px;
        max-height: 65px;
    }

    #hero .slide>img.general {
        height: 100%;
        width: 100%;
        object-fit: cover;
        overflow-clip-margin: unset;
    }


    #inbetween {
        display: grid;
    }
    #inbetween .rolldisplay {
        grid-area: f;
        width: 100%;
        justify-content: space-evenly;
        margin-bottom: 30px;
    }

    #inbetween .rolldisplay img {
        height: 50px;
        width: unset;
    }

    /* #inbetween .rolldisplay img:nth-child(2) {
        height: 36px;
    } */

    #inbetween .txt1 {
        grid-area: t1;
        margin-top: 0;
    }

    #inbetween .txt2 {
        grid-area: t2
    }

    #inbetween img {
        grid-area: img;
        height: 100%;
        width: 100%;
        object-fit: cover;
        overflow-clip-margin: unset;
    }

    #inbetween a.button {
        grid-area: a;
        justify-self: left;
        margin: 0;
        margin-top: 10px;
    }

    #inbetween {
        display: grid;
        grid-template-areas:
            "f  f   f   f   f"
            "t1 t1  img  img img"
            "t2 t2  img  img img"
            "a  a   img  img img";
        align-items: start;
        column-gap: 2%;
    }
}

@media only screen and (min-width: 840px) {
    #ratings .cards {
        display: flex;
        gap: 2%;
    }

    #ratings .ch {
        display: none;
    }

    #ratings .decor.ci {
        max-width: 300px;
        left: unset;
        right: 50%;
        top: 100%;
        transform: translateX(600px) translateY(-100%);
    }

    #ratings .decor.ci:nth-child(2) {
        bottom: unset;
        right: unset;
        top: 80px;
        left: 50%;
        transform: translateX(-600px);
    }
}

@media only screen and (min-width: 890px) {
    #offer h2 {
        grid-area: h;
        max-width: 470px;
        width: 100%;
        text-align: left;
    }

    #offer form {
        grid-area: f;
    }

    #offer form,
    #offer .privacy {
        max-width: 470px;
    }

    #offer .privacy {
        max-width: 600px;
        padding: 15px 25px;
    }

    #offer .privacy {
        grid-area: p;
        margin-top: 33px;
    }

    #offer {
        display: grid;
        grid-template-areas:
            "h p"
            "f p";
        grid-template-columns: min(470px, 1fr) min(600px, 1fr);
        justify-content: center;
        column-gap: min(30px, 2%);
    }

    #offer .decor.ci {
        left: 40%;
        transform: translateX(0) translateY(-50%);
    }

    #offer .decor.ch {
        position: absolute;
        bottom: 300px;
        right: 20px;
        width: 65%;
        height: 35%;
        background-image: url('/img/decor/checker.png');
    }
}

@media only screen and (min-width: 1140px) {
    #inbetween {
        display: grid;
        grid-template-areas:
            "f  f   f   f   f"
            "t1 t1  t1  img img"
            "t2 t2  t2  img img"
            "a  a   a   img img";
    }
}