.contact-form .contact-form-wrapper {
    border-top: 1px solid #eee;
    padding: 24px 0;
}

.contact-form .contact-form-title {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 0 24px;
}

.contact-form .contact-form-title h2 {
    font-size: calc(2rem * var(--font-scale));
    font-weight: 700;
}

.contact-form .contact-form-title p {
    font-size: calc(1.4rem * var(--font-scale));
    font-weight: 500;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-form form>div {
    position: relative;
}

.contact-form form>div>label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: calc(1.8rem * var(--font-scale));
    font-weight: 600;
    color: #212121;
}

.contact-form form .wpcf7-textarea {
    height: 282px;
}

.contact-form form .wpcf7-textarea,
.contact-form form .wpcf7-tel,
.contact-form form .wpcf7-text {
    border-radius: 4px;
    border: 1px solid #FAFAFA;
    background: #FAFAFA;
    padding: 18px 20px;
    font-size: calc(1.8rem * var(--font-scale));
    font-weight: 300;
    color: #9e9e9e;
    max-width: 100%;
    width: 100%;
}

.contact-form .wpcf7-submit {
    cursor: pointer;
    color: #fff;
    background-color: #C5A178;
    padding: 16px;
    margin: 24px 0 36px;
    border: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 420px;
    border-radius: 10px;
}

.contact-form .wpcf7-form-control-wrap[data-name="your-name"],
.contact-form .wpcf7-form-control-wrap[data-name="your-email"] {
    position: relative;
}

.contact-form .wpcf7-form-control-wrap[data-name="your-name"] .wpcf7-text,
.contact-form .wpcf7-form-control-wrap[data-name="your-email"] .wpcf7-text {
    padding-left: 48px;
}

.contact-form .wpcf7-form-control-wrap[data-name="your-name"]::before,
.contact-form .wpcf7-form-control-wrap[data-name="your-email"]::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background-repeat: no-repeat;
    background-size: cover;

}

.contact-form .wpcf7-form-control-wrap[data-name="your-name"]::before {
    background-image: url(../../assets/images/contact-name.svg);
    width: 14px;
    height: 17px;
}

.contact-form .wpcf7-form-control-wrap[data-name="your-email"]::before {
    background-image: url(../../assets/images/contact-mail.svg);
    width: 18px;
    height: 15px;
}

.contact-form .iti__selected-dial-code {
    display: none;
}

/* Ukryj checkbox */
.contact-form .wpcf7-acceptance input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

/* Styluj element z tekstem jako toggle switch */
.contact-form .wpcf7-list-item-label {
    position: relative;
    padding-left: 60px;
    cursor: pointer;
    display: inline-block;
    line-height: 24px;
    font-size: calc(1.8rem * var(--font-scale));
    font-weight: 500;
    color: #212121;
}

/* Suwak (tło) */
.contact-form .wpcf7-list-item-label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 24px;
    background-color: #E2DFD9;
    border-radius: 20px;
    transition: background-color 0.3s;
}

/* Kółeczko */
.contact-form .wpcf7-list-item-label::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

/* Gdy zaznaczony */
.contact-form .wpcf7-acceptance input[type="checkbox"]:checked+.wpcf7-list-item-label::before {
    background-color: #C5A178;
}

.contact-form .wpcf7-acceptance input[type="checkbox"]:checked+.wpcf7-list-item-label::after {
    transform: translateY(-50%) translateX(20px);
}

.contact-form .wpcf7-not-valid-tip {
    position: absolute;
    left: 0;
    top: 100%;
}

@media (min-width:991px) {
    .contact-form form {
        max-width: calc(50% - 12px);
    }
}

/* iti */

.iti {
    width: 100%;
}

.contact-form .wpcf7-list-item {
    margin: 0;
}


/* iti */

/* contrast */

.contrast-yellow-black .contact-form .contact-form-wrapper {
    border-color: var(--wcag-black);
}

.contrast-black-yellow .contact-form form .wpcf7-textarea,
.contrast-black-yellow .contact-form form .wpcf7-tel,
.contrast-black-yellow .contact-form form .wpcf7-text {
    border-color: #fff;
    color: var(--wcag-black) !important;
}

.contrast-yellow-black .contact-form .wpcf7-form-control-wrap[data-name="your-name"]::before,
.contrast-yellow-black .contact-form .wpcf7-form-control-wrap[data-name="your-email"]::before,
.contrast-black-yellow .contact-form .wpcf7-form-control-wrap[data-name="your-name"]::before,
.contrast-black-yellow .contact-form .wpcf7-form-control-wrap[data-name="your-email"]::before {
    filter: brightness(0);
}

.contrast-yellow-black .contact-form .wpcf7-list-item-label::before {
    background-color: var(--wcag-black);
}

.contrast-black-yellow .contact-form .wpcf7-list-item-label::before {
    background-color: var(--wcag-yellow);
}

.contrast-black-yellow .contact-form .wpcf7-list-item-label::after {
    background-color: var(--wcag-black);
}

.contrast-yellow-black .contact-form .wpcf7-submit {
    background-color: var(--wcag-black);
    color: #fff!important;
}
.contrast-black-yellow .contact-form .wpcf7-submit {
    background-color: #fff;
    color: var(--wcag-black)!important;
}

/* contrast */