.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
    outline: none;
    box-shadow: none;
}
.wpcf7-list-item {
    display: inline-block;
    margin: 0px;
}




.contact_form_container_main {
    width: fit-content;
    max-width: 620px;
    margin: 0 auto;
}
.form_text_block {
    width: fit-content;
    max-width: 300px;
}

.event_contact_form_textfield_main {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
	width: fit-content;
    margin-bottom: 32px;
}

.wpcf7-form-control.wpcf7-text::placeholder {
    color: #94A3B8;
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
}
.wpcf7-form-control.wpcf7-text {
    border-radius: 16px;
    border: 1px solid #CAD5E2;
    background: #FFF;
    padding: 12px 16px 12px 20px;
    color: #2D3745;
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
	max-width: 300px;
	transition: all 0.3s ease;
}
.wpcf7-form-control.wpcf7-text:active {
    border: 1px solid #7BACFC;
    background: #FFF;
    box-shadow: 0 0 0 3px rgba(171, 205, 252, 0.40);
}
.wpcf7-form-control.wpcf7-text:hover {
    border: 1px solid #7BACFC;
    background: #FFF;
    box-shadow: 0 0 0 3px rgba(171, 205, 252, 0.40);
}
.btn_main_form_contact{
    border-radius: 30px;
    background: #1E55FB;
    padding: 16px 70px;
    border: none;
    color: #FFF;
    font-size: 18px;
    font-weight: 600;
    line-height: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease-in-out;
}
.btn_main_form_contact:hover  {
    background-color: #2249BD;
}
.wpcf7-list-item-label {
    color: #526074;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}
.wpcf7-list-item-label a {
    color: #004bff;
    text-decoration: none;
	pointer-events: auto; 
}

.form_text_block_checkbox_nda {
    margin-bottom: 56px;
}
.send_btnrecaptcha {
    display: flex;
    flex-wrap: wrap;
    justify-content: end;
    margin-bottom: 32px;
}
.form_button_contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: end;
}
.wpcf7-not-valid-tip {
    display: block;
    color: #F82A4D;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    margin-top: 4px;
}
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.payment-required .wpcf7-response-output {
    border-color: #F82A4D;
    color: #F82A4D;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    border-radius: 5px;
    padding: 12px;
}
.wpcf7-form-control.wpcf7-text.wpcf7-not-valid {
    border: 1px solid #F82A4D;
    box-shadow: 0 0 0 3px rgba(252, 166, 165, 0.40);
}
/*  */

/* Основной label — текст не кликабельный */
.form_text_block_checkbox_nda .wpcf7-list-item label {
    position: relative;
    display: inline-flex;
    align-items: center;
    pointer-events: none; /* текст не кликается */
}

/* Сам input — кликабельный */
.form_text_block_checkbox_nda .wpcf7-list-item input[type=checkbox] {
    position: absolute;
    left: 0;
    top: -4px;
    width: 32px;
    height: 32px;
    opacity: 0;
    cursor: pointer;
    pointer-events: auto;
    z-index: 2;
}

/* Текст */
.form_text_block_checkbox_nda .wpcf7-list-item-label {
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    padding-left: 44px;
}

/* Пустой чекбокс */
.form_text_block_checkbox_nda .wpcf7-list-item-label:before {
    content: "";
    position: absolute;
    left: 0;
    top: -4px;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 2px solid #4A84FB;
    background: #FFF;
    pointer-events: auto;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Hover только если чекбокс НЕ отмечен */
.form_text_block_checkbox_nda .wpcf7-list-item input[type=checkbox]:not(:checked):hover + .wpcf7-list-item-label:before {
    box-shadow: 0 0 0 3px rgba(171, 205, 252, 0.40);
}

/* Активное состояние */
.form_text_block_checkbox_nda .wpcf7-list-item input[type=checkbox]:checked + .wpcf7-list-item-label:before {
    background-color: #1E55FB;
    border-color: #1E55FB;
    background-image: url(/wp-content/uploads/2026/01/check.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px;
    box-shadow: none;
}
.form_text_block_checkbox_nda .wpcf7-list-item input[type=checkbox][aria-invalid="true"] + .wpcf7-list-item-label:before {
    border: 1px solid #FC6879 !important;
    box-shadow: 0 0 0 3px rgba(252, 166, 165, 0.40) !important;
}


/*  */
@media (max-width: 768px) {
	.event_contact_form_textfield_main {
		grid-template-columns: repeat(1, 1fr);
		margin-bottom: 28px;
		width: 100%;
	}
    .form_text_block {
        width: 100%;
        max-width: 100%;
    }
	.wpcf7-form-control.wpcf7-text {
		max-width: 100%;;
		width: 100%;
	}
	.btn_main_form_contact {
		width: 100%;
		display: flex;
		justify-content: center;
	}
}
