.msm-crm-form {
    border: 1px solid #d8e0dd;
    border-radius: 12px;
    background: #fff;
    padding: 18px;
    max-width: 720px;
    box-shadow: 0 12px 34px rgba(20, 47, 40, 0.08);
}

.msm-crm-form * {
    box-sizing: border-box;
}

.msm-crm-form__head h3 {
    margin: 0 0 14px;
    font-size: 21px;
    line-height: 1.25;
    color: #17322d;
}

.msm-crm-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.msm-crm-form label {
    display: grid;
    gap: 5px;
    margin: 0;
    font-weight: 700;
    color: #1f2d2a;
}

.msm-crm-form label span {
    font-size: 13px;
    line-height: 1.2;
}

.msm-crm-form input,
.msm-crm-form textarea,
.msm-crm-form input[type="text"],
.msm-crm-form input[type="tel"],
.msm-crm-form input[type="email"] {
    width: 100%;
    border: 1px solid #d1d8d6;
    border-radius: 7px;
    padding: 7px 10px;
    font: inherit;
    font-size: 15px;
    line-height: 1.35;
    background: #fff;
    color: #111827;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.msm-crm-form input,
.msm-crm-form input[type="text"],
.msm-crm-form input[type="tel"],
.msm-crm-form input[type="email"] {
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
}

.msm-crm-form textarea {
    height: 76px !important;
    min-height: 76px !important;
    max-height: 76px;
    line-height: 1.35;
    resize: vertical;
}

.msm-crm-form input:focus,
.msm-crm-form textarea:focus {
    outline: 0;
    border-color: var(--msm-crm-button-bg, #f2a928);
    box-shadow: 0 0 0 3px rgba(20, 47, 40, 0.12);
    background: #fffdf8;
}

.msm-crm-form__wide {
    grid-column: 1 / -1;
}

.msm-crm-form__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
}

.msm-crm-form button {
    border: 0;
    border-radius: 8px;
    background: var(--msm-crm-button-bg, #f2a928);
    color: var(--msm-crm-button-text, #132d27);
    padding: 11px 18px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(20, 47, 40, 0.18);
    transition: filter 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.msm-crm-form button:hover {
    filter: brightness(0.94);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(20, 47, 40, 0.24);
}

.msm-crm-form button[disabled] {
    cursor: wait;
    opacity: 0.7;
}

.msm-crm-form__status {
    font-size: 14px;
    font-weight: 600;
}

.msm-crm-form__status.is-success {
    color: #047857;
}

.msm-crm-form__status.is-error,
.msm-crm-form-error {
    color: #b91c1c;
}

.msm-crm-hp {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
}

@media (max-width: 640px) {
    .msm-crm-form {
        padding: 16px;
    }

    .msm-crm-form__grid {
        grid-template-columns: 1fr;
    }

    .msm-crm-form__actions {
        align-items: stretch;
        flex-direction: column;
    }
}
