/* Lawyer Profile Page - Premium, elegant, eye-catching design */

/* Page container: subtle deep gradient, lighter content contrast */
.lawyer-profile-page {
    min-height: 100vh;
    background: var(--surface-base);
    background-image:
        radial-gradient(130% 90% at 10% -20%, rgba(56, 189, 248, 0.2), transparent 55%),
        radial-gradient(120% 80% at 100% 0%, rgba(250, 204, 21, 0.14), transparent 50%),
        radial-gradient(100% 80% at 50% 100%, rgba(37, 99, 235, 0.18), transparent 45%),
        var(--surface-base);
    padding-top: 1.5rem;
    padding-bottom: 3rem;
}

/* Hero */
.lawyer-profile-hero {
    position: relative;
    margin-bottom: 2rem;
    margin-top: 0.25rem;
}

/* Round back button — top-left over banner */
.lawyer-profile-back-btn {
    position: absolute;
    top: 1rem;
    left: 1.25rem;
    z-index: 4;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-card);
    background: var(--surface-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    box-shadow: var(--shadow-md);
}

.lawyer-profile-back-btn:hover {
    background: var(--surface-hover);
    border-color: var(--gold-border);
    color: var(--gold-primary);
}

.lawyer-profile-back-arrow {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.lawyer-profile-banner {
    height: 220px;
    background: radial-gradient(circle at 0% 0%, #22c55e 0%, transparent 55%),
        radial-gradient(circle at 100% 0%, #38bdf8 0%, transparent 55%),
        linear-gradient(135deg, var(--surface-elevated) 0%, var(--surface-base) 45%, var(--surface-base) 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0 0 28px 28px;
    box-shadow: var(--shadow-lg);
    transition: height 0.4s ease;
}

.lawyer-profile-banner.has-image {
    height: 280px;
    box-shadow: 0 24px 56px -16px rgba(0, 0, 0, 0.5);
}

.lawyer-profile-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 280px;
    max-height: 100%;
    border-radius: 0 0 28px 28px;
    background: linear-gradient(180deg, rgba(var(--surface-base-rgb), 0.35) 0%, rgba(var(--surface-base-rgb), 0.6) 50%, rgba(var(--surface-base-rgb), 0.85) 100%);
    pointer-events: none;
}

.lawyer-profile-hero .lawyer-profile-banner:not(.has-image)+.lawyer-profile-banner-overlay {
    opacity: 0;
}

.lawyer-profile-hero-shine {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 280px;
    border-radius: 0 0 28px 28px;
    background:
        radial-gradient(circle at 20% 0%, rgba(56, 189, 248, 0.5), transparent 55%),
        radial-gradient(circle at 80% -10%, rgba(250, 204, 21, 0.35), transparent 55%);
    pointer-events: none;
}

.lawyer-profile-hero-container {
    position: relative;
    margin-top: -88px;
    z-index: 3;
}

.lawyer-profile-hero-card {
    background: var(--surface-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-card);
    border-radius: 20px;
    padding: 1.5rem 1.25rem;
    box-shadow: var(--shadow-xl);
}

.lawyer-profile-hero-grid {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.lawyer-profile-avatar-wrap {
    flex-shrink: 0;
}

.lawyer-profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 24px;
    background: linear-gradient(145deg, var(--gold-light) 0%, var(--gold-primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-gold);
    border: 2px solid var(--surface-card);
}

.lawyer-profile-avatar.has-img .lawyer-profile-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 22px;
    object-fit: cover;
}

.lawyer-profile-avatar-initial {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #1f2937;
}

.lawyer-profile-hero-info {
    flex: 1;
    min-width: 0;
}

.lawyer-profile-name {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary, #f1f5f9);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 0.25rem;
}

.lawyer-profile-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.lawyer-profile-verified-icon {
    width: 14px;
    height: 14px;
}

.lawyer-profile-firm {
    font-size: 0.9rem;
    color: var(--text-muted, #94a3b8);
    margin: 0 0 0.5rem;
}

.lawyer-profile-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--text-muted, #94a3b8);
}

.lawyer-profile-meta-item strong {
    color: var(--gold-primary, #F5C86A);
}

.lawyer-profile-meta-dot {
    opacity: 0.6;
}

/* Body sections */
.lawyer-profile-body {
    padding-top: 0.5rem;
}

.lawyer-profile-section {
    margin-bottom: 2rem;
}

.lawyer-profile-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary, #f1f5f9);
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, var(--gold-primary, #F5C86A), transparent) 1;
}

/* About */
.lawyer-about-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.lawyer-about-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    font-size: 0.8rem;
}

.pill-label {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    color: var(--text-muted, #94a3b8);
}

.pill-value {
    font-weight: 600;
    color: var(--text-primary, #f1f5f9);
}

.lawyer-about-text {
    color: var(--text-secondary, #cbd5e1);
    font-size: 0.95rem;
    line-height: 1.65;
}

.lawyer-about-text p {
    margin: 0 0 0.75rem;
}

.lawyer-about-text p:last-child {
    margin-bottom: 0;
}

/* Testimonials — horizontal layout, fancy font */
.lawyer-profile-testimonials .lawyer-profile-section-title {
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    font-weight: 600;
}

.lawyer-testimonials-text {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: stretch;
}

.lawyer-testimonial-card {
    flex: 1 1 280px;
    min-width: 0;
    background: var(--surface-card);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 0;
    transition: all 0.3s ease;
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
}

.lawyer-testimonial-card:hover {
    background: var(--surface-hover);
    border-color: var(--gold-border);
    box-shadow: var(--shadow-lg);
}

.lawyer-testimonial-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
}

.lawyer-testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-bg-subtle) 0%, var(--gold-border) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold-primary, #F5C86A);
}

.lawyer-testimonial-heading {
    flex: 1;
    min-width: 0;
}

.lawyer-testimonial-name {
    font-weight: 600;
    color: var(--text-primary, #f1f5f9);
    font-size: 1.05rem;
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
}

.lawyer-testimonial-rating {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.8rem;
    margin-top: 0.15rem;
}

.lawyer-testimonial-star {
    color: var(--gold-primary, #F5C86A);
    font-size: 0.9rem;
}

.lawyer-testimonial-rating-label {
    color: var(--text-muted, #94a3b8);
    margin-left: 0.25rem;
}

.lawyer-testimonial-body p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-secondary, #cbd5e1);
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    font-style: italic;
}

/* Video subsection */
.lawyer-profile-subsection-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted, #94a3b8);
    margin: 1.5rem 0 0.75rem;
}

.lawyer-video-card {
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(31, 41, 55, 0.9);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.lawyer-video-card:hover {
    border-color: rgba(245, 200, 106, 0.12);
    box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.35);
}

.lawyer-video-frame {
    border-radius: 14px;
    overflow: hidden;
}

.lawyer-video-title {
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary, #cbd5e1);
}

.lawyer-docs-section {
    margin-top: 1.5rem;
}

.lawyer-docs-row {
    margin-bottom: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.lawyer-docs-row .lawyer-video-col,
.lawyer-docs-row .col-sm-6 {
    flex: 0 0 auto;
    width: auto;
    max-width: 480px;
}

.lawyer-docs-list .lawyer-doc-card {
    margin-bottom: 0.75rem;
}

.lawyer-doc-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.lawyer-doc-card:hover {
    border-color: rgba(245, 200, 106, 0.12);
    box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.35);
}

.lawyer-doc-file .lawyer-doc-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    color: var(--text-secondary, #cbd5e1);
    text-decoration: none;
    transition: color 0.2s ease;
}

.lawyer-doc-file .lawyer-doc-link:hover {
    color: var(--accent-gold, #f5c86a);
}

.lawyer-doc-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
}

.lawyer-doc-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 200, 106, 0.15);
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-gold, #f5c86a);
}

.lawyer-doc-title {
    flex: 1;
    font-size: 0.9rem;
}

/* FAQ Accordion */
.lawyer-faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.lawyer-faq-item {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.lawyer-faq-item:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.lawyer-faq-item.is-open {
    border-color: rgba(245, 200, 106, 0.25);
    box-shadow: 0 8px 24px -8px rgba(245, 200, 106, 0.15);
}

.lawyer-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    background: transparent;
    border: none;
    color: var(--text-primary, #f1f5f9);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease;
}

.lawyer-faq-question:hover {
    background: rgba(255, 255, 255, 0.04);
}

.lawyer-faq-question:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(245, 200, 106, 0.35);
}

.lawyer-faq-question-text {
    flex: 1;
    min-width: 0;
    line-height: 1.4;
}

.lawyer-faq-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    color: var(--gold-primary, #F5C86A);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lawyer-faq-item.is-open .lawyer-faq-icon {
    transform: rotate(180deg);
}

.lawyer-faq-icon svg {
    width: 100%;
    height: 100%;
}

/* Answer wrapper: collapsed by default; only visible when .is-open (accordion) */
.lawyer-profile-faq .lawyer-faq-answer-wrap {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Force closed state so answers never show until opened */
.lawyer-profile-faq .lawyer-faq-answer-wrap:not(.is-open) {
    max-height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    opacity: 0;
    visibility: hidden;
}

.lawyer-profile-faq .lawyer-faq-answer-wrap.is-open {
    max-height: 500px;
    opacity: 1;
    visibility: visible;
}

.lawyer-faq-answer {
    padding: 0 1.1rem 1rem;
}

.lawyer-faq-answer p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--text-secondary, #cbd5e1);
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Responsive */
@media (max-width: 767px) {
    .lawyer-profile-banner {
        height: 160px;
        border-radius: 0 0 20px 20px;
    }

    .lawyer-profile-hero-shine {
        height: 160px;
        border-radius: 0 0 20px 20px;
    }

    .lawyer-profile-hero-container {
        margin-top: -56px;
    }

    .lawyer-profile-hero-card {
        padding: 1.25rem 1rem;
    }

    .lawyer-profile-avatar {
        width: 72px;
        height: 72px;
        border-radius: 18px;
    }

    .lawyer-profile-avatar-initial {
        font-size: 1.35rem;
    }

    .lawyer-profile-name {
        font-size: 1.2rem;
    }

    .lawyer-profile-section-title {
        font-size: 1.1rem;
    }

    .lawyer-faq-question {
        padding: 0.9rem 1rem;
        font-size: 0.85rem;
    }

    .lawyer-faq-answer {
        padding: 0 1rem 0.9rem;
    }
}

/* ========== LIGHT THEME – Lawyer Profile Page ========== */

[data-theme="light"] .lawyer-profile-page {
    background-image:
        radial-gradient(130% 90% at 10% -20%, rgba(200, 169, 110, 0.12), transparent 55%),
        radial-gradient(120% 80% at 100% 0%, rgba(212, 168, 54, 0.1), transparent 50%),
        var(--surface-base);
}

[data-theme="light"] .lawyer-profile-banner {
    background:
        radial-gradient(circle at 0% 0%, rgba(200, 169, 110, 0.25) 0%, transparent 55%),
        radial-gradient(circle at 100% 0%, rgba(212, 168, 54, 0.18) 0%, transparent 55%),
        linear-gradient(135deg, var(--surface-elevated) 0%, var(--surface-base) 100%);
    box-shadow: var(--shadow-md);
}

[data-theme="light"] .lawyer-profile-hero-shine {
    background:
        radial-gradient(circle at 20% 0%, rgba(200, 169, 110, 0.18), transparent 55%),
        radial-gradient(circle at 80% -10%, rgba(212, 168, 54, 0.1), transparent 55%);
}

/* About pills: replace dark white-glass with warm surface */
[data-theme="light"] .lawyer-about-pill {
    background: var(--surface-hover);
    border-color: var(--border-card);
}

/* Video cards */
[data-theme="light"] .lawyer-video-card {
    background: var(--surface-card);
    border-color: var(--border-card);
    box-shadow: var(--shadow-sm);
}

[data-theme="light"] .lawyer-video-card:hover {
    border-color: var(--gold-border);
    box-shadow: var(--shadow-md);
}

/* Doc cards */
[data-theme="light"] .lawyer-doc-card {
    background: var(--surface-card);
    border-color: var(--border-card);
    box-shadow: var(--shadow-sm);
}

[data-theme="light"] .lawyer-doc-card:hover {
    border-color: var(--gold-border);
    box-shadow: var(--shadow-md);
}

/* FAQ Items */
[data-theme="light"] .lawyer-faq-item {
    background: var(--surface-card);
    border-color: var(--border-subtle);
}

[data-theme="light"] .lawyer-faq-item:hover {
    border-color: var(--border-card);
    background: var(--surface-hover);
}

[data-theme="light"] .lawyer-faq-item.is-open {
    border-color: var(--gold-border);
    box-shadow: 0 8px 24px -8px rgba(200, 169, 110, 0.15);
}

[data-theme="light"] .lawyer-faq-question:hover {
    background: var(--gold-bg-subtle);
}

[data-theme="light"] .lawyer-faq-answer p {
    border-top-color: var(--border-subtle);
}