/* Base styles */
/* Practitioner profile page specific overrides */

/* Contain media to viewport on small screens */
.ssuk-practitioner-profile-page img,
.ssuk-practitioner-profile-page svg,
.ssuk-practitioner-profile-page video,
.ssuk-practitioner-profile-page canvas {
    max-width: 100%;
    height: auto;
}

/* Avoid long strings causing horizontal scrolling */
.ssuk-practitioner-profile-page :where(p, span, a, div) {
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* Scope all layout rules to this page to outrank theme styles without !important */
.ssuk-practitioner-profile-page .max-w-7xl,
.ssuk-practitioner-profile-page .profile-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.ssuk-practitioner-profile-page .grid {
    display: grid;
}

.ssuk-practitioner-profile-page .lg\:grid-cols-3 {
    grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
    .ssuk-practitioner-profile-page .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.ssuk-practitioner-profile-page .lg\:col-span-2 {
    grid-column: span 1 / span 1;
}
@media (min-width: 1024px) {
    .ssuk-practitioner-profile-page .lg\:col-span-2 {
        grid-column: span 2 / span 2;
    }
}

/* Ensure header card and avatar borders render as in the design */
.ssuk-practitioner-profile-page .profile-header-card {
    background-color: #ffffff;
    border: 2px solid #442d72;
    border-radius: 0.5rem; /* rounded-lg */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ssuk-practitioner-profile-page .profile-avatar {
    border: 4px solid #442d72;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
}

/* Fix profile image display and centering */
.ssuk-practitioner-profile-page .bg-white.border-2 img[class*="rounded-full"] {
    display: block;
    margin: 0 auto;
    object-fit: cover;
    object-position: center;
    aspect-ratio: 1 / 1;
}

/* Ensure profile image doesn't shrink on mobile */
@media (max-width: 768px) {
    .ssuk-practitioner-profile-page .bg-white.border-2 img[class*="rounded-full"] {
        width: 8rem !important;
        height: 8rem !important;
        min-width: 8rem !important;
        min-height: 8rem !important;
    }
}

/* Center align Quick Actions buttons text and icons */
.ssuk-practitioner-profile-page .space-y-3 a[href*="appointment"],
.ssuk-practitioner-profile-page .space-y-3 a[href^="tel:"] {
    text-align: center !important;
    justify-content: center !important;
    align-items: center !important;
}

.ssuk-practitioner-profile-page .space-y-3 a[href*="appointment"] span,
.ssuk-practitioner-profile-page .space-y-3 a[href^="tel:"] span {
    text-align: center !important;
}

/* Match pill sizing and spacing */
.ssuk-practitioner-profile-page .profile-badges .profile-pill {
    padding: 0.25rem 0.75rem; /* py-1 px-3 */
    gap: 0.25rem;            /* icon text gap */
    line-height: 1.25rem;    /* text-sm line-height */
}
.ssuk-practitioner-profile-page .profile-badges .profile-pill i {
    margin-right: 0.25rem;
}

body {
    --tw-gradient-to: #faf5ff var(--tw-gradient-to-position);

    --tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);
    --tw-gradient-stops: var(--tw-gradient-from), #fff var(--tw-gradient-via-position), var(--tw-gradient-to);

    --tw-gradient-from: #faf5ff var(--tw-gradient-from-position);
    --tw-gradient-to: rgb(250 245 255 / 0) var(--tw-gradient-to-position);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);

    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

#main-container-inner {
    padding: 0;
}

.main-container-inner .w3css-content {
    margin-bottom: 0px;
    margin-top: 0px;
}

.main-container-inner .w3css-content > div {
    padding: 0 !important;

}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    max-width: 1200px;
    margin: 0 auto;
}


/* Main content responsive adjustments */
@media (max-width: 1024px) {
    .ssuk-practitioner-profile-page .lg\:grid-cols-3 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .ssuk-practitioner-profile-page .lg\:col-span-2 {
        grid-column: span 1 / span 1;
    }
    
    /* Ensure proper stacking on mobile - main content first, then sidebar */
    .ssuk-practitioner-profile-page .grid > div:first-child {
        order: 1;
    }
    
    .ssuk-practitioner-profile-page .grid > div:last-child {
        order: 2;
    }
}

