.kaf-wrap {
    --kaf-accent: #f9a400;
    --kaf-accent-strong: #f0a000;
    --kaf-text: #062244;
    --kaf-muted: #75798a;
    --kaf-border: #e2e7ee;
    --kaf-card: #f5f5f5;
    color: var(--kaf-text);
    font-family: inherit;
    width: 100%;
}

.kaf-wrap *,
.kaf-wrap *::before,
.kaf-wrap *::after {
    box-sizing: border-box;
}

.kaf-alert {
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.45;
    margin: 0 0 18px;
    padding: 13px 16px;
}

.kaf-alert-success {
    background: #eef8f0;
    border: 1px solid #bce0c3;
    color: #1c6b31;
}

.kaf-alert-error {
    background: #fff2f1;
    border: 1px solid #f1c7c2;
    color: #9f2c20;
}

.kaf-form {
    display: grid;
    gap: 24px;
}

.kaf-choice-grid {
    display: grid;
    gap: 50px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kaf-choice-card {
    cursor: pointer;
    display: block;
    min-width: 0;
}

.kaf-choice-input {
    opacity: 0;
    position: absolute;
    pointer-events: none;
}

.kaf-choice-inner {
    background: var(--kaf-card);
    border: 1px solid transparent;
    border-radius: 12px;
    display: grid;
    min-height: 217px;
    padding: 38px;
    position: relative;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.kaf-choice-card:hover .kaf-choice-inner,
.kaf-choice-input:focus-visible + .kaf-choice-inner {
    border-color: rgba(249, 164, 0, 0.45);
    box-shadow: 0 16px 34px rgba(6, 34, 68, 0.08);
}

.kaf-choice-input:checked + .kaf-choice-inner {
    border-color: rgba(249, 164, 0, 0.75);
}

.kaf-icon {
    align-items: center;
    background: linear-gradient(180deg, #ffb51c 0%, #ec9a00 100%);
    border-radius: 13px;
    color: #fff;
    display: inline-flex;
    height: 74px;
    justify-content: center;
    width: 78px;
}

.kaf-icon svg {
    display: block;
    height: 38px;
    width: 38px;
}

.kaf-check {
    align-items: center;
    background: #fff;
    border: 1px solid #d8dde6;
    border-radius: 5px;
    display: inline-flex;
    height: 18px;
    justify-content: center;
    position: absolute;
    right: 39px;
    top: 67px;
    width: 18px;
}

.kaf-choice-input:checked + .kaf-choice-inner .kaf-check {
    border-color: #f3b139;
}

.kaf-choice-input:checked + .kaf-choice-inner .kaf-check::after {
    border-bottom: 2px solid var(--kaf-accent);
    border-right: 2px solid var(--kaf-accent);
    content: "";
    display: block;
    height: 9px;
    transform: translateY(-1px) rotate(45deg);
    width: 5px;
}

.kaf-choice-title {
    align-self: end;
    color: #242424;
    display: block;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.18;
    margin-top: 32px;
    overflow-wrap: anywhere;
}

.kaf-field {
    display: grid;
    gap: 8px;
}

.kaf-field label {
    color: var(--kaf-text);
    font-size: 17px;
    font-weight: 500;
    line-height: 1.2;
}

.kaf-field input,
.kaf-field textarea {
    appearance: none;
    background: #fff;
    border: 1px solid var(--kaf-border);
    border-radius: 9px;
    color: var(--kaf-text);
    font: inherit;
    font-size: 16px;
    line-height: 1.4;
    min-height: 44px;
    outline: none;
    padding: 10px 13px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
    width: 100%;
}

.kaf-field textarea {
    min-height: 78px;
    resize: vertical;
}

.kaf-field input::placeholder,
.kaf-field textarea::placeholder {
    color: var(--kaf-muted);
    opacity: 1;
}

.kaf-field input:focus,
.kaf-field textarea:focus {
    border-color: rgba(249, 164, 0, 0.85);
    box-shadow: 0 0 0 3px rgba(249, 164, 0, 0.16);
}

.kaf-submit {
    align-items: center;
    background: var(--kaf-accent);
    border: 0;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 18px;
    font-weight: 800;
    gap: 14px;
    justify-content: center;
    min-height: 80px;
    padding: 18px 28px;
    transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
    width: 100%;
}

.kaf-submit:hover,
.kaf-submit:focus-visible {
    background: var(--kaf-accent-strong);
    box-shadow: 0 18px 32px rgba(249, 164, 0, 0.24);
    outline: none;
    transform: translateY(-1px);
}

.kaf-submit svg {
    height: 24px;
    width: 24px;
}

.kaf-hp {
    height: 0;
    left: -9999px;
    overflow: hidden;
    position: absolute;
    width: 0;
}

@media (max-width: 760px) {
    .kaf-form {
        gap: 18px;
    }

    .kaf-choice-grid {
        gap: 16px;
        grid-template-columns: 1fr;
    }

    .kaf-choice-inner {
        min-height: 170px;
        padding: 24px;
    }

    .kaf-check {
        right: 24px;
        top: 30px;
    }

    .kaf-icon {
        align-items: center;
        background: linear-gradient(180deg, #ffb51c 0%, #ec9a00 100%);
        border-radius: 13px;
        color: #fff;
        display: inline-flex;
        height: 50px;
        justify-content: center;
        width: 50px;
    }

    .kaf-icon svg {
        display: block;
        height: 20px;
        width: 20px;
    }

    .kaf-choice-title {
        margin-top: 28px;
    }

    .kaf-submit {
        font-size: 16px;
        min-height: 62px;
    }
}
