.qom-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 12px;
    padding: 14px 22px;
    border: none;
    border-radius: 8px;
    background: #111;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qom-button:hover,
.qom-button:focus {
    background: #333;
    color: #fff;
}

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

.qom-modal.is-active {
    display: flex;
}

.qom-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.qom-modal__content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: #fff;
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.28);
    animation: qomFadeIn 0.22s ease;
}

.qom-modal__close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    color: #222;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

.qom-modal__close:hover {
    color: #000;
}

.qom-modal__title {
    margin: 0 0 8px;
    color: #111;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.qom-modal__subtitle {
    margin: 0 0 22px;
    color: #555;
    font-size: 15px;
    line-height: 1.4;
}

.qom-modal__form p {
    margin: 0 0 14px;
}

.qom-modal__form label {
    display: block;
    margin-bottom: 6px;
    color: #222;
    font-size: 14px;
    font-weight: 500;
}

.qom-modal__form input[type="text"],
.qom-modal__form input[type="tel"],
.qom-modal__form input[type="email"],
.qom-modal__form textarea,
.qom-modal__form select {
    width: 100%;
    min-height: 46px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 14px;
    background: #fff;
    color: #111;
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
}

.qom-modal__form input[type="text"]:focus,
.qom-modal__form input[type="tel"]:focus,
.qom-modal__form input[type="email"]:focus,
.qom-modal__form textarea:focus,
.qom-modal__form select:focus {
    border-color: #111;
}

.qom-modal__form input[type="submit"],
.qom-modal__form button[type="submit"] {
    width: 100%;
    min-height: 48px;
    border: none;
    border-radius: 8px;
    background: #111;
    color: #fff;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qom-modal__form input[type="submit"]:hover,
.qom-modal__form button[type="submit"]:hover {
    background: #333;
}

.qom-modal__form .wpcf7-spinner {
    display: block;
    margin: 12px auto 0;
}

.qom-modal__form .wpcf7-response-output {
    margin: 16px 0 0;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
}

body.qom-modal-open {
    overflow: hidden;
}

@keyframes qomFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 575px) {
    .qom-modal {
        padding: 14px;
    }

    .qom-modal__content {
        padding: 26px 20px;
        border-radius: 14px;
    }

    .qom-modal__title {
        font-size: 22px;
    }

    .qom-button {
        max-width: 100%;
    }
}
