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

.nmf-form-wrap {
    --nmf-accent: #3f51b5;
    --nmf-text: #596273;
    --nmf-heading: #4053b5;
    --nmf-border: #d9dde5;
    --nmf-border-hover: #bcc3ce;
    --nmf-panel-border: #e1e5eb;
    --nmf-error: #b42318;
    --nmf-error-bg: #fff4f2;
    --nmf-success: #176b45;
    --nmf-success-bg: #eefaf3;
    width: 100%;
    max-width: var(--nmf-max-width, 1100px);
    margin-inline: auto;
    font-family: inherit;
    color: var(--nmf-text);
}

.nmf-form-title {
    margin: 0 0 18px;
    color: var(--nmf-heading);
    font-family: inherit;
    font-size: clamp(2.15rem, 6vw, 3.25rem);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -.02em;
}

.nmf-form-description {
    max-width: 760px;
    margin: 0 0 30px;
    color: var(--nmf-text);
    font-size: 1rem;
    line-height: 1.7;
}

.nmf-form-description p:first-child {
    margin-top: 0;
}

.nmf-form-description p:last-child {
    margin-bottom: 0;
}

.nmf-form {
    width: 100%;
    margin: 0;
    padding: 34px 36px 36px;
    border: 1px solid var(--nmf-panel-border);
    border-radius: 1px;
    background: #fff;
    box-shadow: none;
}

.nmf-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
}

.nmf-field {
    min-width: 0;
    margin: 0;
}

.nmf-field > label:not(.nmf-choice),
.nmf-choice-group > legend {
    display: block;
    width: 100%;
    margin: 0 0 8px;
    padding: 0;
    color: #4f5868;
    font-size: .96rem;
    line-height: 1.4;
    font-weight: 600;
}

.nmf-required {
    color: var(--nmf-error);
}

.nmf-form-wrap .nmf-field input[type="text"],
.nmf-form-wrap .nmf-field input[type="email"],
.nmf-form-wrap .nmf-field input[type="tel"],
.nmf-form-wrap .nmf-field input[type="number"],
.nmf-form-wrap .nmf-field select,
.nmf-form-wrap .nmf-field textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 50px;
    margin: 0;
    padding: 12px 15px;
    border: 1px solid var(--nmf-border);
    border-radius: 1px;
    outline: 0;
    background-color: #fff;
    box-shadow: none;
    color: #353943;
    font: inherit;
    font-size: 16px;
    line-height: 1.4;
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.nmf-form-wrap .nmf-field input::placeholder,
.nmf-form-wrap .nmf-field textarea::placeholder {
    color: #9298a3;
    opacity: 1;
}

.nmf-form-wrap .nmf-field input[type="text"]:hover,
.nmf-form-wrap .nmf-field input[type="email"]:hover,
.nmf-form-wrap .nmf-field input[type="tel"]:hover,
.nmf-form-wrap .nmf-field input[type="number"]:hover,
.nmf-form-wrap .nmf-field select:hover,
.nmf-form-wrap .nmf-field textarea:hover {
    border-color: var(--nmf-border-hover);
}

.nmf-form-wrap .nmf-field textarea {
    min-height: 170px;
    resize: vertical;
}

.nmf-form-wrap .nmf-field input[type="text"]:focus,
.nmf-form-wrap .nmf-field input[type="email"]:focus,
.nmf-form-wrap .nmf-field input[type="tel"]:focus,
.nmf-form-wrap .nmf-field input[type="number"]:focus,
.nmf-form-wrap .nmf-field select:focus,
.nmf-form-wrap .nmf-field textarea:focus {
    border-color: var(--nmf-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--nmf-accent) 18%, transparent);
}

@supports not (color: color-mix(in srgb, black, white)) {
    .nmf-form-wrap .nmf-field input[type="text"]:focus,
    .nmf-form-wrap .nmf-field input[type="email"]:focus,
    .nmf-form-wrap .nmf-field input[type="tel"]:focus,
    .nmf-form-wrap .nmf-field input[type="number"]:focus,
    .nmf-form-wrap .nmf-field select:focus,
    .nmf-form-wrap .nmf-field textarea:focus {
        box-shadow: 0 0 0 3px rgba(63, 81, 181, .18);
    }
}

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

