@import url("/wp-content/themes/bigboom/css/rfj-red-swatches.css?v=1787855429");

.qm-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(29, 29, 31, 0.42);
    z-index: var(--rfj-z-modal, 2010);
    opacity: 0;
    transition: opacity 250ms ease;
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

.qm-overlay.is-visible {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.qm-modal {
    width: 560px;
    max-width: 92vw;
    max-height: 90vh;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(229, 229, 234, 0.9);
    border-radius: 14px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 250ms ease;
}

.qm-overlay.is-visible .qm-modal {
    transform: translateY(0);
}

.qm-header {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    justify-content: space-between;
    padding: 24px 26px 18px;
    border-bottom: 1px solid #e5e5ea;
}

.qm-kicker {
    color: var(--rfj-text-tertiary);
    font-size: 12px;
    font-weight: 780;
    letter-spacing: .08em;
    line-height: 1.3;
    margin: 0 0 4px;
    text-transform: uppercase;
}

.qm-title {
    font-size: 22px;
    font-weight: 820;
    color: var(--rfj-text-primary);
    line-height: 1.25;
    margin: 0;
}

.qm-subtitle {
    color: var(--rfj-text-tertiary);
    display: block;
    font-size: 14px;
    line-height: 1.55;
    margin-top: 6px;
}

.qm-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f5f7;
    border-radius: 50%;
    color: var(--rfj-text-tertiary);
    flex: 0 0 auto;
    cursor: pointer;
    transition: all 200ms ease;
}

.qm-close:hover {
    background: #e5e5ea;
    color: var(--rfj-text-primary);
}

.qm-body {
    padding: 22px 26px;
}

.qm-field {
    margin-bottom: 20px;
}

.qm-field:last-child {
    margin-bottom: 0;
}

.qm-label {
    display: block;
    font-size: 14px;
    font-weight: 740;
    color: var(--rfj-text-primary);
    margin-bottom: 8px;
}

.qm-label-required {
    color: var(--rfj-red-d70015);
    margin-left: 2px;
}

.qm-software-display {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    background: #fbfbfd;
    border: 1px solid #e5e5ea;
    border-radius: 12px;
}

.qm-software-logo {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    object-fit: contain;
}

.qm-software-name {
    font-size: 14px;
    font-weight: 740;
    color: var(--rfj-text-primary);
}

.qm-software-search {
    position: relative;
}

.qm-software-search-input {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    font-size: 14px;
    color: var(--rfj-text-primary);
    background: #fbfbfd;
    outline: none;
    transition: border-color 200ms ease, box-shadow 200ms ease;
    font-family: inherit;
}

.qm-software-search-input:focus {
    background: #fff;
    border-color: #0071e3;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.14);
}

.qm-software-search-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e5e5ea;
    border-radius: 12px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.12);
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
}

.qm-software-search-dropdown.is-visible {
    display: block;
}

.qm-software-search-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 150ms ease;
}

.qm-software-search-item:hover {
    background: #f5f5f7;
}

.qm-software-search-item-name {
    font-size: 14px;
    color: var(--rfj-text-primary);
}

.qm-software-selected {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f5f9ff;
    border: 1px solid rgba(0, 113, 227, 0.25);
    border-radius: 12px;
}

.qm-software-selected.is-visible {
    display: flex;
}

.qm-software-selected-name {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: #0071e3;
}

.qm-software-selected-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(0, 113, 227, 0.1);
    border-radius: 50%;
    color: #0071e3;
    cursor: pointer;
    transition: all 200ms ease;
}

.qm-software-selected-clear:hover {
    background: #0071e3;
    color: #fff;
}

.qm-textarea {
    width: 100%;
    min-height: 120px;
    padding: 13px 14px;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    font-size: 14px;
    color: var(--rfj-text-primary);
    line-height: 1.6;
    resize: vertical;
    outline: none;
    transition: border-color 200ms ease, box-shadow 200ms ease;
    font-family: inherit;
}

.qm-textarea:focus {
    background: #fff;
    border-color: #0071e3;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.14);
}

.qm-textarea::placeholder {
    color: var(--rfj-text-tertiary);
}

.qm-textarea-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
}

.qm-error {
    font-size: 12px;
    color: var(--rfj-red-d70015);
    display: none;
}

.qm-error.is-visible {
    display: block;
}

.qm-counter {
    font-size: 12px;
    color: #86868b;
}

.qm-counter.is-warning {
    color: #bf6a02;
}

.qm-counter.is-danger {
    color: var(--rfj-red-d70015);
}

.qm-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 26px 22px;
    border-top: 1px solid #e5e5ea;
    background: #fbfbfd;
}

.qm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 200ms ease;
    border: none;
    font-family: inherit;
}

.qm-btn--cancel {
    background: #f5f5f7;
    color: var(--rfj-text-primary);
    border: 1px solid #e5e5ea;
}

.qm-btn--cancel:hover {
    background: #e5e5ea;
    border-color: #d2d2d7;
    color: var(--rfj-text-primary);
}

.qm-btn--submit {
    background: #0071e3;
    color: #fff;
    box-shadow: none;
}

.qm-btn--submit:hover {
    background: #0064c8;
    box-shadow: none;
}

.qm-btn--submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.qm-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
}

.qm-success.is-visible {
    display: flex;
}

.qm-success-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ecfdf5;
    border-radius: 50%;
    color: #10b981;
    margin-bottom: 16px;
}

.qm-success-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--rfj-text-primary);
    margin-bottom: 8px;
}

.qm-success-desc {
    font-size: 14px;
    color: var(--rfj-text-tertiary);
    margin-bottom: 24px;
}

.qm-success-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 18px;
    background: #0071e3;
    color: #fff;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    transition: all 200ms ease;
}

.qm-success-link:hover {
    background: #0064c8;
    box-shadow: none;
}

.qm-login-tip {
    padding: 24px;
    text-align: center;
}

.qm-login-tip-text {
    font-size: 14px;
    color: var(--rfj-text-tertiary);
    margin-bottom: 16px;
}

.qm-login-tip-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 18px;
    background: #0071e3;
    color: #fff;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    transition: all 200ms ease;
}

.qm-login-tip-link:hover {
    background: #0064c8;
}

@media screen and (max-width: 768px) {
    .qm-modal {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        border-radius: 14px 14px 0 0;
    }

    .qm-overlay.is-visible {
        align-items: flex-end;
    }

    .qm-header {
        padding: 18px 18px 14px;
    }

    .qm-title {
        font-size: 20px;
    }

    .qm-body {
        padding: 18px;
    }

    .qm-field {
        margin-bottom: 16px;
    }

    .qm-textarea {
        min-height: 100px;
    }

    .qm-footer {
        padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
        gap: 8px;
    }

    .qm-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .qm-modal {
        border-radius: 14px 14px 0 0;
    }

    .qm-body {
        padding: 14px;
    }

    .qm-footer {
        flex-direction: column;
        padding: 12px 14px;
    }

    .qm-btn {
        width: 100%;
        justify-content: center;
    }

    .qm-success {
        padding: 32px 16px;
    }

    .qm-success-title {
        font-size: 16px;
    }
}
