/**
 * Aqua Plastic Surgery - Component Styles
 * Custom styles for homepage sections
 */

/* ===================================
   UNCODE OVERRIDES
   =================================== */

.btn-color-xsdn {
    color: #303133 !important;
}


 /* The Aqua Difference */




/* ===================================
   HEADER CALL BUTTON
   =================================== */

.aps-desktop-call {
    display: inline-flex;
    align-items: center;
    margin-left: 30px;
}

.aps-header-call-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, #31c3f2, #1d87af);
    color: white !important;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(49, 195, 242, 0.3);
}

.aps-header-call-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(49, 195, 242, 0.5);
    color: white !important;
    text-decoration: none;
}

.aps-header-call-btn span {
    color: white;
}

/* Mobile adjustments */
@media (max-width: 959px) {
    .aps-desktop-call {
        display: none !important;
    }
}

/* ===================================
   MOBILE HEADER CTA ICONS
   Phone + Book icons inside .mobile-additional-icons
   =================================== */

.aps-mobile-cta__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    transition: background 0.2s ease;
}

.aps-mobile-cta__btn:hover,
.aps-mobile-cta__btn:active {
    background: rgba(0, 0, 0, 0.06);
}

.aps-mobile-cta__btn img {
    width: 24px;
    height: 24px;
    display: block;
}

.textual-carousel .tmb .regular-text .pullquote small {
    font-size: 16px;
    display: block;
    margin-top: 27px;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 600 !important;
}

/* ===================================
   PROVIDERS ACCORDION SECTION
   All rules scoped to .aps-providers-accordion to prevent conflicts
   =================================== */

.aps-providers-accordion {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 64px;
}

.aps-providers-accordion .providers-container {
    display: flex;
    gap: 0;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: nowrap;
    position: relative;
    height: 440.528px;
    width: 1312px;
    margin: 0 auto;
}

/* Container border frame - renders on top of all cards */
.aps-providers-accordion .providers-container::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border: 1px solid #999999;
    border-radius: 10px;
    pointer-events: none;
    z-index: 100;
}

/* All Provider Cards - Base Style */
.aps-providers-accordion .provider-card {
    height: 440.528px;
    position: absolute;
    cursor: pointer;
    overflow: hidden;
    opacity: 1;
    transform: translateY(0);
}

/* Featured Card (Expanded) */
.aps-providers-accordion .provider-card.featured {
    padding: 34px 29.76px;
    width: 605.834px;
    left: 0;
    z-index: 10;
}

/* Stack Cards (Collapsed) */
.aps-providers-accordion .provider-card.stack {
    width: 235px;
    padding: 34px 0 20px 0;
    cursor: pointer;
}

.aps-providers-accordion .provider-card.stack:hover {
    filter: brightness(1.05);
}

/* Border radius - first card gets left radius, last gets right radius */
.aps-providers-accordion .provider-card:first-child {
    border-radius: 10px 0 0 10px;
}

.aps-providers-accordion .provider-card:last-child {
    border-radius: 0 10px 10px 0;
}

.aps-providers-accordion .provider-card:not(:first-child):not(:last-child) {
    border-radius: 0;
}

/* Featured Card Content */
.aps-providers-accordion .featured-content {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: left;
}

.aps-providers-accordion .provider-image-wrapper {
    position: absolute;
    left: 0;
    top: 0;
    width: 200px;
    height: 200px;
}

