.kpf {
    --kpf-accent: #f0943f;
    --kpf-field-bg: #f6f7f9;
    --kpf-text: #13213a;
    --kpf-placeholder: #8c929c;
    --kpf-error: #c0392b;
    position: relative;
    max-width: 640px;
    margin: 0 auto;
    font: inherit;
    color: var(--kpf-text);
}

.kpf__title {
    margin: 0 0 24px;
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.25;
}

.kpf__row {
    display: flex;
    gap: 16px;
}

.kpf__row > .kpf__field {
    flex: 1 1 0;
    min-width: 0;
}

.kpf__field {
    position: relative;
    margin-bottom: 16px;
}

.kpf__field input,
.kpf__field textarea {
    width: 100%;
    box-sizing: border-box;
    height: 56px;
    padding: 0 20px;
    border: 0;
    border-radius: 8px;
    background: var(--kpf-field-bg);
    color: var(--kpf-text);
    font: inherit;
    font-size: 1rem;
    outline: none;
}

.kpf__field textarea {
    height: auto;
    min-height: 140px;
    padding: 16px 20px;
    resize: vertical;
}

.kpf__field input:focus,
.kpf__field textarea:focus {
    box-shadow: 0 0 0 2px var(--kpf-accent);
}

.kpf__field input::placeholder,
.kpf__field textarea::placeholder {
    color: var(--kpf-placeholder);
    opacity: 1;
}

.kpf__field--phone input {
    padding-left: 56px;
}

.kpf__prefix {
    position: absolute;
    top: 0;
    left: 20px;
    height: 56px;
    line-height: 56px;
    pointer-events: none;
}

.kpf__sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    white-space: nowrap;
}

.kpf__hint {
    margin: -4px 0 20px;
    font-size: 0.875rem;
    color: var(--kpf-placeholder);
}

.kpf__consent {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    font-weight: normal;
    cursor: pointer;
}

.kpf__consent input {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin: 0;
    accent-color: var(--kpf-accent);
}

.kpf__consent a {
    color: var(--kpf-accent);
}

.kpf__error {
    margin: 0 0 16px;
    color: var(--kpf-error);
}

.kpf__submit {
    width: 100%;
    height: 56px;
    border: 0;
    border-radius: 8px;
    background: var(--kpf-accent);
    color: #fff;
    font: inherit;
    font-size: 1.05rem;
    font-weight: 500;
    cursor: pointer;
}

.kpf__submit:disabled {
    opacity: 0.6;
    cursor: default;
}

.kpf__success {
    padding: 20px;
    border-radius: 8px;
    background: #e8f6ef;
    color: #145c40;
}

.kpf__hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 560px) {
    .kpf__row {
        flex-direction: column;
        gap: 0;
    }
}
