.nfb-form {
    --nfb-accent-color: #fa943f;
    --nfb-accent-hover-color: #ff9640;
    --nfb-control-background: #f8f9fd;
    --nfb-border-color: #e8e9eb;
    --nfb-label-color: #6b6b6b;
    --nfb-muted-color: #6b6b6b;
    --nfb-error-color: #b42318;
    --nfb-success-color: #177245;
    display: block;
    margin: 0;
    max-width: 48rem;
    min-width: 0;
    width: 100%;
}

.nfb-form *,
.nfb-form *::before,
.nfb-form *::after {
    box-sizing: border-box;
}

.nfb-form__fields {
    display: grid;
    gap: 20px;
}

.nfb-form .nfb-field {
    border: 0;
    display: grid;
    gap: 10px;
    margin: 0;
    min-width: 0;
    padding: 0;
}

.nfb-form .nfb-field__label {
    color: var(--nfb-label-color);
    display: block;
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
    margin: 0;
    padding: 0;
}

.nfb-form .nfb-field__required {
    color: var(--nfb-accent-color);
}

.nfb-form .nfb-field__control:not([type="checkbox"]):not([type="radio"]) {
    background-color: var(--nfb-control-background);
    border: 1px solid var(--nfb-border-color);
    border-radius: 5px;
    color: #161616;
    display: block;
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    font-weight: 400;
    height: 40px;
    line-height: 38px;
    margin: 0;
    min-height: 40px;
    max-width: 100%;
    padding: 0 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

.nfb-form .nfb-field__control::placeholder {
    color: #7a7a7a;
    opacity: 1;
}

.nfb-form .nfb-field textarea.nfb-field__control {
    height: 252px;
    line-height: 1.5;
    min-height: 252px;
    padding-bottom: 10px;
    padding-top: 10px;
    resize: vertical;
}

.nfb-form .nfb-field select.nfb-field__control {
    appearance: auto;
    line-height: normal;
    -webkit-appearance: auto;
}

.nfb-form .nfb-field input[type="file"].nfb-field__control {
    cursor: pointer;
    line-height: 38px;
    overflow: hidden;
    padding: 0 10px 0 0;
}

.nfb-form .nfb-field input[type="file"].nfb-field__control::file-selector-button {
    background-color: #eef0f5;
    border: 0;
    border-right: 1px solid var(--nfb-border-color);
    color: var(--nfb-label-color);
    cursor: pointer;
    font: inherit;
    height: 38px;
    margin-right: 12px;
    padding: 0 16px;
    transition: background-color 0.2s;
}

.nfb-form .nfb-field input[type="file"].nfb-field__control:hover::file-selector-button {
    background-color: #e4e6ec;
}

.nfb-form .nfb-field__control:focus,
.nfb-form .nfb-field__control:focus-visible {
    border-color: var(--nfb-accent-color);
    box-shadow: 0 0 0 2px rgb(250 148 63 / 22%);
    outline: 0;
}

.nfb-form .nfb-field__control[aria-invalid="true"] {
    border-color: var(--nfb-error-color);
}

.nfb-form .nfb-field__options {
    display: grid;
    gap: 9px;
}

.nfb-form .nfb-field__option {
    align-items: flex-start;
    display: flex;
    gap: 9px;
}

.nfb-form .nfb-field__option input,
.nfb-form .nfb-field--checkbox > input[type="checkbox"] {
    accent-color: var(--nfb-accent-color);
    appearance: auto;
    flex: 0 0 auto;
    height: 18px;
    margin: 1px 0 0;
    width: 18px;
    -webkit-appearance: auto;
}

.nfb-form p.nfb-field__description {
    color: var(--nfb-muted-color);
    font-size: 13px !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    overflow-wrap: anywhere;
    padding: 0 !important;
}

.nfb-form p.nfb-field__error {
    color: var(--nfb-error-color);
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    margin: -14px 0 0 !important;
    min-height: 0;
    overflow-wrap: anywhere;
    padding: 0 !important;
}

.nfb-form p.nfb-field__error:empty {
    display: none;
}

.nfb-form__actions {
    display: flex;
    margin-top: 30px;
}

.nfb-form__submit {
    background-color: var(--nfb-accent-color);
    border: 0;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    min-height: 39px;
    padding: 12px 45px;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.nfb-form__submit:hover {
    background-color: var(--nfb-accent-hover-color);
}

.nfb-form__submit:focus,
.nfb-form__submit:focus-visible {
    box-shadow: 0 0 0 3px rgb(250 148 63 / 28%);
    outline: 0;
}

.nfb-form__submit:disabled {
    cursor: wait;
    opacity: 0.65;
}

.nfb-form .nfb-form__status {
    border-radius: 5px;
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin: 16px 0 0 !important;
    min-height: 0;
    overflow-wrap: anywhere;
    padding: 0 !important;
}

.nfb-form .nfb-form__status:empty {
    display: none;
}

.nfb-form .nfb-form__status--error,
.nfb-form .nfb-form__status--success {
    border-left: 4px solid currentColor;
    padding: 10px 14px !important;
}

.nfb-form .nfb-form__status--error {
    color: var(--nfb-error-color);
}

.nfb-form .nfb-form__status--success {
    color: var(--nfb-success-color);
}

.nfb-form p.nfb-form__privacy {
    color: var(--nfb-muted-color);
    font-size: 13px !important;
    line-height: 1.5 !important;
    margin: 20px 0 0 !important;
    overflow-wrap: anywhere;
    padding: 0 !important;
}

.nfb-form__privacy a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.nfb-form__privacy a:focus,
.nfb-form__privacy a:focus-visible {
    border-radius: 2px;
    box-shadow: 0 0 0 3px rgb(250 148 63 / 28%);
    outline: 0;
}

.nfb-honeypot {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.nfb-form-notice {
    color: var(--nfb-error-color);
}

@media (max-width: 40rem) {
    .nfb-form__fields {
        gap: 16px;
    }

    .nfb-form .nfb-field textarea.nfb-field__control {
        height: 180px;
        min-height: 180px;
    }

    .nfb-form .nfb-field__control:not([type="checkbox"]):not([type="radio"]) {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nfb-form .nfb-field__control,
    .nfb-form .nfb-field input[type="file"].nfb-field__control::file-selector-button,
    .nfb-form__submit {
        transition: none;
    }
}
