/* Ask a Question button + modal (job-qa module) */

/* Secondary button next to the primary apply buttons */
.jqa-ask-button {
    background: #ffffff;
    color: #0056b3;
    border: 2px solid #0056b3;
    border-radius: 6px;
    padding: 10px 18px;
    font-weight: 600;
    white-space: nowrap;
}

.jqa-ask-button:hover {
    background: #eaf2fb;
    color: #004494;
    border-color: #004494;
}

/* Modal */
.jqa-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1060;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.jqa-modal--open {
    display: flex;
}

.jqa-modal__dialog {
    position: relative;
    background: #ffffff;
    border-radius: 8px;
    max-width: 520px;
    width: 100%;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.jqa-modal__title {
    margin: 0 0 8px;
    font-size: 20px;
    color: #222;
}

.jqa-modal__hint {
    font-size: 13px;
    color: #666;
    margin-bottom: 14px;
}

.jqa-modal__textarea {
    width: 100%;
    min-height: 120px;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 10px;
    font: inherit;
    resize: vertical;
    box-sizing: border-box;
}

.jqa-modal__counter {
    text-align: right;
    font-size: 12px;
    color: #888;
    margin: 4px 0 12px;
}

.jqa-modal__submit {
    background: #0056b3;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.jqa-modal__submit:hover {
    background: #004494;
}

.jqa-modal__submit:disabled {
    background: #7fa8d0;
    cursor: default;
}

.jqa-modal__error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    border-radius: 4px;
    padding: 10px 14px;
    margin-bottom: 12px;
    font-size: 14px;
}

.jqa-modal__success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    border-radius: 4px;
    padding: 14px;
    font-size: 15px;
    line-height: 1.5;
}

.jqa-modal__success a {
    color: #0b5ed7;
    font-weight: 600;
}

@media (max-width: 576px) {
    .jqa-ask-button {
        width: 100%;
        margin-top: 8px;
    }
}

/* Published Q&A on the job page (opt-in, anonymized) */
.jqa-published-qa {
    background: #f8f9fa;
    border: 1px solid #e3e6ea;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 20px 0;
}

.jqa-published-qa__item {
    border-bottom: 1px solid #e3e6ea;
    padding: 10px 0;
}

.jqa-published-qa__item:last-child {
    border-bottom: none;
}

.jqa-published-qa__q {
    margin-bottom: 6px;
}

.jqa-published-qa__a {
    margin-bottom: 0;
    color: #333;
}
