.cfkef-cfb-form {
    --cfb-field-gap: 16px;
    --cfb-input-height: 44px;
    --cfb-radius: 4px;
    font-family: inherit;
    color: inherit;
}

.cfkef-cfb-form__title {
    margin: 0 0 18px;
}

.cfkef-cfb-form__fields {
    display: grid;
    gap: var(--cfb-field-gap);
    margin: 0;
}

.cfkef-cfb-form__row {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--cfb-field-gap);
    align-items: start;
    min-width: 0;
}

.cfkef-cfb-form__column {
    grid-column: span var(--cfb-column-span, 12);
    min-width: 0;
}

.cfkef-cfb-field {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.cfkef-cfb-label {
    display: block;
    margin: 0 0 7px;
    font-weight: 600;
    line-height: 1.35;
}

.cfkef-cfb-required {
    color: #b42318;
}

.cfkef-cfb-field input:not([type="radio"]):not([type="checkbox"]),
.cfkef-cfb-field textarea,
.cfkef-cfb-field select {
    display: block;
    width: 100%;
    min-height: var(--cfb-input-height);
    box-sizing: border-box;
    border: 1px solid #c7cdd4;
    border-radius: var(--cfb-radius);
    background: #fff;
    color: #1d2327;
    padding: 9px 12px;
    font: inherit;
}

.cfkef-cfb-field textarea {
    min-height: calc(var(--cfb-input-height) * 2.5);
    resize: vertical;
}

.cfkef-cfb-description {
    margin-top: 6px;
    color: #646970;
    font-size: 0.88em;
}

.cfkef-cfb-choices {
    display: grid;
    gap: 8px;
}

.cfkef-cfb-choice {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cfkef-cfb-submit {
    min-height: var(--cfb-input-height);
    border: 0;
    border-radius: var(--cfb-radius);
    background: #2271b1;
    color: #fff;
    padding: 10px 22px;
    font: inherit;
    font-weight: 600;
    cursor: default;
}

.cfkef-cfb-signature-placeholder,
.cfkef-cfb-special-placeholder {
    min-height: 118px;
    border: 1px dashed #a7aaad;
    border-radius: var(--cfb-radius);
    background: #f6f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    color: #50575e;
    text-align: center;
    padding: 16px;
    box-sizing: border-box;
}

.cfkef-cfb-special-placeholder span {
    font-size: 24px;
}

.cfkef-cfb-special-placeholder small {
    color: #646970;
}

.cfkef-cfb-html {
    line-height: 1.55;
}

.cfkef-cfb-empty {
    min-height: 180px;
    border: 2px dashed #c3c4c7;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #646970;
    text-align: center;
    padding: 24px;
}

.cfkef-cfb-empty strong {
    color: #1d2327;
    font-size: 18px;
}

.cfkef-cfb-foundation-note {
    margin-top: 12px;
    padding: 8px 10px;
    border-left: 3px solid #2271b1;
    background: #f0f6fc;
    color: #3c434a;
    font-size: 12px;
}

.cfkef-cfb-preset-compact {
    --cfb-field-gap: 10px;
    --cfb-input-height: 38px;
}

.cfkef-cfb-preset-minimal .cfkef-cfb-field input:not([type="radio"]):not([type="checkbox"]),
.cfkef-cfb-preset-minimal .cfkef-cfb-field textarea,
.cfkef-cfb-preset-minimal .cfkef-cfb-field select {
    border-width: 0 0 1px;
    border-radius: 0;
    padding-left: 2px;
    padding-right: 2px;
}

.cfkef-cfb-labels-inline .cfkef-cfb-field:not(.cfkef-cfb-field--submit):not(.cfkef-cfb-field--html):not(.cfkef-cfb-field--turnstile) {
    display: grid;
    grid-template-columns: minmax(100px, 28%) 1fr;
    column-gap: 12px;
    align-items: center;
}

.cfkef-cfb-labels-inline .cfkef-cfb-label {
    margin: 0;
}

.cfkef-cfb-labels-inline .cfkef-cfb-description,
.cfkef-cfb-labels-inline .cfkef-cfb-choices,
.cfkef-cfb-labels-inline .cfkef-cfb-signature-placeholder {
    grid-column: 2;
}

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

@media (max-width: 1024px) {
    .cfkef-cfb-form__column {
        grid-column: span 12;
    }
    .cfkef-cfb-labels-inline .cfkef-cfb-field:not(.cfkef-cfb-field--submit):not(.cfkef-cfb-field--html):not(.cfkef-cfb-field--turnstile) {
        display: block;
    }
    .cfkef-cfb-labels-inline .cfkef-cfb-label {
        margin-bottom: 7px;
    }
}

@media (max-width: 1024px) {
    .cfkef-cfb-form__column:empty {
        display: none;
    }
}
