.wpcf7 {
	padding: 120px 0;
}
.form-container {
    max-width: 100%; /* Zmieniono z 900px na 100% */
    margin: 0 auto;
    font-family: 'Inter', sans-serif;
}

/* --- Kolorystyka główna --- */
:root {
    --kolor-glowny: #312C2A; /* Ciemny brąz/czerń */
    --kolor-akcentu: #bcaA9a; /* Złoty/jasny brąz */
    --kolor-tekstu: #333333;
    --kolor-tla-aktywny: #312C2A;
    --kolor-tekstu-aktywny: #ffffff;
}

/* --- Style dla nagłówków i separatorów --- */
.form-container h3 {
    overflow: hidden;
	color: var(--KTI-GREY, #363844);
	font-family: Inter;
	font-size: 20px;
	font-style: normal;
	font-weight: 400;
	line-height: 120%; /* 24px */
	letter-spacing: -0.6px;
    margin-top: 40px;
    margin-bottom: 20px;
}

[data-name="profil-klienta"] + .form-grid-2 {
	margin-top: 12px;
}

.form-container h4 {
    overflow: hidden;
	color: var(--KTI-GREY, #363844);

	text-overflow: ellipsis;
	white-space: nowrap;
	font-family: Inter;
	font-size: 20px;
	font-style: normal;
	font-weight: 400;
	line-height: 120%; /* 24px */
	letter-spacing: -0.6px;
    margin-top: 30px;
    margin-bottom: 15px;
}

/* --- Układ siatki (grid) --- */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.form-grid-2 + .form-grid-2 {
	margin-top: 40px;
}

/* --- Style dla etykiet i pól tekstowych --- */
.form-container div:not(.acceptance-field) label {
    color: var(--kolor-tekstu);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    display: block;
    margin-bottom: 8px;
}

.acceptance-field .wpcf7-list-item {
    padding-left: 20px !important;
}

.form-container input[type="text"],
.form-container input[type="email"],
.form-container input[type="tel"],
.form-container textarea {
    display: block;
    width: 100%;
    color: var(--kolor-tekstu);
    font-size: 16px;
    padding: 10px 5px;
    border: none;
    background: transparent;
    border-bottom: 1px solid var(--kolor-glowny);
    transition: border-color 0.3s;
}

.form-container input:focus,
.form-container textarea:focus {
    outline: none;
    border-bottom: 2px solid var(--kolor-glowny);
}

.form-container ::placeholder {
    color: var(--kolor-tekstu);
    opacity: 0.6;
    font-weight: 300;
}

/* --- Pole "inny" - domyślnie ukryte --- */
.conditional-field {
    display: none;
}


/* --- Style dla przycisków Checkbox i Radio jako pigułki --- */
.wpcf7-form-control-wrap .wpcf7-checkbox,
.wpcf7-form-control-wrap .wpcf7-radio {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.wpcf7-list-item {
    margin: 0 !important;
}

.wpcf7-list-item label {
    margin-bottom: 0;
}

.wpcf7-list-item input[type="checkbox"],
.wpcf7-list-item input[type="radio"] {
    display: none;
}

:not(.wpcf7-acceptance)>.wpcf7-list-item .wpcf7-list-item-label {
    display: block;
    padding: 12px 24px;
    border-radius: 50px;
	border: 1px solid var(--KTI-GREY, #363844);
    color: var(--kolor-glowny);
    color: var(--KTI-GREY, #363844);
	font-family: Inter;
	font-size: 16px;
	font-style: normal;
	font-weight: 300;
	line-height: 110%; /* 17.6px */
    cursor: pointer;
    transition: all 0.3s ease;
}

.acceptance-field,
.acceptance-field * {
	color: var(--KTI-LIGHT-GREY, #D7D7D7);
	font-family: Inter;
	font-size: 16px;
	font-style: normal;
	font-weight: 300;
	line-height: 150%; /* 24px */
}

.acceptance-field .wpcf7-acceptance .wpcf7-list-item-label {
	position: relative;
	transition: 300ms;
}

.acceptance-field .wpcf7-acceptance .wpcf7-list-item-label:before {
	position: absolute;
	content: " ";
	display: block;
	top: 2px;
	left:-20px;
	width: 12px;
	height: 12px;
	border: 1px solid var(--KTI-LIGHT-GREY, #D7D7D7);
}


.acceptance-field .wpcf7-acceptance input:checked + .wpcf7-list-item-label:after {
	position: absolute;
	content: "✓";
	display: block;
	top: -1px;
	left:-18px;
	font-size: 12px;
}

.acceptance-field .wpcf7-acceptance input:checked + .wpcf7-list-item-label:before {
	border-color: #363844;
}

.acceptance-field .wpcf7-acceptance input:checked + .wpcf7-list-item-label {
	color: #363844;
}

.wpcf7 .wpcf7-submit {
    margin-right: 0;
    margin-left: auto;
}

:not(.wpcf7-acceptance)>.wpcf7-list-item input:checked + .wpcf7-list-item-label {
	border-radius: 30px;
	color: var(--KTI-GREY, #363844);
	font-family: Inter;
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	line-height: 110%; /* 17.6px */
	border: 1px solid var(--KTI-GREY, #363844);
}

/* --- Style dla pól zgody --- */
.acceptance-field {
    margin-top: 20px;
}

.acceptance-field + .acceptance-field {
    margin-top: 10px;
}
.wpcf7-acceptance .wpcf7-list-item-label {
    font-size: 14px;
    font-weight: 400;
}
.wpcf7-acceptance a {
    color: var(--kolor-glowny);
    text-decoration: underline;
}

/* --- Przycisk "Wyślij" --- */
.form-container input[type="submit"] {
    display: block;
    margin-top: 40px;
    color: var(--kolor-tla-aktywny);
    background-color: #fff;
    font-size: 18px;
    font-weight: 500;
    border-radius: 50px;
    border: 1px solid var(--kolor-tla-aktywny);
    padding: 15px 40px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-container input[type="submit"]:hover {
    background-color: var(--kolor-tla-aktywny);
    color: #fff;
    border: 1px solid var(--kolor-tla-aktywny);
}

/* --- Komunikaty walidacji --- */
.wpcf7-not-valid-tip {
    color: #d93025;
    font-size: 12px;
    margin-top: 5px;
}
.wpcf7 form .wpcf7-response-output {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

/* --- Style responsywne --- */
@media (max-width: 996px) {
    .wpcf7 {
        padding-bottom: 20px;
    }

    :not(.wpcf7-acceptance)>.wpcf7-list-item .wpcf7-list-item-label {
        padding: 14px 30px;
        color: var(--KTI-GREY, #363844);
        border-radius: 30px;
        border: 1px solid var(--KTI-LIGHT-GREY, #D7D7D7);
        font-family: Inter;
        font-size: 16px;
        font-style: normal;
        font-weight: 300;
        line-height: 110%; 
    }
    .form-grid-2 {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .form-container h3 {
        color: var(--KTI-GREY, #363844);
        margin: 40px auto 25px auto;
        /* KTI – Mobile/Large 4 */
        font-family: Inter;
        font-size: 26px;
        font-style: normal;
        font-weight: 400;
        line-height: 105%; /* 27.3px */
        letter-spacing: -0.52px;
    }
    .form-container h4 {
        color: var(--KTI-GREY, #363844);
        margin: 20px auto;
        font-family: Inter;
        font-size: 19px;
        font-style: normal;
        font-weight: 500;
        line-height: 120%; /* 22.8px */
        letter-spacing: -0.57px;
    }
    .wpcf7-list-item .wpcf7-list-item-label {
        padding: 0;
        font-size: 13px;
    }
    .form-container input[type="submit"] {
        width: 100%;
        font-size: 16px;
    }
}