@media (max-width: 768px) {
    /* Hide desktop tab header on mobile */
    .ssuk-practitioner-profile-page .flex.border-b.overflow-x-auto {
        display: none;
    }

    /* Show accordion triggers on mobile */
    .ssuk-practitioner-profile-page .accordion-trigger {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        background: #ffffff;
        border-color: #e5e7eb; /* gray-200 */
    }

    /* Rotate chevron when open */
    .ssuk-practitioner-profile-page .accordion-trigger .chev {
        transition: transform 0.2s ease;
    }
    .ssuk-practitioner-profile-page .accordion-trigger.open .chev {
        transform: rotate(180deg);
    }

    /* Panel spacing under accordion */
    .ssuk-practitioner-profile-page .tab-content {
        padding-top: 0.75rem;
    }
    /* Allow horizontal scrollbar if any content overflows */
    body {
        overflow-x: auto;
    }
    
    .ssuk-practitioner-profile-page {
        width: 100%;
        max-width: 100%;
    }
    
    .ssuk-practitioner-profile-page .max-w-7xl {
        padding-left: 1rem;
        padding-right: 1rem;
        padding-top: 1rem;
        padding-bottom: 1rem;
        max-width: 100%;
    }
    
    /* Ensure all content containers don't exceed viewport */
    .ssuk-practitioner-profile-page * {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Keep tab headers scrollable and touch-friendly */
    .ssuk-practitioner-profile-page .tab-button {
        min-width: max-content;
    }

    .ssuk-practitioner-profile-page .flex.border-b.overflow-x-auto {
        gap: 0.25rem;
        padding-bottom: 0.25rem;
    }

    .profile-edit-header h1 {
        font-size: 1.5rem;
    }

    .tab-buttons {
        flex-direction: column;
    }

    .tab-btn {
        text-align: left;
        border-bottom: 1px solid #e9ecef;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .time-inputs {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-secondary.small {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Mobile header adjustments */
    .ssuk-practitioner-profile-page h1 {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }
    
    .ssuk-practitioner-profile-page .text-lg {
        font-size: 1rem;
        line-height: 1.5rem;
    }
    
    /* Mobile promotional banner */
    .ssuk-practitioner-profile-page .bg-gradient-to-r {
        padding: 1.5rem;
    }
    
    .ssuk-practitioner-profile-page .text-2xl {
        font-size: 1.5rem;
        line-height: 2rem;
    }
    
    /* Mobile tab adjustments */
    .ssuk-practitioner-profile-page .tab-button {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    /* Mobile tab container scroll */
    .ssuk-practitioner-profile-page .overflow-x-auto {
        -webkit-overflow-scrolling: touch;
        scrollbar-width: auto;
        -ms-overflow-style: auto;
    }
    
    .ssuk-practitioner-profile-page .overflow-x-auto::-webkit-scrollbar {
        display: initial;
        height: 6px;
    }
    
    /* Ensure promotional content is visible on mobile */
    .ssuk-practitioner-profile-page .bg-gradient-to-r {
        display: block !important;
        margin-bottom: 1.5rem;
    }
    
    /* Mobile promotional content layout */
    .ssuk-practitioner-profile-page .md\:flex {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .ssuk-practitioner-profile-page .md\:w-64 {
        width: 100%;
        max-width: 16rem;
        height: 12rem;
        margin-top: 1rem;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Mobile specific adjustments */
    .ssuk-practitioner-profile-page .border-2 {
        border-width: 1px;
    }
    
    /* Ensure profile picture border is always visible */
    .ssuk-practitioner-profile-page .border-4 {
        border-width: 4px !important;
    }
    
    .ssuk-practitioner-profile-page .shadow-lg {
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    }
    
    /* Improve mobile readability */
    .ssuk-practitioner-profile-page .text-3xl {
        font-size: 2rem;
        line-height: 2.5rem;
    }
    
    .ssuk-practitioner-profile-page .text-lg {
        font-size: 1.125rem;
        line-height: 1.75rem;
    }
    
    /* Mobile card spacing */
    .ssuk-practitioner-profile-page .space-y-6 > * + * {
        margin-top: 1.5rem;
    }
    
    /* Mobile gap adjustments */
    .ssuk-practitioner-profile-page .gap-8 {
        gap: 1.5rem;
    }
    
    .ssuk-practitioner-profile-page .gap-6 {
        gap: 1rem;
    }
    
    /* Fix specific width issues */
    .ssuk-practitioner-profile-page .rounded-lg,
    .ssuk-practitioner-profile-page .bg-white,
    .ssuk-practitioner-profile-page .bg-gradient-to-r {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    /* Fix padding that might cause overflow */
    .ssuk-practitioner-profile-page .p-8 {
        padding: 1.5rem;
    }

    .ssuk-practitioner-profile-page .p-6 {
        padding: 0.875rem;
    }
    
    /* Ensure grid and flex containers behave properly */
    .ssuk-practitioner-profile-page .grid,
    .ssuk-practitioner-profile-page .flex {
        max-width: 100%;
        min-width: 0;
    }
    
    /* Fix tab container scrolling */
    .ssuk-practitioner-profile-page .overflow-x-auto {
        width: 100%;
        max-width: 100%;
        -webkit-overflow-scrolling: touch;
    }

    .ssuk-practitioner-profile-page .tabs-sections {
        display: none;
    }
}

/* Very small devices refinements */
@media (max-width: 480px) {
    .ssuk-practitioner-profile-page h1 {
        font-size: 1.5rem;
        line-height: 2rem;
    }

    .ssuk-practitioner-profile-page .text-3xl {
        font-size: 1.75rem;
        line-height: 2.125rem;
    }

    .ssuk-practitioner-profile-page .grid.grid-cols-1 {
        row-gap: 1rem;
    }

    .ssuk-practitioner-profile-page .tab-button {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        font-size: 0.875rem;
    }

    .ssuk-practitioner-profile-page .w-32.h-32 {
        width: 5.5rem;
        height: 5.5rem;
    }

    /* Share card buttons stack comfortably */
    .ssuk-practitioner-profile-page .share-card-gradient .grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    /* Prevent horizontal scroll */
    .ssuk-practitioner-profile-page {
        overflow-x: hidden !important;
    }
    
    .ssuk-practitioner-profile-page * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Fix text overflow */
    .ssuk-practitioner-profile-page p,
    .ssuk-practitioner-profile-page span,
    .ssuk-practitioner-profile-page div {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* Fix button widths */
    .ssuk-practitioner-profile-page button,
    .ssuk-practitioner-profile-page .btn-primary,
    .ssuk-practitioner-profile-page a[class*="bg-primary"] {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Fix table overflow */
    .ssuk-practitioner-profile-page table {
        display: block !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    /* Fix availability grid on mobile */
    .ssuk-practitioner-profile-page .grid.grid-cols-\[140px_1fr_1fr\] {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }
    
    .ssuk-practitioner-profile-page .grid.grid-cols-\[140px_1fr_1fr\] > span:first-child {
        font-weight: 600 !important;
        margin-bottom: 0.25rem !important;
    }
    
    .ssuk-practitioner-profile-page .grid.grid-cols-\[140px_1fr_1fr\] > span.col-span-2 {
        grid-column: span 1 !important;
    }
    
    /* Additional icon fixes for very small screens */
    .ssuk-practitioner-profile-page .w-3.h-3 {
        width: 1.125rem !important; /* 18px */
        height: 1.125rem !important; /* 18px */
    }
    
    .ssuk-practitioner-profile-page .w-4.h-4 {
        width: 1.375rem !important; /* 22px */
        height: 1.375rem !important; /* 22px */
    }
    
    .ssuk-practitioner-profile-page .w-5.h-5 {
        width: 1.625rem !important; /* 26px */
        height: 1.625rem !important; /* 26px */
    }
    
    /* Better touch targets for icon buttons */
    .ssuk-practitioner-profile-page button svg,
    .ssuk-practitioner-profile-page a svg {
        min-width: 1.5rem !important; /* 24px minimum touch target */
        min-height: 1.5rem !important;
    }
    
    /* Fix icon alignment in pills/badges */
    .ssuk-practitioner-profile-page .inline-flex.items-center {
        gap: 0.5rem !important; /* Better spacing on mobile */
    }
}

/* Modal responsive styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 50;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    max-width: 28rem;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

@media (max-width: 640px) {
    .modal-content {
        margin: 1rem;
        width: calc(100% - 2rem);
    }
}

/* Tab responsiveness */
@media (max-width: 768px) {
    .tab-buttons {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tab-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

/* Avatar responsiveness */
@media (max-width: 640px) {
    .profile-avatar {
        width: 6rem !important;
        height: 6rem !important;
    }
}

/* Badge responsiveness */
@media (max-width: 640px) {
    .profile-badges {
        flex-wrap: wrap;
        justify-content: center;
    }

    .profile-pill {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Sidebar responsiveness */
@media (max-width: 1024px) {
    .edit-sidebar {
        order: -1;
        margin-bottom: 2rem;
    }
}

/* Grid responsiveness improvements for practitioner profile */
@media (max-width: 1024px) {
    .ssuk-practitioner-profile-page .grid {
        gap: 1.5rem;
    }
    
    .ssuk-practitioner-profile-page .space-y-6 {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .ssuk-practitioner-profile-page .grid {
        gap: 1rem;
    }
    
    .ssuk-practitioner-profile-page .space-y-6 {
        gap: 1rem;
    }
    
    .ssuk-practitioner-profile-page .p-8 {
        padding: 1.5rem;
    }
    
    .ssuk-practitioner-profile-page .p-6 {
        padding: 1rem;
    }
    
    /* Adjust profile header for mobile */
    .ssuk-practitioner-profile-page .w-32 {
        width: 6rem;
        height: 6rem;
    }
    
    /* Fix profile image centering and sizing */
    .ssuk-practitioner-profile-page .profile-header-card img,
    .ssuk-practitioner-profile-page .bg-white.border-2 img[class*="w-32"] {
        display: block !important;
        margin: 0 auto !important;
        width: 8rem !important; /* 128px on mobile for better visibility */
        height: 8rem !important;
        max-width: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
    }
    
    /* Ensure profile image container is centered on mobile */
    .ssuk-practitioner-profile-page .flex.flex-col.md\:flex-row.items-center img {
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    /* Center align Session Options buttons */
    .ssuk-practitioner-profile-page .bg-green-50,
    .ssuk-practitioner-profile-page .bg-blue-50 {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    /* Mobile flex adjustments */
    .ssuk-practitioner-profile-page .flex-col {
        text-align: center;
    }
    
    .ssuk-practitioner-profile-page .md\:flex-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .ssuk-practitioner-profile-page .md\:text-left {
        text-align: center;
    }
    
    .ssuk-practitioner-profile-page .md\:justify-start {
        justify-content: center;
    }
    
    /* Mobile promotional content adjustments */
    .ssuk-practitioner-profile-page .md\:w-64 {
        width: 100%;
        height: 12rem;
        margin-top: 1rem;
    }
    
    /* Fix availability grid on tablet */
    .ssuk-practitioner-profile-page .grid.grid-cols-\[140px_1fr_1fr\] {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }
    
    .ssuk-practitioner-profile-page .grid.grid-cols-\[140px_1fr_1fr\] > span:first-child {
        font-weight: 600 !important;
        margin-bottom: 0.25rem !important;
        display: block !important;
    }
    
    .ssuk-practitioner-profile-page .grid.grid-cols-\[140px_1fr_1fr\] > span.col-span-2 {
        grid-column: span 1 !important;
    }
    
    /* Fix social media links on mobile */
    .ssuk-practitioner-profile-page .grid.grid-cols-2 {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }
    
    /* Fix session rates grid on mobile */
    .ssuk-practitioner-profile-page .grid.gap-4 {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }
    
    /* Prevent horizontal scroll */
    .ssuk-practitioner-profile-page {
        overflow-x: hidden !important;
    }
    
    /* Fix button widths on mobile */
    .ssuk-practitioner-profile-page button,
    .ssuk-practitioner-profile-page .btn-primary,
    .ssuk-practitioner-profile-page a[class*="bg-primary"]:not(.profile-pill) {
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
    }
    
    /* Fix back link on mobile */
    .ssuk-practitioner-profile-page .back-link {
        font-size: 0.875rem !important;
        padding: 0.5rem 0 !important;
    }
    
    /* Fix edit profile button on mobile */
    .ssuk-practitioner-profile-page .flex.justify-end {
        justify-content: flex-start !important;
    }
    
    .ssuk-practitioner-profile-page .flex.justify-end a {
        width: 100% !important;
        text-align: center !important;
    }
    
    /* Fix promotional banner on mobile */
    .ssuk-practitioner-profile-page .bg-gradient-to-r.from-purple-50 {
        padding: 1rem !important;
    }
    
    .ssuk-practitioner-profile-page .bg-gradient-to-r.from-purple-50 .flex {
        flex-direction: column !important;
    }
    
    .ssuk-practitioner-profile-page .bg-gradient-to-r.from-purple-50 .text-2xl {
        font-size: 1.25rem !important;
        line-height: 1.75rem !important;
    }
    
    /* Ensure all images scale properly */
    .ssuk-practitioner-profile-page img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Fix contact form on mobile */
    .ssuk-practitioner-profile-page form {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .ssuk-practitioner-profile-page form input,
    .ssuk-practitioner-profile-page form textarea {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 16px !important; /* Prevents zoom on iOS */
    }
    
    /* Fix icon sizes and alignment on mobile */
    .ssuk-practitioner-profile-page svg {
        flex-shrink: 0 !important;
    }
    
    /* Increase small icons (w-3 h-3 = 12px) to 16px on mobile */
    .ssuk-practitioner-profile-page .w-3.h-3,
    .ssuk-practitioner-profile-page svg.w-3,
    .ssuk-practitioner-profile-page [class*="w-3"][class*="h-3"] {
        width: 1rem !important; /* 16px */
        height: 1rem !important; /* 16px */
        min-width: 1rem !important;
        min-height: 1rem !important;
    }
    
    /* Increase medium icons (w-4 h-4 = 16px) to 20px on mobile */
    .ssuk-practitioner-profile-page .w-4.h-4,
    .ssuk-practitioner-profile-page svg.w-4,
    .ssuk-practitioner-profile-page [class*="w-4"][class*="h-4"] {
        width: 1.25rem !important; /* 20px */
        height: 1.25rem !important; /* 20px */
        min-width: 1.25rem !important;
        min-height: 1.25rem !important;
    }
    
    /* Increase large icons (w-5 h-5 = 20px) to 24px on mobile */
    .ssuk-practitioner-profile-page .w-5.h-5,
    .ssuk-practitioner-profile-page svg.w-5,
    .ssuk-practitioner-profile-page [class*="w-5"][class*="h-5"] {
        width: 1.5rem !important; /* 24px */
        height: 1.5rem !important; /* 24px */
        min-width: 1.5rem !important;
        min-height: 1.5rem !important;
    }
    
    /* Fix icon spacing in badges/pills */
    .ssuk-practitioner-profile-page .inline-flex.items-center svg {
        margin-right: 0.375rem !important; /* 6px instead of 4px */
    }
    
    /* Fix icon alignment in flex containers */
    .ssuk-practitioner-profile-page .flex.items-center svg,
    .ssuk-practitioner-profile-page .inline-flex.items-center svg {
        display: inline-block !important;
        vertical-align: middle !important;
    }
    
    /* Fix share card icons */
    .ssuk-practitioner-profile-page .share-card-gradient svg {
        width: 1.25rem !important; /* 20px */
        height: 1.25rem !important; /* 20px */
    }
    
    /* Fix back link icon */
    .ssuk-practitioner-profile-page .back-link svg {
        width: 1.25rem !important; /* 20px */
        height: 1.25rem !important; /* 20px */
    }
    
    /* Fix edit profile button icon */
    .ssuk-practitioner-profile-page a[href*="edit"] svg {
        width: 1.25rem !important; /* 20px */
        height: 1.25rem !important; /* 20px */
    }
    
    /* Fix availability section icons */
    .ssuk-practitioner-profile-page .grid.gap-3 svg {
        width: 1.25rem !important; /* 20px */
        height: 1.25rem !important; /* 20px */
    }
    
    /* Fix social media icons */
    .ssuk-practitioner-profile-page .lucide svg,
    .ssuk-practitioner-profile-page [data-lucide] {
        width: 1.5rem !important; /* 24px */
        height: 1.5rem !important; /* 24px */
    }
    
    /* Ensure icons don't break layout */
    .ssuk-practitioner-profile-page svg {
        display: inline-block !important;
        vertical-align: middle !important;
    }
}

/* Main content */
.main {
    padding: 32px 0;
}

.back-btn {
    background: none;
    border: none;
    color: #442d72;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 0;
    transition: opacity 0.2s;
}

.back-btn:hover {
    opacity: 0.8;
}

.profile-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}

/* Profile header */
.profile-header {
    background: white;
    border: 2px solid #442d72;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
    display: flex;
    gap: 24px;
    align-items: center;
}

.profile-avatar {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #442d72;
    box-shadow: 0 8px 32px rgba(68, 45, 114, 0.2);
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 32px;
    font-weight: bold;
    color: #442d72;
    margin-bottom: 8px;
}

.profile-credentials {
    font-size: 18px;
    color: #718096;
    margin-bottom: 16px;
}

.review-count {
    color: #718096;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.badge.experience {
    background: rgba(68, 45, 114, 0.1);
    color: #442d72;
}

.badge.home-visits {
    background: rgba(34, 197, 94, 0.1);
    color: #059669;
}

.badge.teaching {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

/* Tabs */
.tabs-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Accordion triggers hidden by default (desktop) */
.ssuk-practitioner-profile-page .accordion-trigger {
    display: none;
    background: #fff;
}

/* Smooth slide animation for accordion panels */
.ssuk-practitioner-profile-page .accordion-anim {
    will-change: height;
}

/* Force mobile accordion state when class is present (JS-assisted) */
.ssuk-practitioner-profile-page.mobile-accordion .flex.border-b.overflow-x-auto {
    display: none !important;
}
.ssuk-practitioner-profile-page.mobile-accordion .accordion-trigger {
    display: flex;
    align-items: center;
}

.tabs {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
}

.tab-btn {
    flex: 1;
    padding: 16px 24px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-weight: 500;
    color: #718096;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn.active {
    color: #442d72;
    background: rgba(68, 45, 114, 0.05);
    border-bottom-color: #442d72;
}

.tab-content {
    padding: 24px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.content-section {
    margin-bottom: 24px;
}

.content-section h3 {
    font-size: 20px;
    font-weight: bold;
    color: #442d72;
    margin-bottom: 12px;
}

.content-section p {
    color: #374151;
    line-height: 1.6;
}

.specialty-tags,
.language-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 6px 12px;
    background: white;
    border: 1px solid #442d72;
    color: #442d72;
    border-radius: 20px;
    font-size: 14px;
}

.language-tag {
    padding: 6px 12px;
    background: #f3f4f6;
    color: #374151;
    border-radius: 20px;
    font-size: 14px;
}

.qualifications-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qualification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: rgba(68, 45, 114, 0.05);
    border-radius: 8px;
}

.qualification-item i {
    color: #442d72;
    margin-top: 2px;
}

.schedule-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.schedule-item {
    display: grid;
    grid-template-columns: 100px 1fr 1fr;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #4a5568;
}

.day {
    font-weight: 500;
    color: #374151;
    text-transform: capitalize;
}

.hours {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #718096;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sidebar-card h3 {
    color: #442d72;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 16px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.contact-item i {
    color: #442d72;
    margin-top: 4px;
    width: 20px;
}

.contact-item .label {
    font-size: 12px;
    color: #718096;
    margin-bottom: 4px;
}

.contact-item .value {
    font-weight: 500;
    color: #374151;
}

.session-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 8px;
}

.session-option:first-child {
    background: rgba(34, 197, 94, 0.1);
    color: #059669;
}

.session-option:last-child {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.contact-btn-main {
    width: 100%;
    background: #442d72;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.contact-btn-main:hover {
    background: #3a2461;
}

.quick-action-btn {
    width: 100%;
    background: white;
    border: 1px solid #442d72;
    color: #442d72;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.quick-action-btn:hover {
    background: rgba(68, 45, 114, 0.1);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.modal-header {
    padding: 24px 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: #442d72;
    font-size: 20px;
    font-weight: bold;
}

.close {
    color: #718096;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #442d72;
}

.contact-form {
    padding: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    color: #442d72;
    font-weight: 500;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #442d72;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.submit-btn {
    width: 100%;
    background: #442d72;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.submit-btn:hover {
    background: #3a2461;
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .profile-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        text-align: left;
    }
}

.schedule-item .location {
    color: #666;
    font-size: 0.9rem;
}

.schedule-item .location i {
    margin-right: 0.5rem;
}

/* Promotional content styles */
.promotional-content {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid #dee2e6;
}

.promotional-text {
    flex: 1;
}

.promotional-text h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.promotional-image {
    width: 150px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
}

.promo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Research list styles */
.research-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.research-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #4a5568;
}

.research-item i {
    color: #4a5568;
    margin-top: 0.2rem;
}

/* Social links styles */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.social-link:hover {
    background: #e9ecef;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.social-link i {
    width: 20px;
    font-size: 1.2rem;
    color: #4a5568;
} 

/* Back link transitions and color */
.back-link {
    transition-property: color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, -webkit-text-decoration-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    --tw-text-opacity: 1;
    color: rgb(68 45 114 / var(--tw-text-opacity, 1));
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
}

.back-link:hover {
    background-color: rgb(68 45 114 / 0.1);
}

/******************/
.text-sm {
    font-size: 14px !important;
}

.text-md {
    font-size: 16px !important;
}

.text-lg {
    font-size: 18px !important;
}

.text-xl {
    font-size: 20px !important;
}

.text-2xl {
    font-size: 24px !important;
}

.text-primary {
    --tw-text-opacity: 1;
    color: rgb(68 45 114 / var(--tw-text-opacity, 1));
}

.bg-primary {
    --tw-bg-opacity: 1;
    background-color: rgb(68 45 114 / var(--tw-bg-opacity, 1));
}

.bg-primary\/5 {
    background-color: rgb(68 45 114 / 0.05);
}

.bg-primary\/10 {
    background-color: rgb(68 45 114 / 0.1);
}

.hover\:bg-primary\/90:hover {
    background-color: rgb(68 45 114 / 0.9);
    border-radius: 0.5rem !important;
}

.hover\:bg-primary\/10:hover {
    background-color: rgb(68 45 114 / 0.1);
    border-radius: 0.5rem !important;
}

.ssuk-practitioner-profile-page h3{
    font-size: 16px;
}

.ssuk-practitioner-profile-page p{
    font-size: 14px;
}


.border-primary{
    --tw-border-opacity: 1;
    border-color: rgb(68 45 114 / var(--tw-border-opacity, 1));
}

.border-4 {
    border-width: 4px;
    border-style: solid;
}

.ssuk-practitioner-profile-page .tabs-sections {
    overflow: auto;
}


/* Profile pic section styles */
a.back-link {
    color: rgb(68 45 114 / var(--tw-text-opacity, 1));
    background-color: transparent !important;
    transition-property: color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, -webkit-text-decoration-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

a.back-link:hover {
    background-color: rgb(68 45 114 / 0.1) !important;
    color: rgb(68 45 114 / var(--tw-text-opacity, 1)) !important;
    text-decoration: none !important;
    border-radius: 0.5rem;
}
.ssuk-practitioner-profile-page .profile-name {
    color: #442d72;
    font-size: 30px;
}

.profile-credentials {
    font-size: 18px;
}

.ssuk-practitioner-profile-page .profile-badges .profile-pill{
    font-size: 14px;
}

.ssuk-practitioner-profile-page .profile-badges .profile-pill.text-primary{
    background-color: rgb(68 45 114 / 0.1);
    color: rgb(68 45 114 / var(--tw-text-opacity, 1));
}

/* Share This Profile section styles */
.share-card-gradient {
    --tw-gradient-from: #442d72 var(--tw-gradient-from-position);
    --tw-gradient-to: #9333ea var(--tw-gradient-to-position);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
    background-image: linear-gradient(to right, var(--tw-gradient-stops));
}


/* Page Layout Changes */
.path-practitioner #main-container-inner {
    max-width: 100% !important;
}

.path-practitioner .w3-row-padding {
    padding: 0px;
}

.path-practitioner .main-container-inner .w3css-content {
    padding: 0px;
    margin: 0px;
}

.path-practitioner .main-container-inner .w3css-content > div {
    padding: 0 !important;
}

.profile-bio p {
    font-size: 16px;    
}

.profile-bio ul li {
    font-size: 16px !important;
    list-style-type: disc;
    margin-left: 30px;
}

.profile-bio ol li {
    list-style-type: decimal !important;
    font-size: 16px !important;
    margin-left: 30px;
}

.profile-bio a, .profile-bio a:hover {
    text-decoration: underline !important;
}

.profile-bio blockquote {
    font-size: 16px;
    font-style: italic;
    margin-left: 20px;
    margin-right: 20px;
    border-left: 4px solid #442d72;
    padding-left: 10px;
}

.bold {
    font-weight: bold;
}

.quick-actions a {
    text-align: center !important;
}

/* Contact Practitioner Webform Styling */
#contactModal .webform-submission-form {
    margin: 0;
}

#contactModal .webform-submission-form .form-item {
    margin-bottom: 0;
}

#contactModal .webform-submission-form label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
    color: #442d72;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

#contactModal .webform-submission-form input[type="text"],
#contactModal .webform-submission-form input[type="email"],
#contactModal .webform-submission-form input[type="tel"] {
    width: 100%;
    height: 48px;
    padding: 0 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.375rem;
    font-size: 16px;
    transition: border-color 0.2s ease;
    background: white;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

#contactModal .webform-submission-form textarea {
    width: 100%;
    height: 120px;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.375rem;
    font-size: 16px;
    transition: border-color 0.2s ease;
    background: white;
    resize: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

#contactModal .webform-submission-form input[type="text"]:focus,
#contactModal .webform-submission-form input[type="email"]:focus,
#contactModal .webform-submission-form input[type="tel"]:focus,
#contactModal .webform-submission-form textarea:focus {
    outline: none;
    border-color: #442d72;
}

#contactModal .webform-submission-form .form-actions {
    margin-top: 0;
    padding-top: 0;
}

#contactModal .webform-submission-form button[type="submit"],
#contactModal .webform-submission-form input[type="submit"] {
    width: 100%;
    background-color: #442d72;
    color: white;
    padding: 0.75rem;
    height: 48px;
    border: none;
    border-radius: 0.375rem;
    font-weight: 400;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: normal;
    margin: 20px 0 0 0 !important;
}
#contactModal .webform-submission-form button[type="submit"]:hover,
#contactModal .webform-submission-form input[type="submit"]:hover {
    animation: none;
    background-color: rgb(68 45 114 / 0.9);
    border-radius: 0.5rem !important;
}

#contactModal .webform-submission-form button[type="submit"]:hover,
#contactModal .webform-submission-form input[type="submit"]:hover {
    background-color: #5a3d92;
}

/* Hide hidden fields */
#contactModal .webform-submission-form input[name="practitioner_email"],
#contactModal .webform-submission-form input[name="practitioner_name"] {
    display: none;
}

/* Remove default Drupal form item margins */
#contactModal .js-form-item {
    margin-top: 0;
    margin-bottom: 1rem;
}

#contactModal .js-form-item:last-of-type {
    margin-bottom: 0;
}

/* Ensure proper spacing between form fields */
#contactModal .webform-submission-form > .js-form-item + .js-form-item {
    margin-top: 1rem;
}