* {
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
}


html, body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    color: #3E3E3E;
}


.partners {
    display: flex;
    flex-direction: column;
    align-items: center;

    > .inner {
        width: 100%;
        max-width: 1040px;
        display: flex;
        flex-direction: column;
        margin-top: 80px;
        align-items: center;

        .grid {
            margin: 40px 0 80px 0;
            display: flex;
            flex-direction: row;
            width: 100%;
            max-width: 920px;
            column-gap: 20px;
     
            .column {
                display: flex;
                flex: 1 1 auto;
                flex-direction: column;
                row-gap: 40px;

                .card {
                    border-radius: 15px;
                    position: relative;
                    background: var(--primary-linear-gradient);
                    width: 100%;
                    border-radius: 15px;
                    z-index: 1;
                    box-sizing: border-box;
                    padding: 32px;
                    height: 292px;
                    transition: height .35s ease;

                    &::after {
                        content: '';
                        position: absolute;
                        left: 1px;
                        right: 1px;
                        top: 1px;
                        bottom: 1px;
                        background-color: white;
                        border-radius: 14px;
                        z-index: -1;
                    }

                    &:not(.add-partner)::before {
                        content: '';
                        position: absolute;
                        height: 50%;
                        left: 1px;
                        right: 1px;
                        bottom: 1px;
                        border-radius: 14px;
                        background: linear-gradient(0deg, rgba(255, 255, 255, 0.9920343137254902) 0%, rgba(255, 255, 255, 1) 30%, rgba(255, 255, 255, 0) 100%);
                        z-index: 1;
                    }

                    &.open {
                        height: 624px;
                        &::before {
                            display:  none;
                        }

                        .gradient {
                            transform: translate(-50%, -50%) rotate(180deg);
                        }
                    }

                    img {
                        height: 72px;
                            max-width: 200px;
                    }

                    p {
                        font-family: 'Open Sans';
                        font-style: normal;
                        font-weight: 400;
                        font-size: 17px;
                        line-height: 23px;
                        color: #3E3E3E;
                        text-align: left;
                        margin: 0 0 20px 0;

                        &.location {
                            display: flex;
                            flex-direction: row;

                            > svg {
                                margin-right: 12px;
                            }
                        }
                    }

                    .inner {
                        overflow: hidden;
                        height: 100%;
                    }

                    ul.socials {
                        padding: 0;
                        margin: 0;
                        list-style: none;
                        display: flex;
                        gap: 8px;

                        li {
                            flex: 0 0 32px;    
                            height: 32px;
                            /* background: #B4D90C; */
                            border-radius: 16px;
                            display: flex;
                            flex-direction: row;
                            justify-content: center;
                            align-items: center;
                        }
                    }

                    .gradient {
                        cursor: pointer;
                        position: absolute;
                        width: 42px;
                        height: 42px;
                        bottom: -40px;
                        left: 50%;
                        background: var(--primary-linear-gradient);
                        transform: translate(-50%, -50%) rotate(0);
                        transform-origin: center;
                        border-radius: 50%;
                        z-index: 10;
                        margin: 0;
                        padding: 0;
                        display: flex;
                        flex-direction: row;
                        justify-content: center;
                        align-items: center;

                        &::after {
                            position: absolute;
                            content: '';
                            background: white;
                            border-radius: 50%;
                            top: 2px;
                            left: 2px;
                            bottom: 2px;
                            right: 2px;
                        } 

                        > svg {
                            position: relative;
                            z-index: 10;
                            margin-top: 4px;
                        }

                    
                    }
                }
            }
        }
    }
}


.favorite {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.favorite::before {
    content: ' ';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0.5;
    background: linear-gradient(135deg, rgba(224, 245, 255, 0.98) 0%, #F6EEFF 78.13%, #E8D4FF 100%);
}

.favorite > * {
    position: relative;
    z-index: 1;
}

.favorite {
    .inner {
        max-width: var(--max-width-layout);
    }
}
  

.partners h2,
.favorite > h2 {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 700;
    font-size: 40px;
    line-height: 54px;
    text-align: center;
    color: #3E3E3E;
    position: relative;
    margin: 100px 0 80px 0;
    max-width: 664px;
}

.partners h2 {
    margin: 0 0 60px 0;
}

.partners h2::after,
.favorite > h2::after {
    content: ' ';
    position: absolute;
    width: 48px;
    height: 4px;
    left: 50%;
    background-color: #169FF2;
    border-radius: 2px;
    bottom: -24px;
    margin-left: -24px;
}

.partners p,
.favorite p {
    margin: 0 0 52px 0;
    color: #3E3E3E;
    text-align: center;
    font-size: 17px;
    font-family: Open Sans;
    font-weight: 300;
}

.partners p {
    max-width: 440px;
}

.favorite .card {
    width: 100%;
    max-width: 920px;
    border-radius: 8px;
    background: #FFF;
    box-shadow: 1px 1px 4px 1px rgba(0, 0, 0, 0.25);
    margin: 0 0 80px 0;
    box-sizing: border-box;
    padding: 48px 80px;
    position: relative;
}

.favorite form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 20px;
    grid-row-gap: 16px;
    margin: 0;
}

.favorite form .fill {
    grid-column: auto / span 2;
}

.favorite form textarea, 
.favorite form input[type=text] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    flex: 1 1 auto;
    background: #fbfbfc;
    border: 1px solid #169FF2;
    padding: 0 0 0 8px;
    box-sizing: border-box;
    color: #5F6368;
    line-height: 24px;
    font-weight: 400;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    font-family: 'Open Sans', sans-serif;
    border-radius: 2px;
    outline: 0;
    height: 44px;
    width: 100%;
    caret-color: var(--primary );
    user-select: none;
    font-size: 14px;
    text-align: left;
    border-radius: 4px;
}

