.mg-wrap {
    padding: 0 0 60px;
}

.mg--embed {
    --mg-surface: #ffffff;
    --mg-ink: #000;
    --mg-muted: #000;
    --mg-line: #000;
    --mg-accent: #1e90ff;
    --mg-accent-hover: #0b6fd6;
    --mg-on-accent: #ffffff;
    --mg-error: #c62d1a;
    --mg-error-bg: #fdf1ee;
    --mg-success: #1e90ff;
    --mg-radius: 0px;
    --mg-link: #0a6ccf;
    --mg-panel: #f7f7f7;

    width: 100%;
    max-width: 100%;

    margin: 0;
    padding: 44px 48px 40px;
    background: var(--mg-panel);
    border: 0;
    border-radius: 0;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.6;
    color: var(--mg-ink);
    caret-color: var(--mg-accent);
}

.mg--embed ::selection {
    background: rgba(30, 144, 255, 0.25);
    color: inherit;
}

.mg--embed .mg__header {
    margin-bottom: 28px;
}

.mg--embed .mg__title {
    margin: 0 0 10px;
    padding: 0;
    font-family: inherit;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0;
    color: var(--mg-ink);
}

.mg--embed .mg__lead {
    margin: 0;
    max-width: 60ch;
    font-size: 16px;
    color: var(--mg-muted);
}

.mg--embed .mg__label {
    margin-bottom: 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--mg-ink);
}

.mg--embed .mg__input {
    min-height: 50px;
    padding: 12px 14px;
    background: var(--mg-surface);
    border: 1px solid var(--mg-line);
    border-radius: 0;
    font-size: 16px;
    color: var(--mg-ink);
}

.mg--embed .mg__input::placeholder {
    color: #737373;
    opacity: 1;
}

.mg--embed .mg__input:hover {
    border-color: var(--mg-muted);
}

.mg--embed .mg__form .mg__input:focus {
    color: var(--mg-ink);
    border-color: var(--mg-accent);
    -webkit-box-shadow: inset 0 0 0 1px var(--mg-accent);
    box-shadow: inset 0 0 0 1px var(--mg-accent);
}

.mg--embed .mg__form .mg__input[aria-invalid="true"],
.mg--embed .mg__form .mg__input[aria-invalid="true"]:focus {
    border-color: var(--mg-error);
}

.mg--embed .mg__form .mg__input[aria-invalid="true"]:focus {
    -webkit-box-shadow: inset 0 0 0 1px var(--mg-error);
    box-shadow: inset 0 0 0 1px var(--mg-error);
}

.mg--embed .mg__textarea {
    min-height: 160px;
    resize: vertical;
}

.mg--embed .mg__select::after {
    border-color: var(--mg-ink);
}

.mg--embed .mg__counter {
    font-size: 13px;
    color: var(--mg-muted);
}

.mg--embed .mg__error {
    font-size: 14px;
    color: var(--mg-error);
}

.mg--embed .mg__alert {
    margin-bottom: 24px;
    padding: 14px 16px;
    background: var(--mg-error-bg);
    border: 1px solid #f0c4ba;
    border-radius: 0;
    font-size: 15px;
    color: #b8331b;
}

.mg--embed .mg__consents {
    min-width: 0;
    margin: 8px 0 24px;
    padding: 20px 0 0;
    border: 0;
    border-top: 1px solid #e3e3e3;
}

.mg--embed .mg__consents-title {
    float: left;
    width: 100%;
    margin: 0 0 12px;
    padding: 0;
    border: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--mg-ink);
}

.mg--embed .mg__consents-title .mg__optional {
    font-weight: 400;
    color: var(--mg-muted);
}

.mg--embed .mg__consents-list {
    clear: both;
}

.mg--embed .mg__consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.55;
    color: #000;
    cursor: pointer;
}

.mg--embed .mg__consent input {
    flex: none;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--mg-accent);
    cursor: pointer;
}

.mg--embed .mg__consent input:focus-visible {
    outline: 2px solid var(--mg-accent-hover) !important;
    outline-offset: 2px;
}

.mg--embed .mg__consents-note {
    margin: 4px 0 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--mg-muted);
}

.mg--embed .mg__consents-note a,
.mg--embed .mg__privacy a {
    color: var(--mg-link);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.mg--embed .mg__consents-note a:hover,
.mg--embed .mg__privacy a:hover {
    color: var(--mg-ink);
}

.mg--embed .mg__actions {
    gap: 12px 24px;
    margin-top: 4px;
}

.mg--embed .mg__submit {
    min-height: 52px;
    padding: 0 34px;
    background: var(--mg-accent);
    border: 1px solid var(--mg-accent);
    border-radius: 0;
    color: var(--mg-on-accent);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: background-color 0.2s ease-out, border-color 0.2s ease-out;
}

.mg--embed .mg__submit:hover,
.mg--embed .mg__submit:active {
    background: var(--mg-accent-hover);
    border-color: var(--mg-accent-hover);
}

.mg--embed .mg__submit:focus-visible,
.mg--embed .mg__again:focus-visible {
    outline: 3px solid var(--mg-accent-hover) !important;
    outline-offset: 3px;
}

.mg--embed .mg__note {
    margin: 0;
    font-size: 14px;
    color: var(--mg-muted);
}

.mg--embed .mg__privacy {
    margin: 20px 0 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--mg-muted);
}

.mg--embed .mg__success-title {
    margin: 0 0 8px;
    font-family: inherit;
    font-size: 24px;
    font-weight: 800;
    color: var(--mg-ink);
}

.mg--embed .mg__success-text {
    font-size: 16px;
    color: var(--mg-muted);
}

.mg--embed .mg__again {
    color: var(--mg-link);
}

.mg-cta {
    display: none;
}

@media (max-width: 767px) {
    .mg-wrap {
        padding-bottom: 0;
    }

    .mg-cta {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 999;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 56px;
        padding: 0 16px env(safe-area-inset-bottom, 0);
        background: #1e90ff;
        color: #ffffff;
        font-size: 18px;
        font-weight: 700;
        letter-spacing: 0.01em;
        text-decoration: none;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
        transition: transform 0.25s ease-out, visibility 0.25s;
    }

    .mg-cta.is-hidden {
        transform: translateY(100%);
        visibility: hidden;
    }

    .mg-cta:hover,
    .mg-cta:active,
    .mg-cta:focus {
        background: #0b6fd6;
        color: #ffffff;
        text-decoration: none;
    }

    .mg-cta:focus-visible {
        outline: 3px solid #0b6fd6;
        outline-offset: -6px;
    }

    .mg-wrap > .container {
        width: auto;
        padding-left: 0;
        padding-right: 0;
    }

    .mg--embed {
        padding: 32px 16px 32px;
    }

    .mg--embed .mg__header {
        margin-bottom: 24px;
    }

    .mg--embed .mg__title {
        font-size: 24px;
    }

    .mg--embed .mg__input {
        min-height: 52px;
    }

    .mg--embed .mg__consent {
        gap: 14px;
        margin-bottom: 14px;
        font-size: 15px;
    }

    .mg--embed .mg__consent input {
        width: 22px;
        height: 22px;
        margin-top: 1px;
    }

    .mg--embed .mg__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .mg--embed .mg__submit {
        width: 100%;
    }
}
