/* ============================================================
   assets/lms/slovo-contact.css
   Slovo Contact — кнопка «📩 Связаться» и модальная форма.
   Открытие/закрытие — через класс .is-visible.
   ============================================================ */

.slovo-contact-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.slovo-contact-modal.is-visible {
    display: flex;
}

.slovo-contact-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
}

.slovo-contact-window {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .25);
}

.slovo-contact-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #888;
}

.slovo-contact-title {
    margin: 0 0 14px;
    font-size: 20px;
}

.slovo-contact-msg {
    display: none;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 14px;
}

.slovo-contact-msg.is-ok {
    background: #e6f4ea;
    color: #1e7e34;
}

.slovo-contact-msg.is-error {
    background: #fdecea;
    color: #b3261e;
}

.slovo-contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.slovo-contact-label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
}

.slovo-contact-label .is-required {
    color: #b3261e;
}

.slovo-contact-input,
.slovo-contact-textarea {
    font-weight: 400;
    padding: 9px 12px;
    border: 1px solid #ccd0d5;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
}

.slovo-contact-input.is-invalid,
.slovo-contact-textarea.is-invalid {
    border-color: #b3261e;
}

.slovo-contact-textarea {
    resize: vertical;
}

.slovo-consent-field {
    font-size: 13px;
    color: #555;
}

.slovo-consent-field label {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.slovo-contact-recaptcha {
    display: flex;
    justify-content: flex-start;
}

.slovo-contact-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.slovo-contact-open {
    cursor: pointer;
}
