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

.mcuf-form {
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.mcuf-required-note {
    display: block;
    margin: 0 0 24px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--mcuf-accent);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.5;
}

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

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

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

.mcuf-label {
    display: block;
    margin: 0 0 8px;
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
    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: 50px;
    box-sizing: border-box;
    border: 1px solid #d7dee7;
    border-radius: var(--mcuf-radius);
    background: #ffffff;
    color: #1f2937;
    font: inherit;
    font-size: 16px;
    line-height: 1.4;
    padding: 12px 15px;
    box-shadow: 0 1px 2px rgba(30, 58, 95, 0.04);
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

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

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

.mcuf-field-error input:not([type="checkbox"]),
.mcuf-field-error select,
.mcuf-field-error textarea,
.mcuf-field-error .mcuf-multiselect-options {
    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-type-multiselect select {
    height: auto;
    min-height: 132px;
    padding-right: 16px;
}

.mcuf-multiselect-options {
    display: grid;
    gap: 8px;
    max-height: 260px;
    overflow-y: auto;
    box-sizing: border-box;
    border: 1px solid #d7dee7;
    border-radius: var(--mcuf-radius);
    background: #ffffff;
    padding: 10px;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.mcuf-multiselect-options:focus-within {
    border-color: #1e3a5f;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.12);
}

.mcuf-multiselect-option {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin: 0;
    padding: 9px 10px;
    border: 1px solid transparent;
    border-radius: calc(var(--mcuf-radius) + 2px);
    color: #1f2937;
    cursor: pointer;
    font-size: 15px;
    line-height: 1.4;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.mcuf-multiselect-option:hover,
.mcuf-multiselect-option:focus-within {
    border-color: rgba(30, 58, 95, 0.2);
    background: #f8f8f8;
    color: #1f2937;
}

.mcuf-multiselect-option input {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--mcuf-accent);
}

.mcuf-multiselect-option span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.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: #1f2937;
    font-size: 15px;
    line-height: 1.6;
}

.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: 190px;
    min-height: 46px;
    margin: 30px 0 18px;
    padding: 13px 28px;
    border: 1px solid var(--mcuf-button);
    border-radius: var(--mcuf-radius);
    background: var(--mcuf-button);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
    text-align: center;
    text-decoration: none !important;
    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: var(--mcuf-accent);
    border-color: var(--mcuf-accent);
    box-shadow: 0 8px 20px rgba(172, 128, 60, 0.2);
    transform: translateY(-1px);
}

.mcuf-submit:focus-visible {
    outline: 3px solid rgba(30, 58, 95, 0.2);
    outline-offset: 3px;
}

.mcuf-privacy {
    max-width: 760px;
    margin: 0;
    color: #67768e;
    font-size: 13px;
    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 {
    color: #78561f;
    text-decoration: none;
}

.mcuf-notice {
    margin: 0 0 24px;
    padding: 15px 18px;
    border: 1px solid;
    border-left-width: 4px;
    border-radius: var(--mcuf-radius);
    background: #fff;
    color: #1f2937;
    font-size: 15px;
    line-height: 1.6;
}

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

.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: 0;
        box-shadow: none;
    }

    .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: 50px;
        font-size: 16px;
    }

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

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