.favorite form textarea {
    height: 112px;
}

.favorite form .terms {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    margin: 16px 0 0 0;
}

.favorite form .terms .checkbox {
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 22px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    margin: 4px 0 0 0;
}

.favorite form .terms .checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 16px;
    width: 16px;
    left: -3px;
    top: -2px;
    z-index: 1;
}

.favorite form .terms .checkbox input ~ .checkmark {
    border-radius: 4px;
    background-color: #169FF2;
}

.favorite form .terms .checkbox input:checked ~ .checkmark::before {
    display: none;
}

.checkbox .checkmark::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
    overflow: hidden;
}

.favorite form .terms .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 16px;
    width: 16px;
    border: 1px solid transparent;
    transition: background-color .25s ease;
    border: 1px solid #169FF2;
}

.favorite form .terms .checkmark::before {
    position: absolute;
    content:  ' ';
    background: #fff;
    left: 0px;
    right: 0px;
    top: 0px;
    bottom: 0px;
    border-radius: 4px;
}

.favorite form .terms p {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    font-size: 13px;
    padding: 0 0 0 6px;
    margin: 0;
    text-align: left;
}

.favorite form .terms p a {
    text-decoration: none;
    font-weight: 700;
    color: #169FF2;
}

.favorite form .btn-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding: 32px 0 0 0;
}

.favorite form .btn-row .button,
.favorite .sent .button {
    width: 424px;
    height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, rgba(0, 176, 255, 0.98) 0%, #861FFC 77.65%, #861FFC 100%);
    box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    border: none;
    padding: 0;
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 600;
    font-size: 18px;
    line-height: 25px;
    cursor: pointer;
    color: #FFFFFF;
    text-decoration: none;
}

.favorite form textarea::placeholder, 
.favorite form input::placeholder {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    font-size: 15px;
    line-height: 20px;
    color: rgba(107, 107, 107, 0.45);
}

.favorite .card .sent {
    display: none;
    position: absolute;
    background: #fff;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 72px;
    flex-direction: column;
    align-items: center;
}

.favorite .card .sent.show {
    display: flex;
}

.favorite .card .sent h2 {
    color: #3E3E3E;
    text-align: center;
    font-size: 28px;
    font-family: "Open Sans";
    font-weight: 700;
    max-width: 424px;
    margin: 12px 0 0 0;
}

.favorite .card .sent h3 {
    color: #3E3E3E;
    text-align: center;
    font-size: 20px;
    font-family: "Open Sans";
    font-weight: 400;
    max-width: 424px;
    margin: 48px 0 0 0;
}

.favorite .card .sent .button {
    margin-top: 60px;
}

.zoom, #zoom{
    transition: .2s;
}

.zoom:hover, #zoom:hover{
    transform: scale(1.05);
    transition: .2s;
}

@media only screen and (max-width: 1120px) {

    .partners {
  
        > .inner {
            box-sizing: border-box;
            padding: 0 24px;
        }
    }

    .favorite {
        box-sizing: border-box;
        padding: 0 24px;
    }
}

@media only screen and (max-width: 732px) {


    .header > .inner {
        box-sizing: border-box;
        width: auto;
        padding: 0 28px;
    }

    .partners {
        display: flex;
        flex-direction: column;
        align-items: center;
    
        > .inner {
            box-sizing: border-box;
            padding: 0 24px;
            
            h2 {
     
                font-weight: 700;
                font-size: 24px;
                line-height: 33px;
                text-align: center;

                &:after {
                    width: 40px;
                    height: 4px;
                    background-color: #169FF2;
                    border-radius: 2px;
                    bottom: -14px;
                }
            }


            > p {
                font-style: normal;
                font-weight: 400;
                font-size: 17px;
                line-height: 23px;
                text-align: center;
                max-width: 280px;
                margin: 0 0 24px 0;
            }

            .grid {
                flex-direction: column;
                row-gap: 40px;

                .column {
                    .card {

                        height: 260px;
                        
                        h3 {
                            font-weight: 600;
                            font-size: 18px;
                            line-height: 25px;
                        }

                        h4 {
                            font-weight: 600;
                            font-size: 14px;
                            line-height: 19px;
                        }

                        p {
                            font-weight: 400;
                            font-size: 12px;
                            line-height: 16px;
                        }

                        &.open {
                            height: 520px;
                        }
                    }
                }
            }
        }
    }

  
    .favorite h2 {
        color: #3E3E3E;
        font-size: 24px;
        font-family: Open Sans;
        font-weight: 700;
        width: 100%;
        line-height: initial;
        margin: 40px 0 56px 0;
    }

    .favorite h2:after {
        width: 24px;
        left: 50%;
        height: 3px;
        margin-left: -12px;
    }

    .favorite p {
        color: #3E3E3E;
        font-size: 17px;
        font-weight: 300;
        margin: 0 0 44px 0;
    }

    .favorite .card {
        padding: 28px 36px;
    }

    .favorite form textarea, .favorite form input[type=text] {
        grid-column: auto / span 2;
    }

    .favorite form .terms .checkbox {
        padding-left: 20px;
    }

    .favorite form .terms p {
        color: #3E3E3E;
        font-size: 8.5px;
        font-family: Open Sans;
    }

    .favorite form .btn-row {
        padding: 0;
    }

    .favorite .card .sent {
        padding: 48px 36px;
        justify-content: center;
    }

    .favorite .card .sent h2 {
        color: #3E3E3E;
        font-size: 24px;
        font-weight: 700;
        line-height: initial;
        max-width: 332px;
        margin: 0;
    }

    .favorite .card .sent h3 {
        font-size: 18px;
    }

    .favorite .card .sent .button {
        width: auto;
        align-self: stretch;
    }
}

