*::-webkit-scrollbar {
    display: none;
}

* {
    scrollbar-width: none;
    overflow: -moz-scrollbars-none;
    -ms-overflow-style: none;
}


/* kontakt */

.kontakt {
    background: var(--form-gradient);
    /* margin: 8em; */
    padding: 4em;
    width: auto;
    align-self: center;
    display: grid;
    grid-template-columns: 40% 2fr 3fr;
    grid-template-rows: repeat(8 1fr);
    gap: 2em 4em;
    color: white;
    font-weight: var(--font-bold);
    border-radius: 10px 10px 0 0;
}

.kontakt input {
    width: 100%;
    height: initial;
    background: var(--form-input-gradient);
    border: 0;
    font-family: Montserrat;
    padding: 12px;
    font-size: 1.5em;
}

.kontakt-header {
    font-weight: var(--font-medium);
    width: 100%;
    font-size: 4em;
    line-height: 1.5em;
    grid-column: 1;
    grid-row: 1/4;
    text-align: center;
    height: fit-content;
}

.kontakt p{
    font-size: 100%;
    text-align: center;
}

.kontakt-info {
    display: flex;
    flex-direction: column;
    place-items: center;
    /* justify-content: space-evenly; */
    font-weight: var(--font-regular);
    width: 100%;
    font-size: 1.6em;
    line-height: 250%;
    grid-column: 1;
    grid-row: 5/9;
}


.kontakt-zdjecie{
    display: flex;
    justify-content: center;
    grid-column: 1;
    grid-row: 2/9;
    padding-top: 40px;
    margin: 0;
}

.kontakt-info img {
    width: 1.5em;
}

.kontakt label {
    font-size: 1.42em;
    font-weight: var(--font-regular);
}

.kontakt-message {
    grid-column: 2/4;
    grid-row: 5;
}

.kontakt-message textarea {
    font-family: Montserrat;
    width: 100%;
    height: 70%;
    border: 0;
    border-radius: 0;
    font-size: 1.5em;
    background: var(--form-input-gradient);
}

.kontakt-name {
    grid-column: 2;
    grid-row: 1;
}

.kontakt-lastname {
    grid-column: 3;
    grid-row: 1;
}

.kontakt-company {
    grid-column: 2/4;
    grid-row: 2;
}

.kontakt-phone-number {
    grid-column: 2/4;
    grid-row: 3;
}

.kontakt-mail {
    grid-column: 2/4;
    grid-row: 4;
}

.kontakt-agree {
    grid-column: 2/4;
    grid-row: 6;
    margin-top: 2em;
    font-size: 0.8em;
    font-weight: var(--font-regular);
    display: flex;
    align-items: flex-start;
}

.kontakt-agree label {
    width: 100%;
    height: 10%;
}

.kontakt-agree input {
    width: 1.5em;
    height: 1.5em;
    margin-right: 1em;
}

.kontakt-necessary {
    font-weight: var(--font-regular);
    font-size: 0.8em;
    grid-column: 2;
    grid-row: 7;
}

.kontakt-submit {
    grid-column: 2/4;
    grid-row: 8;
}

.kontakt-submit button {
    width: 100%;
    height: 2em;
    border-radius: 0.5em;
    border: 1px solid white;
    background: var(--button-gradient);
    color: white;
    font-size: 1.6em;
    font-weight: var(--font-regular);
    z-index: 1;
    position: relative;
}

.kontakt-submit button::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: -1;
    border-radius: 0.5em;
    opacity: 0;
    transition: opacity 0.15s ease-in;
    background: var(--button-gradient-inversed);
    font-weight: var(--font-regular);
}

.kontakt-submit button:hover::before {
    opacity: 1;
}


/* media quieries */
@media (min-width: 1600px){
    .kontakt-zdjecie{
        padding-top: 40px;
    }
    .kontakt-zdjecie img{
        width: 500px;
        height: 352px;
    }
}
@media (min-width: 1000px) and (max-width: 1600px){
    .kontakt-zdjecie img{
        width: 300px;
        height: 212px;
    }
    .kontakt-zdjecie{
        padding-top: 0;
        grid-row: 3/9;
    }
}
@media (min-width: 1000px){
    .kontakt-message textarea {
        height: 100%;
    }
}

@media (max-width: 1000px) {
    .kontakt {
        padding: 5em;
        border-radius: 10px 10px 0 0;
        font-size: 0.33em;
        margin: .5em 0 .5em 0;
        grid-template-columns: 1fr 2fr 3fr;
    }
    .kontakt-zdjecie{
        padding-top: 40px;
    }

    .kontakt input {
        padding: 3px
    }
}

@media (min-width: 800px) and (max-width: 1000px) {
    .kontakt-zdjecie img{
        width: 100px;
        height: 71px;
    }
    .kontakt-zdjecie{
        padding-top: 40px;
    }
    #contact-submit{
        height: 3em;
    }

    #agree{
        width: initial;
        height: initial;
        margin-right: .5em;
    }

    .kontakt input{
        height: initial;
    }

    .kontakt-info{
        display: flex;
        flex-direction: column;
        place-items: center;
        justify-content: space-evenly;
    }
    
    .kontakt-header{
        display: flex;
        place-items: center;
        justify-content: center;
        text-align: center;
    }

    .kontakt textarea{
        margin-bottom: 0;
    }

    .kontakt-agree{
        margin-top: 0;
    }

    .kontakt-name, .kontakt-lastname, .kontakt-company, .kontakt-phone-number, .kontakt-mail, .kontakt-message, .kontakt-agree, .kontakt-necessary{
        padding: 0 2em 0 2em;
    }
}

@media (max-width: 800px) {
    .kontakt-zdjecie img{
        width: 100px;
        height: 71px;
    }
    .kontakt-zdjecie{
        padding: 0;
    }
    .kontakt {
        display: flex;
        flex-direction: column;
        border-radius: 10px 10px 0 0;
        padding: 3em;
        margin: 0;
    }

    .kontakt-info{
        display: flex;
        flex-wrap: wrap;
        gap: 2em;
    }

    #agree{
        width: initial;
        height: initial;
        margin-right: .5em;
    }

    .kontakt-message, .kontakt-agree, #message{
        margin: 0;
    }

    #contact-submit{
        height: 3em;
    }
}