.aps-providers-accordion .provider-headshot {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.aps-providers-accordion .provider-card.featured:hover .provider-headshot {
    transform: scale(1.05);
}

/* Provider Info - Flexbox container for right-side content */
.aps-providers-accordion .provider-info {
    position: absolute;
    left: 29.76px;
    top: 0;
    width: calc(100% - 29.76px);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 238.25px;
    padding-top: 18.71px;
    box-sizing: border-box;
    text-align: left;
}

/* Right-side stacking content - flexbox children, left-justified */
.aps-providers-accordion .provider-name {
    margin: 0 0 4px 0;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.aps-providers-accordion .provider-title {
    margin: 0 0 16px 0;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 14px;
    font-style: italic;
    font-weight: 400;
    opacity: 0.85;
}

.aps-providers-accordion .certifications {
    margin: 0 0 13px 0;
    display: flex;
    gap: 9.5px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

/* Hide empty certifications - gap closes automatically */
.aps-providers-accordion .certifications:empty {
    display: none;
    margin: 0;
}

.aps-providers-accordion .provider-cta {
    margin: 0;
    background: linear-gradient(to bottom, #31c3f2, #1d87af);
    color: white !important;
    padding: 14px 24px;
    border-radius: 38.436px;
    text-decoration: none;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(49, 195, 242, 0.3);
}

.aps-providers-accordion .provider-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(49, 195, 242, 0.4);
    color: white !important;
}

/* Description - stays absolute at fixed position */
.aps-providers-accordion .provider-description {
    position: absolute;
    left: 0;
    top: 223.88px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 17px;
    line-height: 24px;
    width: 543.804px;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.aps-providers-accordion .cert-badge {
    background: rgba(167, 206, 221, 0.49);
    border-radius: 5px;
    width: 59.618px;
    height: 59.618px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.aps-providers-accordion .cert-badge:hover {
    background: rgba(167, 206, 221, 0.7);
    transform: scale(1.1);
}

.aps-providers-accordion .cert-badge img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

/* Stack Card Content */
.aps-providers-accordion .stack-card-headshot {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    top: 34px;
    left: 50%;
    transform: translateX(-50%);
    transition: transform 0.4s ease, opacity 0.3s ease, visibility 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.aps-providers-accordion .provider-card.stack:hover .stack-card-headshot {
    transform: translateX(-50%) scale(1.05);
}

.aps-providers-accordion .stack-card-name {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 377.68px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
    z-index: 1;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    margin: 0;
}

/* Featured content visibility */
.aps-providers-accordion .provider-card.stack .featured-content {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.aps-providers-accordion .provider-card.featured .featured-content {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Stack content visibility */
.aps-providers-accordion .provider-card.featured .stack-card-headshot,
.aps-providers-accordion .provider-card.featured .stack-card-name {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.aps-providers-accordion .provider-card.stack .stack-card-headshot,
.aps-providers-accordion .provider-card.stack .stack-card-name {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


.aps-provider-hero h1.h2 {
    font-size: 48px !important;
    line-height: 56px !important;
}
.aps-provider-hero h2.h2 {
    font-size: 38px !important;
    line-height: 46px !important;
    margin-top: 0px !important;
}
.aps-provider-hero h1.h2 strong {
    display: inline-block;
    font-weight: 400 !important;
}
.aps-provider-subhead {
    margin-top: 8px !important;
}

/* ===========================================
   PROVIDERS ACCORDION - RESPONSIVE
   =========================================== */

/* Tablet - Flexbox layout (960px - 1350px) */
@media (min-width: 960px) and (max-width: 1350px) {
    .aps-providers-accordion {
        padding: 0 20px;
    }
    
    .aps-providers-accordion .providers-container {
        display: flex;
        flex-wrap: nowrap;
        width: 100%;
        height: auto;
        min-height: 400px;
    }
    
    /* Override absolute positioning for tablet */
    .aps-providers-accordion .provider-card {
        position: relative !important;
        left: auto !important;
        height: auto;
        min-height: 400px;
    }
    
    /* Featured card - percentage width */
    .aps-providers-accordion .provider-card.featured {
        flex: 0 0 52%;
        width: 52%;
        padding: 24px;
    }
    
    /* Stack cards - flexible with slight overlap */
    .aps-providers-accordion .provider-card.stack {
        flex: 1 1 auto;
        width: auto;
        min-width: 130px;
        max-width: 180px;
        padding: 24px 10px 20px 10px;
        margin-left: -10px;
    }
    
    .aps-providers-accordion .provider-card.featured + .provider-card.stack {
        margin-left: 0;
    }
    
    /* Z-index for proper stacking */
    .aps-providers-accordion .provider-card:nth-child(1) { z-index: 10; }
    .aps-providers-accordion .provider-card:nth-child(2) { z-index: 4; }
    .aps-providers-accordion .provider-card:nth-child(3) { z-index: 3; }
    .aps-providers-accordion .provider-card:nth-child(4) { z-index: 2; }
    
    /* Featured content - flexbox layout */
    .aps-providers-accordion .featured-content {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
        height: auto;
    }
    
    .aps-providers-accordion .provider-image-wrapper {
        position: relative;
        left: auto;
        top: auto;
        width: 140px;
        height: 140px;
        flex-shrink: 0;
    }
    
    .aps-providers-accordion .provider-headshot {
        width: 140px;
        height: 140px;
    }
    
    /* Provider info - flexbox column */
    .aps-providers-accordion .provider-info {
        position: relative;
        left: auto;
        top: auto;
        width: auto;
        height: auto;
        flex: 1;
        min-width: 200px;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    
    .aps-providers-accordion .provider-name {
        font-size: 14px;
        letter-spacing: 2px;
        margin: 0;
    }
    
    .aps-providers-accordion .provider-title {
        font-size: 12px;
        margin: 0;
    }
    
    .aps-providers-accordion .certifications {
        margin: 4px 0;
    }
    
    .aps-providers-accordion .cert-badge {
        width: 46px;
        height: 46px;
    }
    
    .aps-providers-accordion .provider-cta {
        padding: 10px 20px;
        font-size: 11px;
    }
    
    /* Description - full width below, NO truncation */
    .aps-providers-accordion .provider-description {
        position: relative;
        left: auto;
        top: auto;
        width: 100%;
        flex-basis: 100%;
        font-size: 15px;
        line-height: 21px;
        margin-top: 12px;
        -webkit-line-clamp: unset;
        display: block;
        overflow: visible;
    }
    
    /* Stack card content */
    .aps-providers-accordion .stack-card-headshot {
        width: 110px;
        height: 110px;
        top: 40px;
    }
    
    .aps-providers-accordion .stack-card-name {
        bottom: 25px;
        top: auto;
        font-size: 9px;
        letter-spacing: 1px;
        white-space: normal;
        width: 95%;
        line-height: 1.4;
    }
}

/* Mobile - Vertical stack layout */
@media (max-width: 959px) {
    .aps-providers-accordion {
        padding: 0 20px;
    }

    .aps-providers-accordion .providers-container {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        height: auto;
        position: relative;
    }

    /* Hide container border on mobile - cards have individual borders */
    .aps-providers-accordion .providers-container::after {
        display: none;
    }

    .aps-providers-accordion .provider-card {
        position: relative !important;
        left: auto !important;
        width: 100% !important;
        height: auto;
        min-height: 120px;
        border-radius: 10px !important;
        border: 1px solid #999999;
        padding: 20px;
        transition: min-height 0.4s ease;
    }

    .aps-providers-accordion .provider-card.stack {
        min-height: 120px;
        padding: 20px;
    }

    .aps-providers-accordion .provider-card.featured {
        min-height: auto;
        padding: 24px;
    }

    /* Hide desktop stack content on mobile */
    .aps-providers-accordion .provider-card .stack-card-headshot,
    .aps-providers-accordion .provider-card .stack-card-name {
        display: none;
    }

    /* Mobile collapsed card layout */
    .aps-providers-accordion .provider-card.stack .featured-content {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 16px;
        height: auto;
    }

    .aps-providers-accordion .provider-card.stack .provider-image-wrapper {
        position: relative;
        width: 80px;
        height: 80px;
        flex-shrink: 0;
    }

    .aps-providers-accordion .provider-card.stack .provider-headshot {
        width: 80px;
        height: 80px;
    }

    .aps-providers-accordion .provider-card.stack .provider-info {
        position: relative;
        left: auto;
        top: auto;
        width: auto;
        height: auto;
        flex: 1;
    }

    .aps-providers-accordion .provider-card.stack .provider-name {
        position: relative;
        left: auto;
        top: auto;
        font-size: 14px;
        letter-spacing: 2px;
    }

    .aps-providers-accordion .provider-card.stack .provider-title,
    .aps-providers-accordion .provider-card.stack .provider-description,
    .aps-providers-accordion .provider-card.stack .certifications,
    .aps-providers-accordion .provider-card.stack .provider-cta {
        display: none;
    }

    /* Mobile expanded card layout */
    .aps-providers-accordion .provider-card.featured .featured-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
        height: auto;
    }

    .aps-providers-accordion .provider-card.featured .provider-image-wrapper {
        position: relative;
        width: 140px;
        height: 140px;
        margin: 0 auto;
    }

    .aps-providers-accordion .provider-card.featured .provider-headshot {
        width: 140px;
        height: 140px;
    }

    .aps-providers-accordion .provider-card.featured .provider-info {
        position: relative;
        left: auto;
        top: auto;
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        padding: 0;
        text-align: center;
    }

    .aps-providers-accordion .provider-card.featured .provider-name {
        position: relative;
        left: auto;
        top: auto;
        font-size: 14px;
        letter-spacing: 2px;
    }

    .aps-providers-accordion .provider-card.featured .provider-title {
        position: relative;
        left: auto;
        top: auto;
        font-size: 13px;
        margin-top: -8px;
    }

    .aps-providers-accordion .provider-card.featured .provider-description {
        position: relative;
        left: auto;
        top: auto;
        width: 100%;
        font-size: 15px;
        line-height: 22px;
        -webkit-line-clamp: unset;
    }

    .aps-providers-accordion .provider-card.featured .certifications {
        position: relative;
        left: auto;
        top: auto;
        justify-content: center;
    }

    .aps-providers-accordion .provider-card.featured .provider-cta {
        position: relative;
        left: auto;
        top: auto;
        margin-top: 8px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .aps-providers-accordion {
        padding: 0 16px;
    }

    .aps-providers-accordion .provider-card.featured .provider-headshot {
        width: 120px;
        height: 120px;
    }

    .aps-providers-accordion .provider-card.featured .provider-image-wrapper {
        width: 120px;
        height: 120px;
    }

    .aps-providers-accordion .provider-card.featured .provider-description {
        font-size: 14px;
        line-height: 20px;
    }

    .aps-providers-accordion .cert-badge {
        width: 50px;
        height: 50px;
    }
}

/* ===================================
   PROVIDERS TABS (New Design)
   Tabbed interface with thumbnail navigation
   =================================== */

.aps-providers-tabs {
    background: transparent;
    padding: 60px 40px 80px;
    max-width: 1440px;
    margin: 0 auto;
}

/* Thumbnail Tab Navigation */
.providers-tabs-nav {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.provider-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.3s ease;
}

.provider-tab:hover {
    transform: translateY(-4px);
}

.provider-tab .tab-thumbnail {
    width: 96px;
    height: 96px;
    border-radius: 16px;
    overflow: hidden;
    border: 3px solid #d1d5db;
    transition: all 0.3s ease;
}

.provider-tab .tab-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.provider-tab.active .tab-thumbnail {
    border-color: #1d87af;
    filter: grayscale(0%);
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(29, 135, 175, 0.25);
}

.provider-tab .tab-name {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    transition: color 0.3s ease;
    text-align: center;
    max-width: 120px;
}

.provider-tab.active .tab-name {
    color: #1d87af;
}

/* Content Area - Stacked Cards */
.providers-content-area {
    position: relative;
    min-height: 500px;
}

.provider-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.provider-content.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

/* Image Section - Left Side */
.provider-content .provider-image {
    flex: 0 0 auto;
    min-height: 500px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 36px 0 0 0;
}

.provider-content .provider-image img {
    max-height: 100%;
    object-fit: contain;
    object-position: bottom center;
    display: block;
    max-width: 400px;
    margin: 0px 32px;
}

@media (min-width: 1200px) {
    .provider-content .provider-image img {
        max-width: 500px;
    }
    
    .provider-tab .tab-thumbnail {
        width: 128px;
        height: 128px;
        border-radius: 16px;
        overflow: hidden;
        border: 3px solid #d1d5db;
        transition: all 0.3s ease;
    }
}

/* Bio Section - Right Side */
.provider-content .provider-bio {
    flex: 1;
    padding: 48px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.provider-content .provider-name {
    font-size: 32px;
    font-weight: 500;
    margin: 0;
    color: #03151c;
    line-height: 1.2;
}

.provider-content .provider-role {
    font-size: 14px;
    color: #1d87af;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

.provider-content .certifications {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 8px 0;
}

.provider-content .cert-badge {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f9fa;
    padding: 4px;
    transition: transform 0.2s ease;
}

.provider-content .cert-badge:hover {
    transform: scale(1.1);
}

.provider-content .cert-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.provider-content .provider-description {
    font-size: 16px;
    line-height: 1.7;
    color: #4b5563;
    margin: 8px 0 16px;
}

.provider-content .cta-button {
    height: 40px;
    border-radius: 42px;
    background: linear-gradient(180deg, #31c3f2 0%, #1d87af 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #ffffff;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    align-self: center;
    margin-top: 8px;
}

.provider-content .cta-button:hover {
    background: linear-gradient(180deg, #1d87af 0%, #0d6b6b 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(29, 135, 175, 0.35);
    color: #ffffff;
}

.provider-content .cta-button:active,
.provider-content .cta-button:focus,
.provider-content .cta-button:visited {
    color: #ffffff !important;
}

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .aps-providers-tabs {
        padding: 48px 24px 60px;
    }
    
    .providers-tabs-nav {
        gap: 24px;
        margin-bottom: 36px;
    }
    
    .provider-tab .tab-thumbnail {
        width: 80px;
        height: 80px;
        border-radius: 12px;
    }
    
    .provider-tab .tab-thumbnail img {
        object-position: top center;
    }
    
    .provider-tab .tab-name {
        font-size: 13px;
    }
    
    .provider-content .provider-image {
        flex: 0 0 auto;
        min-height: 450px;
        padding: 0;
    }
    
    .provider-content .provider-bio {
        padding: 36px 40px;
        align-items: center;
        text-align: center;
    }
    
    .provider-content .provider-name {
        font-size: 28px;
    }
    
    .provider-content .provider-role {
        font-size: 13px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 2px;
    }
    
    .provider-content .cert-badge {
        width: 56px;
        height: 56px;
    }
}

/* Mobile (< 960px) */
@media (max-width: 959px) {
    .aps-providers-tabs {
        padding: 40px 0 48px;
    }
    
    .providers-tabs-nav {
        display: flex;
        justify-content: space-between;
        gap: 8px;
        margin-bottom: 32px;
        flex-wrap: nowrap;
        padding: 8px 16px;
        width: 100%;
    }
    
    .provider-tab {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .provider-tab .tab-thumbnail {
        width: 80px;
        height: 80px;
        border-radius: 14px;
        border-width: 3px;
    }
    
    .provider-tab .tab-thumbnail img {
        object-position: top center;
    }
    
    .provider-tab .tab-name {
        font-size: 14px;
        max-width: none;
    }
    
    .providers-content-area {
        min-height: auto;
        overflow: visible;
        touch-action: pan-x;
        padding: 0 16px 20px;
    }
    
    .provider-content {
        flex-direction: column;
        border-radius: 16px;
    }
    
    .provider-content .provider-image {
        flex: none;
        min-height: auto;
        width: 100%;
        padding: 32px 32px 0 32px;
        overflow: hidden;
        border-radius: 16px 16px 0 0;
        display: flex;
        align-items: flex-end;
        justify-content: center;
    }
    
    .provider-content .provider-image img {
        max-width: 360px;
        width: 100%;
        height: auto;
        object-fit: contain;
        object-position: bottom center;
        display: block;
        margin: 0 auto;
    }
    
    .provider-content .provider-bio {
        padding: 24px;
        gap: 12px;
        align-items: center;
        text-align: center;
    }
    
    .provider-content .provider-name {
        font-size: 24px;
    }
    
    .provider-content .provider-role {
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 2px;
    }
    
    .provider-content .certifications {
        gap: 12px;
    }
    
    .provider-content .cert-badge {
        width: 48px;
        height: 48px;
    }
    
    .provider-content .provider-description {
        font-size: 15px;
        line-height: 1.6;
    }
    
    .provider-content .cta-button {
        padding: 14px 28px;
        font-size: 13px;
        align-self: stretch;
        text-align: center;
    }
}

/* Small Mobile (< 480px) */
@media (max-width: 479px) {
    .aps-providers-tabs {
        padding: 0 0 40px;
    }
    
    .providers-tabs-nav {
        gap: 6px;
        padding: 8px 12px;
    }
    
    .provider-tab .tab-thumbnail {
        width: 72px;
        height: 72px;
    }
    
    .provider-tab .tab-name {
        font-size: 12px;
        max-width: none;
    }
    
    .provider-content .provider-bio {
        padding: 20px 16px 24px;
    }
    
    .provider-content .provider-name {
        font-size: 22px;
    }
    
    .provider-content .cert-badge {
        width: 44px;
        height: 44px;
    }
}

/* ===================================
   PROVIDERS GRID + LIGHTBOX
   =================================== */

/* Grid Wrapper */
.aps-providers-grid {
    padding: 60px 40px 80px;
    max-width: 1440px;
    margin: 0 auto;
}

/* 4-Column Grid Layout */
.providers-grid-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Grid Card */
.aps-grid-card {
    cursor: pointer;
    text-align: center;
    position: relative;
}

/* Grid Card Image — padding-bottom hack for Safari WebP compatibility */
.aps-grid-card__image-wrap {
    height: 0;
    padding-bottom: 133.33%; /* 4 / 3 × 100 = 3:4 ratio */
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 0;
    position: relative;
    transition: box-shadow 0.3s ease;
}

.aps-grid-card__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom center;
    padding: 24px 16px 0 16px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 100%;
    max-height: 100%;
}

.aps-grid-card:hover .aps-grid-card__image-wrap {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.aps-grid-card:hover .aps-grid-card__image {
    transform: scale(1.05);
}

/* Grid Card Name - overlaid at bottom (specificity beats theme h3) */
.aps-providers-grid .aps-grid-card h3.aps-grid-card__name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 14px 12px;
    background: #ffffff;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: #03151c;
    text-align: center;
    border-radius: 0 0 20px 20px;
    z-index: 2;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

.aps-providers-grid .aps-grid-card:hover h3.aps-grid-card__name {
    color: #1d87af;
}

/* ----- Lightbox ----- */

.aps-provider-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
}

.aps-provider-lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Backdrop */
.aps-provider-lightbox__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(238, 238, 238, 0.85);
}

/* Panel */
.aps-provider-lightbox__panel {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    max-width: 900px;
    width: 90%;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    animation: fadeIn 0.3s ease;
    z-index: 2;
}

/* Close Button (matches .aps-modal-close) */
.aps-provider-lightbox__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(180deg, #31c3f2 0%, #1d87af 100%);
    color: #ffffff;
    border: none;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    z-index: 10;
    line-height: 1;
}

.aps-provider-lightbox__close:hover {
    transform: scale(1.1);
}

/* Nav Arrows (desktop) */
.aps-provider-lightbox__nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #ffffff;
    font-size: 48px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    z-index: 3;
    padding: 8px;
    line-height: 1;
}

.aps-provider-lightbox__nav:hover {
    opacity: 1;
}

.aps-provider-lightbox__nav--prev {
    left: 24px;
}

.aps-provider-lightbox__nav--next {
    right: 24px;
}

/* Provider content inside lightbox: 2-column desktop, column on mobile */
.aps-provider-lightbox__panel .provider-content {
    display: none;
    flex-direction: row;
    position: relative;
    opacity: 1;
    visibility: visible;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
}

.aps-provider-lightbox__panel .provider-content.active {
    display: flex;
}

.aps-provider-lightbox__panel .provider-image {
    flex: 0 0 auto;
    min-height: 500px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 36px 0 0 0;
    border-radius: 16px 0 0 16px;
}

.aps-provider-lightbox__panel .provider-image img {
    max-height: 100%;
    max-width: 400px;
    object-fit: contain;
    object-position: bottom center;
    display: block;
    margin: 0 32px;
}

.aps-provider-lightbox__panel .provider-bio {
    flex: 1;
    padding: 48px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 16px;
    overflow-y: auto;
    max-height: 85vh;
}

.aps-provider-lightbox__panel .provider-name {
    font-size: 32px;
    font-weight: 500;
    margin: 0;
    color: #03151c;
    line-height: 1.2;
}

.aps-provider-lightbox__panel .provider-role {
    font-size: 14px;
    color: #1d87af;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

.aps-provider-lightbox__panel .certifications {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 8px 0;
}

.aps-provider-lightbox__panel .cert-badge {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f9fa;
    padding: 4px;
    transition: transform 0.2s ease;
}

.aps-provider-lightbox__panel .cert-badge:hover {
    transform: scale(1.1);
}

.aps-provider-lightbox__panel .cert-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.aps-provider-lightbox__panel .provider-description {
    font-size: 16px;
    line-height: 1.7;
    color: #4b5563;
    margin: 8px 0 16px;
}

.aps-provider-lightbox__panel .cta-button {
    height: 40px;
    border-radius: 42px;
    background: linear-gradient(180deg, #31c3f2 0%, #1d87af 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #ffffff;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 4px;
}

.aps-provider-lightbox__panel .cta-button:hover {
    background: linear-gradient(180deg, #1d87af 0%, #0d6b6b 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(29, 135, 175, 0.35);
    color: #ffffff;
}

.aps-provider-lightbox__panel .cta-button:active,
.aps-provider-lightbox__panel .cta-button:focus,
.aps-provider-lightbox__panel .cta-button:visited {
    color: #ffffff !important;
}

/* Body scroll lock — html + body for iOS Safari */
html.aps-lightbox-open,
body.aps-lightbox-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
}

body.aps-lightbox-open .menu-wrapper,
body.aps-lightbox-open #masthead,
body.aps-lightbox-open .footer-scroll-top {
    display: none !important;
}

/* ----- Grid + Lightbox Responsive ----- */

/* Tablet (< 960px) */
@media (max-width: 959px) {
    .aps-providers-grid {
        padding: 40px 16px 48px;
    }

    .providers-grid-items {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 400px;
        margin: 0 auto;
    }

    .aps-providers-grid .aps-grid-card h3.aps-grid-card__name {
        font-size: 14px;
        padding: 10px 8px;
    }

    /*
     * iOS Safari scroll fix: the overlay itself becomes the scroll
     * container (block, not flex) so there's no competing scroll
     * context with the position:fixed body lock.
     */
    .aps-provider-lightbox.active {
        display: block;
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
    }

    .aps-provider-lightbox__backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .aps-provider-lightbox__panel {
        position: relative;
        width: 95%;
        max-width: 520px;
        max-height: none;
        overflow: visible;
        margin: 5vh auto;
    }

    .aps-provider-lightbox__panel .provider-content {
        flex-direction: column;
    }

    .aps-provider-lightbox__panel .provider-image {
        flex: none;
        min-height: auto;
        width: 100%;
        padding: 32px 32px 0 32px;
        border-radius: 0;
        align-items: center;
    }

    .aps-provider-lightbox__panel .provider-image img {
        max-width: 300px;
        width: 100%;
        height: auto;
        max-height: none;
        margin: 0 auto;
        object-fit: contain;
        object-position: top center;
    }

    .aps-provider-lightbox__panel .provider-bio {
        padding: 24px 24px 36px;
        gap: 12px;
        max-height: none;
        overflow-y: visible;
    }

    .aps-provider-lightbox__panel .provider-name {
        font-size: 24px;
    }

    .aps-provider-lightbox__panel .provider-role {
        font-size: 12px;
    }

    .aps-provider-lightbox__panel .cert-badge {
        width: 48px;
        height: 48px;
    }

    .aps-provider-lightbox__panel .provider-description {
        font-size: 15px;
        line-height: 1.6;
    }

    .aps-provider-lightbox__nav {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: linear-gradient(180deg, #31c3f2 0%, #1d87af 100%);
        color: #ffffff;
        font-size: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 1;
        box-shadow: 0 4px 12px rgba(49, 195, 242, 0.3);
        padding: 0;
        position: fixed;
    }

    .aps-provider-lightbox__nav--prev {
        left: 8px;
    }

    .aps-provider-lightbox__nav--next {
        right: 8px;
    }
}

/* Small Mobile (< 569px) */
@media (max-width: 569px) {
    .aps-providers-grid {
        padding: 24px 12px 40px;
    }

    .providers-grid-items {
        gap: 16px;
    }

    .aps-grid-card__image-wrap {
        border-radius: 14px;
    }

    .aps-providers-grid .aps-grid-card h3.aps-grid-card__name {
        font-size: 18px;
        padding: 10px 8px;
        border-radius: 0 0 14px 14px;
    }

    .aps-provider-lightbox__panel {
        width: 100%;
        max-width: none;
        max-height: none;
        height: auto;
        min-height: 100vh;
        min-height: 100dvh; /* Safari dynamic viewport */
        border-radius: 0;
        overflow: visible;
        margin: 0;
    }

    .aps-provider-lightbox__panel .provider-image {
        border-radius: 0;
    }

    .aps-provider-lightbox__panel .provider-image img {
        max-height: none;
        width: 100%;
        height: auto;
        object-fit: contain;
        object-position: top center;
    }

    .aps-provider-lightbox__close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .aps-provider-lightbox__nav {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }

    .aps-provider-lightbox__nav--prev {
        left: 4px;
    }

    .aps-provider-lightbox__nav--next {
        right: 4px;
    }
}

/* Legacy button styles for backwards compatibility */
.btn-teal {
    background: #1BA6A5 !important;
    color: white !important;
    border-radius: 50px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: 2px solid #1BA6A5;
}

.btn-teal:hover {
    background: #0D6B6B !important;
    border-color: #0D6B6B;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 107, 107, 0.3);
}

/* ===================================
   TESTIMONIALS SECTION
   =================================== */

.aps-testimonials-wrapper {
    padding: 72px 0 108px;
    background: #ffffff;
    overflow: hidden;
}

.aps-testimonials-row {
    margin-bottom: 16px;
    position: relative;
}

.aps-testimonials-row:last-child {
    margin-bottom: 0;
}

.aps-testimonials-row {
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.aps-testimonials-row::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.aps-testimonials-track {
    display: flex;
    gap: 16px;
    width: max-content;
}

.aps-testimonial-card {
    flex: 0 0 482px;
    background: #f3f9fa;
    padding: 28px 26px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 287px;
    box-sizing: border-box;
    transition: background 0.3s ease;
}

.aps-testimonial-card:hover {
    background: #ebf4f6;
}

/* Star ratings - teal/aqua brand color */
.testimonial-stars {
    display: flex;
    justify-content: center;
    gap: 3px;
    margin: 0;
}

.testimonial-stars .star {
    color: #00526d;
    font-size: 18px;
    line-height: 1;
}

/* Image cards */
.aps-testimonial-card.aps-testimonial-image {
    padding: 0;
    overflow: hidden;
}

.aps-testimonial-card.aps-testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

/* Quote text */
.testimonial-quote {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 17px;
    line-height: 24px;
    color: #03151c;
    margin: 0;
    font-style: normal;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 9;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Author footer */
.testimonial-footer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.testimonial-author {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
    color: #03151c;
    margin: 0;
}

.testimonial-date {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
    color: #03151c;
    text-align: right;
}

/* ===================================
   PROVIDER TESTIMONIALS CAROUSEL
   =================================== */

.aps-provider-testimonials {
    background: #00526d;
    border-radius: 16px;
    padding: 56px 48px;
    text-align: center;
}

.aps-provider-testimonials .owl-item-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 0 16px;
}

.aps-provider-testimonials .aps-pt-stars {
    display: flex;
    justify-content: center;
    gap: 4px;
}

.aps-provider-testimonials .aps-pt-stars .star {
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
}

.aps-provider-testimonials .aps-pt-quote {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 30px;
    line-height: 38px;
    color: #ffffff;
    margin: 0;
    max-width: 720px;
    font-style: italic;
    border: none;
    padding: 0;
    background: transparent;
}

.aps-provider-testimonials .aps-pt-quote::before,
.aps-provider-testimonials .aps-pt-quote::after {
    display: none;
}

.aps-provider-testimonials .aps-pt-author {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    letter-spacing: 0.5px;
}

.aps-provider-testimonials .owl-dots {
    margin-top: 28px;
}

.aps-provider-testimonials .owl-dot span {
    background: rgba(255, 255, 255, 0.35) !important;
}

.aps-provider-testimonials .owl-dot.active span {
    background: #ffffff !important;
}

@media (max-width: 768px) {
    .aps-provider-testimonials {
        padding: 40px 24px;
        border-radius: 12px;
    }

    .aps-provider-testimonials .aps-pt-quote {
        font-size: 17px;
        line-height: 27px;
    }

    .aps-provider-testimonials .aps-pt-stars .star {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .aps-provider-testimonials {
        padding: 32px 16px;
    }

    .aps-provider-testimonials .aps-pt-quote {
        font-size: 16px;
        line-height: 25px;
    }
}

/* ===================================
   BENEFITS SECTION
   =================================== */

.aps-benefits-section {
    padding: 80px 0;
    background: white;
}

.aps-benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.aps-benefit-card {
    text-align: center;
    padding: 40px 24px;
    background: #F8FAFA;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.aps-benefit-card:hover {
    background: #E6F5F5;
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(27, 166, 165, 0.15);
}

.benefit-icon-wrapper {
    margin-bottom: 24px;
}

.benefit-icon {
    width: 64px;
    height: 64px;
    filter: brightness(0) saturate(100%) invert(48%) sepia(41%) saturate(1034%) hue-rotate(140deg) brightness(91%) contrast(92%);
    transition: transform 0.3s ease;
}

.benefit-icon--missing {
    display: inline-block;
    border-radius: 50%;
    border: 2px solid #c3e2ee;
    background: #ffffff;
    filter: none;
}

.aps-benefit-card:hover .benefit-icon {
    transform: scale(1.1);
}

.benefit-title {
    font-size: 20px;
    font-weight: 600;
    color: #0D6B6B;
    margin: 0 0 16px;
}

.benefit-description {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

/* ===================================
   RESPONSIVE STYLES
   =================================== */

@media (max-width: 1200px) {
    .aps-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .aps-testimonial-card {
        flex: 0 0 350px;
    }
}

@media (max-width: 768px) {
    .aps-testimonials-wrapper {
        padding: 60px 0;
    }
    
    .aps-benefits-section {
        padding: 60px 0;
    }
    
    .aps-benefits-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .aps-testimonial-card {
        flex: 0 0 320px;
        min-height: auto;
        padding: 24px 20px;
    }
    
    .testimonial-quote {
        font-size: 15px;
        line-height: 22px;
        -webkit-line-clamp: 8;
    }
    
    .aps-testimonials-row {
        margin-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .aps-testimonial-card {
        flex: 0 0 280px;
        padding: 20px 16px;
    }
    
    .testimonial-quote {
        -webkit-line-clamp: 8;
    }
    
    .testimonial-author,
    .testimonial-date {
        font-size: 14px;
    }
    
    .btn-teal {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* ===================================
   GRAVITY FORMS - GLOBAL FIXES
   Uncode theme overrides Gravity Forms'
   select caret with a broken base64 SVG.
   This applies to ALL forms site-wide.
   =================================== */

.gform_wrapper .gfield--type-select select {
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0.292893 0.292893C0.683417 -0.097631 1.31658 -0.097631 1.70711 0.292893L5 3.58579L8.29289 0.292893C8.68342 -0.0976311 9.31658 -0.0976311 9.70711 0.292893C10.0976 0.683417 10.0976 1.31658 9.70711 1.70711L5.70711 5.70711C5.31658 6.09763 4.68342 6.09763 4.29289 5.70711L0.292893 1.70711C-0.0976311 1.31658 -0.0976311 0.683418 0.292893 0.292893Z' fill='rgba(17, 35, 55, 0.65)'/%3E%3C/svg%3E") !important;
    background-size: 12px !important;
    background-position: calc(100% - 14px) center !important;
    background-repeat: no-repeat !important;
    padding-right: 36px !important;
}

/* ===================================
   GRAVITY FORMS - CONSULTATION FORM (#14)
   Layout, spacing, button & focus fixes
   =================================== */

/* Tighten row gap between form fields */
#gform_wrapper_14 .gform_fields {
    row-gap: 13px !important;
}

/* Reduce top margin on required legend */
#gform_wrapper_14 .gform_required_legend {
    margin-top: 0 !important;
    margin-bottom: 4px !important;
}

/* Collapse hidden post custom field */
#gform_wrapper_14 #field_14_33 {
    display: none !important;
}

/* Info message below dropdowns */
#gform_wrapper_14 #field_14_35 {
    font-size: 14px !important;
    font-style: italic !important;
}

/* Contact form image border radius */
.aps-contact-form-image .background-inner {
    border-radius: 16px !important;
}

/* Reduce form card top/bottom padding */
#gform_wrapper_14 {
    margin-top: -5px !important;
    margin-bottom: -5px !important;
}

/* Button - gradient pill style matching nav "Get Started" — applied globally to all forms */
.gform_wrapper .gform_button {
    background: linear-gradient(180deg, #31c3f2 0%, #1d87af 100%) !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 42px !important;
    font-family: 'Nunito Sans', sans-serif !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    color: #fff !important;
    padding: 0 20px !important;
    height: 40px !important;
    line-height: 40px !important;
    cursor: pointer !important;
    transition: background 0.3s ease !important;
}
.gform_wrapper .gform_button:hover {
    background: linear-gradient(180deg, #1d87af 0%, #00526d 100%) !important;
}

/* Focus states for accessibility */
.gform_wrapper .gform_button:focus {
    outline-color: #00526d !important;
    box-shadow: 0 0 0 3px rgba(0, 82, 109, 0.25) !important;
}

/* ============================================
   APS Text Cap - Section Label Style
   ============================================ */
.aps-text-cap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.aps-text-cap::before {
    content: '';
    display: block;
    width: 32px;
    height: 2px;
    background-color: #31c3f2;
    flex-shrink: 0;
}

.aps-text-cap .heading-text,
.aps-text-cap h6,
.aps-text-cap h6 span {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    color: #1d87af;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0;
    padding: 0;
}

/* Remove any default margins from the wrapper elements */
.aps-text-cap .heading-text.el-text {
    margin: 0;
    padding: 0;
}

.aps-text-cap .clear {
    display: none;
}

/* ============================================
   PROVIDER INFO CARDS - Memberships & Consultation
   ============================================ */

/* === SHARED CARD STYLES === */
.aps-memberships-col .uncell,
.aps-consultation-col .uncell {
    background-color: #f8fdfe !important;
    border: 1px solid #e1f0f4 !important;
    border-radius: 24px !important;
    padding: 40px !important;
    overflow: hidden;
}

.aps-consultation-col .uncell {
    background-color: #f3f9fa !important;
}

/* === CARD HEADINGS (H5) === */
.aps-memberships-col h5,
.aps-memberships-col h5 span,
.aps-consultation-col h5,
.aps-consultation-col h5 span {
    font-family: 'Libre Caslon Text', serif !important;
    font-weight: 400 !important;
    font-size: 24px !important;
    line-height: 32px !important;
    color: #03151c !important;
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
}

/* === SEPARATOR LINE (HR) === */
.aps-memberships-col hr.separator-break,
.aps-consultation-col hr.separator-break {
    width: 48px !important;
    height: 4px !important;
    background-color: #31c3f2 !important;
    border: none !important;
    margin: 0 0 32px 0 !important;
    opacity: 1 !important;
}

/* ============================================
   MEMBERSHIPS CARD SPECIFIC STYLES
   ============================================ */

/* The UL list */
.aps-memberships-col .uncode_text_column ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* List items */
.aps-memberships-col .uncode_text_column ul li {
    font-family: 'Nunito Sans', sans-serif !important;
    font-weight: 300 !important;
    font-size: 17px !important;
    line-height: 26px !important;
    color: #222222 !important;
    padding-left: 32px !important;
    position: relative;
}

/* Checkmark bullet using pseudo-element */
.aps-memberships-col .uncode_text_column ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Ccircle cx='10' cy='10' r='9.5' fill='%23f3f9fa' stroke='%23e1f0f4'/%3E%3Cpath d='M6 10l3 3 5-6' stroke='%231d87af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* ============================================
   CONSULTATION CARD SPECIFIC STYLES
   ============================================ */

/* Text column container */
.aps-consultation-col .uncode_text_column {
    margin-bottom: 32px;
}

/* UL container */
.aps-consultation-col .uncode_text_column ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* List items (location & contact) */
.aps-consultation-col .uncode_text_column ul li {
    font-family: Arial, sans-serif !important;
    font-size: 14px !important;
    line-height: 22.75px !important;
    color: #4a5565 !important;
    padding-left: 56px !important;
    position: relative;
}

/* Strong labels (Aqua Jupiter, Contact Us) */
.aps-consultation-col .uncode_text_column ul li strong {
    font-family: Arial, sans-serif !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    line-height: 20px !important;
    color: #03151c !important;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    display: block;
    margin-bottom: 4px;
}

/* Phone link styling */
.aps-consultation-col .uncode_text_column ul li a {
    font-family: Arial, sans-serif !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    color: #1d87af !important;
    text-decoration: none;
}

.aps-consultation-col .uncode_text_column ul li a:hover {
    text-decoration: underline;
}

/* Location icon (first list item) */
.aps-consultation-col .uncode_text_column ul li:first-child::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background-color: #fff;
    border: 1px solid #e1f0f4;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M9 9.75a2.25 2.25 0 100-4.5 2.25 2.25 0 000 4.5z' stroke='%231d87af' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M14.25 7.5c0 5.25-5.25 9-5.25 9s-5.25-3.75-5.25-9a5.25 5.25 0 1110.5 0z' stroke='%231d87af' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: 18px 18px;
    background-position: center;
    background-repeat: no-repeat;
}

/* Phone icon (second list item) */
.aps-consultation-col .uncode_text_column ul li:nth-child(2)::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background-color: #fff;
    border: 1px solid #e1f0f4;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M16.5 12.69v2.25a1.5 1.5 0 01-1.635 1.5 14.843 14.843 0 01-6.473-2.303 14.625 14.625 0 01-4.5-4.5A14.843 14.843 0 011.59 3.135 1.5 1.5 0 013.082 1.5h2.25a1.5 1.5 0 011.5 1.29c.095.72.27 1.428.525 2.108a1.5 1.5 0 01-.338 1.582l-.952.953a12 12 0 004.5 4.5l.952-.953a1.5 1.5 0 011.583-.337c.68.255 1.387.43 2.108.524a1.5 1.5 0 011.29 1.523z' stroke='%231d87af' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: 18px 18px;
    background-position: center;
    background-repeat: no-repeat;
}

/* === BUTTON STYLING === */
.aps-consultation-col .btn-container {
    display: block;
    padding-top: 32px;
    border-top: 1px solid #dcecf2;
    margin-top: 0;
}

.aps-consultation-col .btn-container .btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    height: 40px !important;
    background: linear-gradient(180deg, #31c3f2 0%, #1d87af 100%) !important;
    border-radius: 42px !important;
    font-family: 'Nunito Sans', sans-serif !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    color: #fff !important;
    text-decoration: none !important;
    padding: 0 20px !important;
}

.aps-consultation-col .btn-container .btn:hover {
    background: linear-gradient(180deg, #1d87af 0%, #00526d 100%) !important;
}

/* ============================================
   APS TESTIMONIALS - Image Link & Source Badge
   ============================================ */

/* Linked image cards: reset anchor styles so layout is unchanged */
.aps-testimonial-image .aps-testimonial-image-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.aps-testimonial-image .aps-testimonial-image-link img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Source badge: small icon overlay at bottom-right of image cards */
.aps-testimonial-source-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    pointer-events: none;
    transition: background 0.2s ease;
}

/* Platform-specific badge colors */
.aps-source-instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}
.aps-source-facebook {
    background: #1877f2;
}
.aps-source-youtube {
    background: #ff0000;
}
.aps-source-tiktok {
    background: #000;
}

/* Ensure the image card has relative positioning for badge placement */
.aps-testimonial-image {
    position: relative;
    overflow: hidden;
}

/* ============================================
   APS WHY SECTION - Trust Icons
   ============================================ */

.aps-why .icon-box-icon .icon-media img {
    height: 60px;
    width: auto;
}

/* ============================================
   APS ICON - Inline icon fix for h4 headings
   Overrides absolute positioning from
   aps-practice img[class*="icon"] rule and
   ensures consistent display across all pages
   ============================================ */

h4 img.aps-icon,
h4 img.aps-icon.alignnone {
    position: static !important;
    display: inline-block !important;
    margin: 0 12px 0 0 !important;
    width: 40px !important;
    height: 40px !important;
    float: none !important;
    vertical-align: middle !important;
}

/* ============================================
   Accessibility: reduced-motion support
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .aps-testimonials-row {
        scroll-behavior: auto !important;
    }

    .aps-testimonials-track,
    .aps-provider-lightbox__panel,
    .provider-content,
    .aps-grid-card__image,
    .aps-grid-card__image-wrap,
    .provider-tab,
    .provider-tab .tab-thumbnail,
    .provider-content .cta-button,
    .aps-provider-lightbox__close,
    .aps-provider-lightbox__nav {
        animation: none !important;
        transition: none !important;
    }
}