.nmf-field-help,
.nmf-field-error {
    margin: 7px 0 0;
    font-size: .83rem;
    line-height: 1.45;
}

.nmf-field-help {
    color: #7a8290;
}

.nmf-field-error {
    color: var(--nmf-error);
    font-weight: 500;
}

.nmf-choice-group {
    display: grid;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    gap: 9px;
}

.nmf-choice-group > legend {
    margin-bottom: 1px;
}

.nmf-form-wrap .nmf-field > label.nmf-choice,
.nmf-form-wrap .nmf-choice-group > label.nmf-choice,
.nmf-form-wrap label.nmf-choice {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    width: fit-content;
    max-width: 100%;
    min-height: 0;
    margin: 0;
    padding: 5px 0;
    color: var(--nmf-text);
    font: inherit;
    font-size: .96rem;
    font-weight: 500;
    line-height: 1.45;
    cursor: pointer;
}

.nmf-form-wrap label.nmf-choice > span {
    display: block;
    min-width: 0;
    padding: 0;
}

.nmf-form-wrap label.nmf-choice input[type="checkbox"],
.nmf-form-wrap label.nmf-choice input[type="radio"] {
    flex: 0 0 auto;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px;
    min-height: 20px !important;
    max-width: 20px;
    margin: 1px 0 0 !important;
    padding: 0 !important;
    border-radius: 0;
    box-shadow: none;
    accent-color: var(--nmf-accent);
    cursor: pointer;
}

.nmf-form-wrap label.nmf-choice input[type="radio"] {
    border-radius: 50%;
}

.nmf-consent {
    min-height: 0;
}

.nmf-form-actions {
    margin-top: 28px;
}

.nmf-submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    margin: 0;
    padding: 12px 25px;
    border: 1px solid var(--nmf-accent);
    border-radius: 1px;
    background: var(--nmf-accent);
    box-shadow: none;
    color: #fff;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
    transition: filter .16s ease, transform .16s ease, opacity .16s ease;
}

.nmf-submit-button:hover {
    filter: brightness(.92);
}

.nmf-submit-button:active {
    transform: translateY(1px);
}

.nmf-submit-button:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--nmf-accent) 30%, transparent);
    outline-offset: 3px;
}

.nmf-submit-button:disabled {
    opacity: .68;
    cursor: wait;
    filter: none;
}

.nmf-message {
    margin: 0 0 24px;
    padding: 16px 18px;
    border: 1px solid currentColor;
    font-size: 1rem;
    line-height: 1.55;
}

.nmf-message p:first-child {
    margin-top: 0;
}

.nmf-message p:last-child,
.nmf-message ul:last-child {
    margin-bottom: 0;
}

.nmf-message-success {
    background: var(--nmf-success-bg);
    color: var(--nmf-success);
}

.nmf-message-error {
    background: var(--nmf-error-bg);
    color: var(--nmf-error);
}

.nmf-error-summary a {
    color: inherit;
    font-weight: 600;
}

.nmf-guard-field,
.nmf-form-wrap .screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (min-width: 900px) {
    .nmf-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 30px;
        row-gap: 22px;
    }

    .nmf-field-full {
        grid-column: 1 / -1;
    }

    .nmf-submit-button {
        width: auto;
        min-width: 175px;
    }
}

@media (max-width: 899px) {
    .nmf-form {
        padding: 28px 24px 30px;
    }
}

@media (max-width: 480px) {
    .nmf-form-title {
        margin-bottom: 16px;
    }

    .nmf-form-description {
        margin-bottom: 24px;
    }

    .nmf-form {
        padding: 23px 18px 25px;
    }

    .nmf-form-grid {
        gap: 18px;
    }

    .nmf-form-actions {
        margin-top: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nmf-form-wrap * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
