/* Forme (kontakt, plaćanje): polja, kružni checkbox, dugme, poruke. Učitava se uz CSS strane (route 'css'). */
.form { position: relative; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__fields { display: flex; flex-wrap: wrap; margin: 0 -4px -8px; }
.form__group {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 8px;
    padding: 0 4px;
}
.form__group--50 { width: 50%; }
.form__field {
    display: block;
    width: 100%;
    height: 40px;
    margin: 0;
    padding: 25px 16px;
    border: 1px solid #D3D3D3;
    border-radius: 4px;
    background: #fff;
    color: #1E1E1E;
    font-family: "Poppins", Sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: -1px;
    box-shadow: none;
    outline: none;
}
.form__field--area {
    height: auto;
    padding: 5px 14px;
    font-size: 15px;
    line-height: 1.4;
    resize: vertical;
}
.form__field::placeholder { color: inherit; font-family: inherit; opacity: .75; } /* kontrast ≥ 4.5:1 */
.form__field:focus { border-color: #1E1E1E; }
.form__field.is-invalid, .form__check.is-invalid + .form__check-label::before { border-color: #d9534f; }

.form__group--check {
    margin: 0 4px 8px;
    padding: 15px 4px;
    border: 1px solid #D3D3D3;
    border-radius: 4px;
}
.form__opt { display: block; }
.form__check { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.form__check-label {
    position: relative;
    padding-left: 40px;
    color: #1E1E1E;
    font-family: "Poppins", Sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: -1px;
    cursor: pointer;
}
.form__check-label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 1px solid #333;
    border-radius: 50%;
    background: transparent no-repeat center center / 10px 10px;
}
.form__check:checked + .form__check-label::before { background-image: url("../img/circle-checkbox.svg"); }
.form__check:focus-visible + .form__check-label::before { outline: 2px solid #1E1E1E; outline-offset: 2px; }
@media (max-width: 800px) {
    .form__check-label { font-size: 12px; }
    .form__check-label::before { margin-top: -1px; }
}

.form__btn {
    display: block;
    width: 100%;
    padding: 20px 60px;
    border: 1px dashed #1E1E1E;
    border-radius: 4px;
    background: transparent;
    color: #1E1E1E;
    font-family: "Poppins", Sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -1px;
    cursor: pointer;
    transition: all .3s;
}
.form__btn > span { display: flex; justify-content: center; }
.form__btn:hover, .form__btn:focus { background: #1E1E1E; color: #fff; border-color: transparent; }
.form__btn:disabled { opacity: .6; cursor: wait; }

.form__err {
    display: block;
    width: 100%;
    margin-top: 4px;
    color: #c0392b;
    font-size: .9em;
    line-height: 1.4;
}
.form__msg { margin: 10px 0; font-size: 1em; line-height: 1; }
.form__msg:empty { display: none; }
.form__msg--ok { color: #2e7d32; }
.form__msg--err { color: #c0392b; }
@media (max-width: 1024px) {
    .form__group--50 { width: 100%; }
}
