/* Trigger: click vào tên luật sư */
.qa-card-name.qa-card-name--profile-trigger {
    cursor: pointer;
}

/* Modal hồ sơ luật sư */
.qa-lawyer-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.qa-lawyer-modal-overlay.qa-lawyer-modal--open {
    display: flex;
}

.qa-lawyer-modal {
    position: relative;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    background: #faf9f7;
    border: 1px solid #e8d9a0;
    border-top: 3px solid #EAB508;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
}

.qa-lawyer-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    font-size: 14px;
    color: #EAB508;
    background: transparent;
    border: 1px solid #EAB508;
    border-radius: 4px;
    cursor: pointer;
    z-index: 1;
}

.qa-lawyer-modal-close:hover {
    background: #EAB508;
    color: #fff;
}

.qa-lawyer-modal-body {
    padding: 24px 40px 32px;
}

/* Nội dung inject từ .qa-lawyer-profile-content */
.qa-lawyer-modal-body .qa-lawyer-profile-type-name {
    font-size: 18px;
    color: #000;
    margin-bottom: 16px;
}

.qa-lawyer-modal-body .qa-lawyer-profile-type-name .qa-lawyer-profile-name {
    font-size: 22px;
    font-weight: 700;
    margin-left: 4px;
}

.qa-lawyer-modal-body .qa-lawyer-profile-row {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
}

.qa-lawyer-modal-body .qa-lawyer-profile-image {
    flex-shrink: 0;
    width: 180px;
}

.qa-lawyer-modal-body .qa-lawyer-profile-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.qa-lawyer-modal-body .qa-lawyer-profile-intro-wrap {
    flex: 1;
    min-width: 0;
}

.qa-lawyer-modal-body .qa-lawyer-profile-intro-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #000;
}

.qa-lawyer-modal-body .qa-lawyer-profile-intro {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.qa-lawyer-modal-body .qa-lawyer-profile-intro p,
.qa-lawyer-modal-body .qa-lawyer-profile-detail p {
    margin: 0 0 8px;
}

.qa-lawyer-modal-body .qa-lawyer-profile-sep {
    height: 1px;
    background: linear-gradient(to right, #EAB508, #f5e6b8);
    margin: 16px 0;
}

.qa-lawyer-modal-body .qa-lawyer-profile-detail {
    font-size: 14px;
    line-height: 1.7;
    color: #333;
}

@media (max-width: 768px) {
    .qa-lawyer-modal-body .qa-lawyer-profile-row {
        flex-direction: column;
    }
    .qa-lawyer-modal-body .qa-lawyer-profile-image {
        width: 140px;
    }
    .qa-lawyer-modal-body {
        padding: 20px 16px 24px;
    }
}
