/***********************************************************************
 *  Formulář na podstránkách (nad patičkou) + děkovná stránka
 *  Vychází ze stylů formuláře v kontakt.css
 **********************************************************************/
#form-error {
    display: none;
}

#form-error p {
    color: #D9534F;
}

form input[type=button]:disabled {
    cursor: wait;
    opacity: .6;
}

.page-form {
    padding: 80px 0 200px;
    position: relative;
}

/* obsah nad formulářem měl spodní odsazení počítané pro patičku */
section:has(+ .page-form) {
    padding-bottom: 0;
}

section:has(+ .page-form) > .margin2 > :last-child {
    margin-bottom: 0;
}

.page-form .form {
    width: 100%;
    box-shadow: 0px 4px 25px rgba(23, 23, 23, 0.08);
    border-radius: 0px 200px 0px 0px;
    padding: 102px 25% 102px 180px;
    background: white;
    position: relative;
}

.page-form .form h2 {
    position: relative;
    margin-bottom: 120px;
}

.page-form .form h2::after {
    content: "";
    position: absolute;
    width: 97px;
    height: 3px;
    background: var(--gold);
    left: 0;
    top: 80px;
}

.page-form form .flex {
    display: flex;
    justify-content: space-between;
}

.page-form form .flex:nth-of-type(1) p {
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-weight: bold;
    color: #171717;
    font-size: 14px;
    line-height: 16px;
    margin-bottom: 12px;
}

.page-form form .flex p:nth-of-type(2),
.page-form form .flex p:nth-of-type(3) {
    margin-top: 32px;
}

.page-form form .flex:nth-of-type(1) div:nth-of-type(2) p {
    margin-bottom: 30px;
}

.page-form form .flex p span {
    color: var(--gold);
    font-weight: normal;
}

.page-form form .flex:nth-of-type(1) div:nth-of-type(1) {
    width: 40%;
}

.page-form form .flex:nth-of-type(1) div:nth-of-type(2) {
    width: 50%;
}

.page-form form .flex:nth-of-type(2) {
    margin-top: 40px;
    align-items: baseline;
}

.page-form .agree {
    font-size: 14px;
    line-height: 18px;
    color: #BEBEBE;
    margin-top: 25px;
}

.page-form .agree a {
    color: #BEBEBE;
}

.page-form form input[type=text],
.page-form form textarea {
    font-size: 18px;
    font-family: 'Nunito Sans', sans-serif;
    width: 100%;
    height: 50px;
    border: 0px;
    color: #171717;
    background-color: unset;
    border-bottom: 2px solid #F4F4F4;
    outline: none;
    border-radius: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: .5s;
}

.page-form form textarea {
    resize: none;
    height: 200px;
}

.page-form form input[type=text]::placeholder,
.page-form form textarea::placeholder {
    color: #BEBEBE;
}

.page-form form input[type=button] {
    border: none;
    display: block;
    cursor: pointer;
    text-transform: uppercase;
    outline: none;
    overflow: hidden;
    position: relative;
    font-weight: bold;
    font-size: 16px;
    line-height: 19px;
    letter-spacing: 0.03em;
    color: #171717;
    background: var(--gold2);
    padding: 24px 65px;
    transition: background .5s;
    -webkit-appearance: none;
}

.page-form form input[type=button]:hover {
    background: var(--gold);
}

.page-form form input[type=text].wrong,
.page-form form textarea.wrong {
    border-bottom: 2px solid red;
}

/* Děkovná stránka */
.thanks .form p {
    color: #171717;
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.thanks .form p a {
    color: #171717;
    font-weight: 600;
}

.thanks .form h2 {
    margin-bottom: 100px;
}

.thanks-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 56px;
}

.thanks-buttons .btn {
    margin: 0 48px 0 0;
}

.thanks-buttons > a:not(.btn) {
    color: #171717;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 4px;
}

.thanks-buttons > a:not(.btn):hover {
    color: var(--gold);
}

/***********************************************************************
 *  Responzivity
 **********************************************************************/
@media screen and (max-width: 1550px) {
    .page-form .form {
        padding: 80px 22% 80px 100px;
    }
}

@media screen and (max-width: 1350px) {
    .page-form .form {
        padding: 60px 20% 60px 80px;
    }
}

@media screen and (max-width: 1100px) {
    .page-form .form h2 {
        margin-bottom: 90px;
    }

    .page-form .form {
        padding: 60px 15% 60px 60px;
    }

    .page-form .form h2::after {
        top: 65px;
    }
}

@media screen and (max-width: 1000px) {
    .page-form form input[type=button] {
        padding: 18px 50px;
        font-size: 14px;
    }
}

@media screen and (max-width: 900px) {
    .page-form .form {
        padding: 50px 13% 40px 60px;
    }

    .page-form .form h2 {
        margin-bottom: 70px;
    }
}

@media screen and (max-width: 800px) {
    .page-form {
        padding: 40px 0 160px;
    }

    .page-form .form {
        padding: 60px 10% 40px 10%;
        width: 90%;
        margin: 0 auto;
    }

    .page-form form .flex {
        flex-wrap: wrap;
        flex-direction: column;
    }

    .page-form form .flex:nth-of-type(1) div:nth-of-type(2) {
        margin-top: 40px;
        width: 70%;
    }

    .page-form form .flex:nth-of-type(1) div:nth-of-type(1) {
        width: 70%;
    }

    #form-error {
        margin-top: 40px;
    }

    .thanks-buttons .btn {
        margin: 0 0 32px 0;
    }
}

@media screen and (max-width: 700px) {
    .page-form .form {
        width: 100%;
    }
}

@media screen and (max-width: 500px) {
    .page-form form .flex:nth-of-type(1) div:nth-of-type(1),
    .page-form form .flex:nth-of-type(1) div:nth-of-type(2) {
        width: 90%;
    }

    .page-form .form {
        border-radius: 0px 130px 0px 0px;
        padding: 40px 10% 30px 10%;
    }

    .page-form form .flex:nth-of-type(2) {
        margin-top: 30px;
    }

    .thanks .form p {
        font-size: 17px;
    }
}

@media screen and (max-width: 400px) {
    .page-form .form h2 {
        margin-bottom: 45px;
    }

    .page-form .form h2::after {
        top: 50px;
        width: 70px;
        height: 2px;
    }
}

@media screen and (max-width: 380px) {
    .page-form form .flex:nth-of-type(1) div:nth-of-type(1),
    .page-form form .flex:nth-of-type(1) div:nth-of-type(2) {
        width: 100%;
    }

    .page-form form .flex:nth-of-type(1) p,
    .page-form form .flex:nth-of-type(1) div:nth-of-type(2) p {
        margin-bottom: 0;
        font-size: 13px;
    }

    .page-form form textarea {
        margin-top: 10px;
        height: 100px;
    }

    .page-form form input[type=text],
    .page-form form textarea {
        font-size: 16px;
    }

    .page-form .form {
        border-radius: 0px 90px 0px 0px;
        padding: 30px 8% 25px 8%;
    }

    .page-form form input[type=button] {
        padding: 15px 40px;
        font-size: 13px;
    }

    .page-form form .flex:nth-of-type(2) {
        margin-top: 20px;
    }
}
