/* ===== Контактная форма ===== */
.cform {
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.cform * {
    box-sizing: border-box;
}

.cform__field {
    position: relative;
    margin-bottom: 24px;
}

/* ===== Поля ввода (с принудительным переопределением GP) ===== */
.cform .cform__input,
.cform .cform__textarea,
.cform input.cform__input,
.cform textarea.cform__textarea,
.cform input[type="text"].cform__input,
.cform input[type="tel"].cform__input,
.cform input[type="email"].cform__input {
    width: 100% !important;
    padding: 14px 0 !important;
    background: #fff !important;
    background-color: #fff !important;
    border: none !important;
    border-bottom: 2px solid #efefef !important;
    color: #1a1a1a !important;
    font-size: 16px !important;
    font-family: inherit !important;
    outline: none !important;
    transition: border-color 0.2s !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    line-height: 1.4 !important;
}

.cform .cform__input::placeholder,
.cform .cform__textarea::placeholder {
    color: #8b94a0 !important;
    font-size: 16px !important;
    opacity: 1 !important;
}

.cform .cform__input:hover,
.cform .cform__textarea:hover {
    background: #fff !important;
    background-color: #fff !important;
    border-bottom-color: #a0a8b2 !important;
}

.cform .cform__input:focus,
.cform .cform__textarea:focus,
.cform input.cform__input:focus,
.cform textarea.cform__textarea:focus {
    background: #fff !important;
    background-color: #fff !important;
    border-bottom-color: #1a56db !important;
    outline: none !important;
    box-shadow: none !important;
    color: #1a1a1a !important;
}

.cform .cform__textarea {
    resize: vertical !important;
    min-height: 80px !important;
    line-height: 1.4 !important;
}

/* Убираем стрелки у tel/number */
.cform .cform__input[type="tel"]::-webkit-outer-spin-button,
.cform .cform__input[type="tel"]::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* Автозаполнение Chrome — белый фон */
.cform .cform__input:-webkit-autofill,
.cform .cform__input:-webkit-autofill:hover,
.cform .cform__input:-webkit-autofill:focus,
.cform .cform__textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    -webkit-text-fill-color: #1a1a1a !important;
    background-color: #fff !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

/* Honeypot — скрыт от пользователя */
.cform .cform__honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ===== Кнопка ===== */
.cform .cform__submit,
.cform button.cform__submit,
.cform button[type="submit"].cform__submit {
    width: 100% !important;
    padding: 18px 24px !important;
    background: #1a56db !important;
    background-color: #1a56db !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    cursor: pointer !important;
    transition: background 0.2s, transform 0.1s !important;
    margin-top: 8px !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

.cform .cform__submit:hover:not(:disabled),
.cform button.cform__submit:hover:not(:disabled) {
    background: #1546b8 !important;
    background-color: #1546b8 !important;
    color: #fff !important;
}

.cform .cform__submit:active:not(:disabled) {
    transform: scale(0.98) !important;
}

.cform .cform__submit:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}

/* ===== Сообщение об ошибке/успехе ===== */
.cform__msg {
    margin-top: 16px;
    padding: 0;
    font-size: 14px;
    text-align: center;
    line-height: 1.4;
    min-height: 20px;
}

.cform__msg--ok {
    color: #00a32a;
}

.cform__msg--err {
    color: #d63638;
}

/* ===== Тёмная тема (для попапа на тёмном фоне) ===== */
.cform--dark .cform__input,
.cform--dark .cform__textarea,
.cform--dark input.cform__input,
.cform--dark textarea.cform__textarea {
    background: rgba(255, 255, 255, 0.05) !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #fff !important;
    border-bottom-color: rgba(255, 255, 255, 0.2) !important;
}

.cform--dark .cform__input::placeholder,
.cform--dark .cform__textarea::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.cform--dark .cform__input:hover,
.cform--dark .cform__textarea:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-bottom-color: rgba(255, 255, 255, 0.4) !important;
}

.cform--dark .cform__input:focus,
.cform--dark .cform__textarea:focus {
    border-bottom-color: #3b82f6 !important;
    background: rgba(255, 255, 255, 0.08) !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
}

.cform--dark .cform__input:-webkit-autofill,
.cform--dark .cform__textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #1a2942 inset !important;
    -webkit-text-fill-color: #fff !important;
}