/* ── Lmcs Contact – frontend styles ── */

.lmcs-wrap { max-width: 640px; }

.lmcs-form { display: flex; flex-direction: column; gap: 18px; }

.lmcs-field { display: flex; flex-direction: column; gap: 6px; }

.lmcs-field label {
    font-weight: 600;
    font-size: .9rem;
    color: #2c2416;
}

.lmcs-req { color: #c00; margin-left: 2px; }

.lmcs-field input[type="text"],
.lmcs-field input[type="email"],
.lmcs-field select,
.lmcs-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #c8bfaf;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    color: #2c2416;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
    -webkit-appearance: none;
}

.lmcs-field input:focus,
.lmcs-field select:focus,
.lmcs-field textarea:focus {
    border-color: #8a7450;
    outline: none;
    box-shadow: 0 0 0 3px rgba(138,116,80,.15);
}

.lmcs-field textarea { resize: vertical; min-height: 120px; }

.lmcs-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .lmcs-two-col { grid-template-columns: 1fr; } }

.lmcs-count { font-size: .78rem; color: #999; }
.lmcs-count.near-limit { color: #c00; }

/* ── Captcha checkbox ── */
.lmcs-captcha-field { flex-direction: row; align-items: center; }

.lmcs-robot-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: .95rem;
    font-weight: 500;
    color: #2c2416;
    user-select: none;
}

.lmcs-checkbox-wrap {
    position: relative;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
}

.lmcs-checkbox-wrap input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
    z-index: 1;
}

.lmcs-checkmark {
    display: block;
    width: 22px;
    height: 22px;
    border: 2px solid #c8bfaf;
    border-radius: 4px;
    background: #fff;
    transition: background .15s, border-color .15s;
}

.lmcs-checkbox-wrap input:checked + .lmcs-checkmark {
    background: #2c2416;
    border-color: #2c2416;
}

.lmcs-checkbox-wrap input:checked + .lmcs-checkmark::after {
    content: '';
    display: block;
    margin: 3px 6px;
    width: 6px;
    height: 11px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

/* ── Feedback messages ── */
.lmcs-feedback { display: none; padding: 12px 16px; border-radius: 5px; font-size: .92rem; line-height: 1.5; }
.lmcs-feedback.success { display: block; background: #edf7ee; color: #1a5c1e; border-left: 4px solid #00a32a; }
.lmcs-feedback.error   { display: block; background: #fdf2f2; color: #7a1b1b; border-left: 4px solid #d63638; }

/* ── Honeypot ── */
.lmcs-hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* ── Submit button ── */
.lmcs-submit { margin-top: 4px; }

.lmcs-btn {
    display: inline-block;
    padding: 13px 32px;
    background: #2c2416;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background .2s, opacity .2s;
    letter-spacing: .01em;
}

.lmcs-btn:hover { background: #3d3220; }
.lmcs-btn:disabled { opacity: .55; cursor: default; }

/* ── Sent state (hide form, show message full width) ── */
.lmcs-form.sent .lmcs-field,
.lmcs-form.sent .lmcs-two-col,
.lmcs-form.sent .lmcs-captcha-field,
.lmcs-form.sent .lmcs-submit { display: none; }
