.mcuf-wrap {
    max-width: var(--mcuf-max-width);
    margin: 0 auto;
    color: #1f2933;
    font-family: inherit;
}

.mcuf-form {
    width: 100%;
    padding: 42px;
    border: 1px solid #e3e8ee;
    border-top: 4px solid var(--mcuf-accent);
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(15, 42, 57, 0.08);
}

.mcuf-required-note {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin: 0 0 30px;
    padding: 0 12px;
    border-left: 3px solid var(--mcuf-accent);
    background: #f4faf8;
    color: var(--mcuf-accent);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 20px;
}

.mcuf-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 30px;
}

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

.mcuf-field-half {
    grid-column: span 1;
}

.mcuf-label {
    display: block;
    margin: 0 0 8px;
    color: #111827;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 20px;
}

.mcuf-label b,
.mcuf-checkbox b {
    color: var(--mcuf-accent);
}

.mcuf-field input:not([type="checkbox"]),
.mcuf-field select,
.mcuf-field textarea {
    width: 100%;
    min-height: 40px;
    box-sizing: border-box;
    border: 1px solid #d8e0e8;
    border-radius: var(--mcuf-radius);
    background: #fbfcfd;
    color: #475569;
    font: inherit;
    font-size: 16px;
    line-height: 24px;
    padding: 12px 16px;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.mcuf-field input:not([type="checkbox"]):focus,
.mcuf-field select:focus,
.mcuf-field textarea:focus {
    outline: none;
    border-color: var(--mcuf-accent);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 107, 95, 0.14);
}

.mcuf-field textarea {
    min-height: 128px;
    resize: vertical;
}

.mcuf-field-error input:not([type="checkbox"]),
.mcuf-field-error select,
.mcuf-field-error textarea {
    border-color: #b42318;
    box-shadow: 0 0 0 1px #b42318;
}

.mcuf-field-message {
    margin: 8px 0 0;
    color: #b42318;
    font-size: 14px;
}

.mcuf-field select {
    height: 50px;
    min-height: 50px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: none !important;
    background-repeat: no-repeat !important;
    line-height: 24px;
    padding-top: 12px;
    padding-bottom: 12px;
    padding-right: 48px;
}

.mcuf-select-wrap {
    position: relative;
    display: block;
}

.mcuf-select-wrap::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 18px;
    width: 9px;
    height: 9px;
    border-right: 2px solid #465464;
    border-bottom: 2px solid #465464;
    pointer-events: none;
    transform: translateY(-65%) rotate(45deg);
}

.mcuf-field ::placeholder {
    color: #7b8794;
    opacity: 1;
}

.mcuf-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 4px 0 0;
    color: #273444;
    font-size: 16px;
    line-height: 1.65;
}

.mcuf-checkbox input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--mcuf-accent);
}

.mcuf-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 210px;
    min-height: 44px;
    margin: 34px 0 22px;
    padding: 13px 30px;
    border: 1px solid var(--mcuf-button);
    border-radius: 4px;
    background: var(--mcuf-button);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1;
    text-align: center;
    transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.mcuf-submit:hover,
.mcuf-submit:focus {
    filter: none;
    background: #d85c16;
    border-color: #d85c16;
    box-shadow: 0 10px 24px rgba(216, 92, 22, 0.22);
    transform: translateY(-1px);
}

.mcuf-submit:focus-visible {
    outline: 3px solid rgba(243, 111, 33, 0.28);
    outline-offset: 3px;
}

.mcuf-privacy {
    max-width: 760px;
    margin: 0;
    color: #5d6b7a;
    font-size: 14px;
    line-height: 1.55;
}

.mcuf-privacy a {
    color: var(--mcuf-accent);
    font-weight: 700;
    text-decoration: none;
}

.mcuf-privacy a:hover,
.mcuf-privacy a:focus {
    text-decoration: underline;
}

.mcuf-notice {
    margin: 0 0 24px;
    padding: 15px 18px;
    border: 1px solid;
    border-left-width: 4px;
    border-radius: 4px;
    background: #fff;
    color: #273444;
    font-size: 16px;
    line-height: 1.65;
}

.mcuf-notice-success {
    border-color: var(--mcuf-accent);
    background: #f4faf8;
}

.mcuf-notice-error {
    border-color: #b42318;
    background: #fff7f7;
}

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

@media (max-width: 760px) {
    .mcuf-form {
        padding: 28px 20px;
        box-shadow: 0 12px 30px rgba(15, 42, 57, 0.08);
    }

    .mcuf-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mcuf-field-half,
    .mcuf-field-full {
        grid-column: 1;
    }

    .mcuf-label {
        font-size: 14px;
        letter-spacing: 0;
    }

    .mcuf-field input:not([type="checkbox"]),
    .mcuf-field select,
    .mcuf-field textarea {
        min-height: 40px;
        font-size: 16px;
    }

    .mcuf-checkbox {
        font-size: 16px;
    }

    .mcuf-submit {
        width: 100%;
        min-width: 0;
    }
}
