.cf7-contact-form {
    background: #fff;
    border: 1px solid #E2E5EA;
    border-radius: 12px;
    padding: 33px 35px 30px 35px;
    margin: 0 0 20px 0;
    box-shadow: 0px 1px 2px 0px #0F121A0D, 0px 8px 24px -4px #0F121A0F;
    font-family: 'Inter', 'arial', 'san-serif';
}
.cf7-contact-form p {
    margin: 0;
}

h2.cf7-contact-form__title {
    font-size: 18px;
    font-weight: 700;
    color: #0F1319;
    margin: 0 0 20px;
    line-height: 26px;
}

.cf7-row {
    display: flex;
    gap: 18px;
}

.cf7-field {
    flex: 1;
    margin-bottom: 20px;
}

.cf7-field label {
    display: block;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: #0F1319;
    margin-bottom: 10px;
}

/* ===== Инпуты, textarea, select ===== */
.cf7-contact-form input[type="text"],
.cf7-contact-form input[type="email"],
.cf7-contact-form textarea,
.cf7-contact-form select {
    width: 100%;
    border: 1px solid #E2E5EA;
    border-radius: 10px;
    padding: 13px 20px;
    font-size: 16px;
    color: #0F1319;
    background-color: #fff;
    font-family: inherit;
    transition: border-color .2s ease;
    line-height: 20px;
}

.cf7-contact-form input::placeholder,
.cf7-contact-form textarea::placeholder {
    color: #6B7280;
}

.cf7-contact-form input:focus,
.cf7-contact-form textarea:focus,
.cf7-contact-form select:focus {
    outline: none;
    border-color: #6366f1;
}

.cf7-contact-form textarea {
    min-height: 120px;
    resize: none;
    max-height: 120px;
}

/* ===== Select: убираем нативную стрелку, ставим свою ===== */
.cf7-contact-form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236c757d' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}
/* ===== Скрываем нативный select визуально, но оставляем для формы ===== */
.cf7-native-select--hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* ===== Кастомный dropdown ===== */
.cf7-dropdown {
    position: relative;
}

.cf7-dropdown__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #e2e5ea;
    border-radius: 10px;
    padding: 12px 16px;
    background-color: #fff;
    font-size: 15px;
    color: #1c1c1f;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: border-color .2s ease;
}

.cf7-dropdown__trigger:hover {
    border-color: #c9cdd4;
}

.cf7-dropdown.is-open .cf7-dropdown__trigger {
    border-color: #6366f1;
}

.cf7-dropdown__trigger.is-invalid {
    border-color: #dc3545 !important;
}

.cf7-dropdown__trigger-text.is-placeholder {
    color: #9a9aa2;
}

.cf7-dropdown__arrow {
    width: 10px;
    height: 6px;
    flex-shrink: 0;
    margin-left: 12px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236c757d' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transition: transform .2s ease;
}

.cf7-dropdown.is-open .cf7-dropdown__arrow {
    transform: rotate(180deg);
}

/* ===== Список (скрыт по умолчанию) ===== */
.cf7-dropdown__list {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #E2E5EA;
    border-radius: 12px;
    box-shadow: 0px 1px 2px 0px #0F121A0D, 0px 8px 24px -4px #0F121A0F;
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}

.cf7-dropdown.is-open .cf7-dropdown__list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cf7-dropdown__item {
    padding: 12px 17px !important;
    font-size: 16px;
    line-height: 25px;
    color: #0F1319;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color .15s ease;
    color: #4B5361;
}
.cf7-dropdown__item::after {
    display: none !important;
}

.cf7-dropdown__item:hover {
    background-color: #F7F8FA;
    color: #4B5361;
}

.cf7-dropdown__item.is-active {
    background-color: #F7F8FA;
    color: #0F1319;
}

/* ===== Кнопка отправки ===== */
.cf7-contact-form input[type="submit"] {
    background-color: #6366F1;
    color: #fff;
    border: 1px solid #6366F1;
    border-radius: 12px;
    padding: 15px 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s ease;
    line-height: 20px;
    font-family: 'Inter', 'arial', 'san-serif';
}

.cf7-contact-form input[type="submit"]:hover {
    background-color: #4f52e0;
}

/* ===== Ошибки валидации CF7 ===== */
.cf7-contact-form .wpcf7-not-valid-tip {
    color: #dc3545;
    font-size: 13px;
    margin-top: 6px;
}

.cf7-contact-form .wpcf7-not-valid {
    border-color: #dc3545 !important;
}

.cf7-contact-form .wpcf7-response-output {
    margin-top: 16px;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
}

.wpcf7 .wpcf7-response-output {
  display: none !important;
}

@media (max-width: 575.98px) {
    .cf7-contact-form {
        padding: 24px;
    }

    .cf7-row {
        flex-direction: column;
        gap: 0;
    }
}