/*
 * Advocate Popup Styles - Sharks of Law
 * Updated: Card-style layout matching Figma Frame 165
 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

/* ══════════════════════════════════════════
   MODAL WRAPPER
══════════════════════════════════════════ */
.sol-adv-modal .modal-content {
    border-radius: 20px;
    overflow: hidden;
    border: none;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    font-family: 'Poppins', sans-serif;
}

/* ══════════════════════════════════════════
   HEADER SECTION  ─  Card Style
══════════════════════════════════════════ */
.adv-modal-header {
    background: #f0f2f5;
    /* Light grey card background */
    color: #111;
    padding: 0;
    position: relative;
    display: flex;
    flex-direction: row;
    min-height: 340px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

/* ── Photo Column ── */
.adv-header-img {
    width: 38%;
    background: #dde0e8;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    border-radius: 20px 0 0 0;
    /* top-left matches modal */
}

.adv-header-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* ── Info Column ── */
.adv-header-info {
    width: 62%;
    padding: 36px 36px 28px 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.adv-header-info .name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.7rem;
    font-weight: 800;
    color: #111;
    line-height: 1.2;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.adv-header-info .title {
    font-size: 0.85rem;
    color: #3ecf2b;
    font-weight: 600;
    margin-bottom: 14px;
}

.adv-header-info .bio {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 18px;
    max-width: 420px;
}

/* ── Meta Items (Experience / Location) ── */
.adv-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 0.85rem;
    color: #333;
}

.adv-meta-item i {
    font-size: 1rem;
    width: 18px;
    color: #e53e3e;
    /* red pin for location; chart icon stays default */
}

.adv-meta-item i.bi-bar-chart-steps {
    color: #333;
    /* experience icon stays dark */
}

/* ── Status Row  (dot + cost + rating + button) ── */
.adv-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.status-indicator-box {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Green glowing dot */
.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: rgba(62, 207, 43, 0.12);
    border-radius: 50%;
}

.dot {
    width: 12px;
    height: 12px;
    background: #3ecf2b;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(62, 207, 43, 0.55);
}

/* Cost badge */
.rating#modal-cost,
span#modal-cost {
    background: #e7f5ed !important;
    color: #28a745 !important;
    border: none !important;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 4px 12px;
    border-radius: 30px;
}

/* Rating badge */
.rating {
    font-weight: 700;
    font-size: 0.88rem;
    color: #333;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ── Consult Now Button (dark navy + arrow circle) ── */
.btn-consult-green {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    background: #1a1a4e !important;
    /* dark navy */
    color: #fff !important;
    border-radius: 50px !important;
    padding: 10px 18px 10px 22px !important;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
    border: none !important;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    white-space: nowrap;
}

.btn-consult-green:hover {
    background: #23236e !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(26, 26, 78, 0.3);
    color: #fff !important;
}

/* White circle arrow */
.consult-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: #fff;
    border-radius: 50%;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.btn-consult-green:hover .consult-arrow {
    transform: translateX(2px);
}

/* ══════════════════════════════════════════
   BODY SECTION  ─  Why + Reviews
══════════════════════════════════════════ */
.adv-modal-body {
    padding: 50px 40px;
    background: #fff;
}

.adv-body-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
}

/* Why Section */
.adv-why-section h3 {
    font-weight: 800;
    color: #13134a;
    margin-bottom: 28px;
    font-size: 1.2rem;
}

.adv-why-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.adv-why-list li {
    margin-bottom: 18px;
    font-size: 1rem;
    display: flex;
    gap: 10px;
    color: #444;
    line-height: 1.55;
}

.adv-why-list li strong {
    color: #13134a;
}

.adv-why-list li::before {
    content: "•";
    color: #3ecf2b;
    font-weight: bold;
    font-size: 1.4rem;
    line-height: 1.1;
    flex-shrink: 0;
}

/* Reviews Card */
.adv-reviews-card {
    background: #fdfaf5;
    border-radius: 20px;
    padding: 28px;
}

.adv-reviews-card h4 {
    color: #00a4fb;
    font-weight: 700;
    margin-bottom: 18px;
    font-size: 1rem;
}

.review-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 14px 0;
}

.review-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.review-user {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: #222;
}

.review-stars {
    color: #00a4fb;
    font-size: 0.75rem;
    display: flex;
    gap: 2px;
}

.review-text {
    font-size: 0.83rem;
    color: #666;
    margin-bottom: 5px;
    line-height: 1.5;
}

.view-more-review {
    color: #00a4fb;
    font-size: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

.view-more-review:hover {
    opacity: 0.75;
    text-decoration: underline;
}

/* ══════════════════════════════════════════
   RESPONSIVE  ─  Tablet (≤ 991px)
══════════════════════════════════════════ */
@media (max-width: 991px) {

    .adv-modal-header {
        flex-direction: row;
        /* Keep side-by-side on tablet */
        min-height: 280px;
    }

    .adv-header-img {
        width: 38%;
    }

    .adv-header-info {
        width: 62%;
        padding: 28px 22px;
    }

    .adv-header-info .name {
        font-size: 1.4rem;
    }

    .adv-modal-body {
        padding: 36px 24px;
    }

    .adv-body-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .adv-status-row {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }

    .btn-consult-green {
        width: auto !important;
    }
}

/* ══════════════════════════════════════════
   RESPONSIVE  ─  Mobile (≤ 576px)
══════════════════════════════════════════ */
@media (max-width: 576px) {

    .adv-modal-header {
        flex-direction: row;
        /* Still side-by-side on mobile */
        min-height: 220px;
    }

    .adv-header-img {
        width: 40%;
        border-radius: 20px 0 0 0;
    }

    .adv-header-info {
        width: 60%;
        padding: 18px 14px 16px 14px;
    }

    .adv-header-info .name {
        font-size: 1.05rem;
        letter-spacing: -0.3px;
    }

    .adv-header-info .title {
        font-size: 0.72rem;
        margin-bottom: 8px;
    }

    .adv-header-info .bio {
        font-size: 0.74rem;
        margin-bottom: 10px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .adv-meta-item {
        font-size: 0.74rem;
        margin-bottom: 7px;
        gap: 6px;
    }

    .adv-meta-item i {
        font-size: 0.85rem;
    }

    .adv-status-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        margin-top: 10px;
    }

    .status-indicator-box {
        gap: 6px;
    }

    .rating#modal-cost,
    span#modal-cost {
        font-size: 0.74rem;
        padding: 3px 8px;
    }

    .rating {
        font-size: 0.74rem;
    }

    .btn-consult-green {
        padding: 8px 12px 8px 14px !important;
        font-size: 0.74rem !important;
        gap: 6px;
    }

    .consult-arrow {
        width: 22px;
        height: 22px;
    }

    .adv-modal-body {
        padding: 24px 16px;
    }

    .adv-why-section h3 {
        font-size: 1.05rem;
    }

    .adv-why-list li {
        font-size: 0.88rem;
    }

    .adv-reviews-card {
        padding: 20px 16px;
    }
}