/* Managed Services Hub Specific Styles */

/* Utility Classes */
.cursor-pointer {
    cursor: pointer;
}

.managed-services-hub .trust-indicators .indicator {
    text-align: center;
}

.managed-services-hub .trust-indicators strong {
    font-size: 1.5rem;
    display: block;
}

/* Service Cards */
.managed-services-hub .service-card {
    height: 300px;
    transition: transform 0.3s ease;
}

.managed-services-hub .service-card:hover {
    transform: translateY(-5px);
}

.managed-services-hub .card-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.3);
}

.managed-services-hub .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(32, 201, 151, 0.2) 100%);
}

/* Network Visualization Animation */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.node-pulse {
    animation: pulse 3s ease-in-out infinite;
}

@keyframes dataFlow {
    0% {
        stroke-dasharray: 0 100;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        stroke-dasharray: 100 0;
        opacity: 0;
    }
}

.data-flow {
    animation: dataFlow 2s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.1;
    }
}

.grid-line {
    animation: gridPulse 4s ease-in-out infinite;
}

/* Three Pillar Cards */
.pillar-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pillar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

.pillar-header {
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.pillar-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

.pillar-body {
    flex: 1;
}

.pillar-icon {
    position: relative;
    z-index: 1;
}

.pillar-header h3 {
    position: relative;
    z-index: 1;
    line-height: 1.2;
}

.feature-list li {
    position: relative;
    padding-left: 0;
}

/* Integration Benefits */
.integration-benefits {
    border: 2px dashed rgba(32, 201, 151, 0.3);
}

.benefit-item {
    padding: 1rem 0.5rem;
}

/* Onboarding Process */
.onboarding-steps {
    position: relative;
}

.step-card {
    background: white;
    border-radius: 10px;
    padding: 2rem 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    min-height: 300px;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.step-number-wrapper {
    position: relative;
    z-index: 2;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(32, 201, 151, 0.3);
    position: relative;
}

.step-number::before {
    content: '';
    position: absolute;
    width: 70px;
    height: 70px;
    background: rgba(32, 201, 151, 0.1);
    border-radius: 50%;
    z-index: -1;
    animation: pulse 2s ease-in-out infinite;
}

.step-content h5 {
    color: #1A1A1A;
    font-weight: 600;
}

.step-activities {
    text-align: left;
}

.step-activities li {
    color: #666;
    line-height: 1.5;
}

/* Progress Connector */
.step-connector {
    position: absolute;
    right: -2rem;
    top: 60px;
    width: 4rem;
    z-index: 1;
}

.connector-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 20px;
    height: 2px;
    background: linear-gradient(90deg, #20c997 0%, transparent 100%);
    transform: translateY(-50%);
}

.connector-arrow {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #7FA87F;
    font-size: 1.2rem;
}

/* Progress Bar */
.mobile-progress .progress-bar {
    background: linear-gradient(90deg, #20c997 0%, #17a2b8 100%);
}

/* Engagement Cards */
.engagement-card {
    transition: transform 0.3s ease;
}

.engagement-card:hover {
    transform: translateY(-5px);
}

/* Custom Button Styles for Managed Services Theme */
/* Removed button overrides - now uses theme's gold colors */
/*
.managed-services-hub .btn-primary {
    background-color: #20c997;
    border-color: #20c997;
}

.managed-services-hub .btn-primary:hover {
    background-color: #17a2b8;
    border-color: #17a2b8;
}
*/

/* Button overrides removed - now uses theme's gold colors */
/*
.managed-services-hub .btn-outline-primary {
    color: #7FA87F;
    border-color: #20c997;
}

.managed-services-hub .btn-outline-primary:hover {
    background-color: #20c997;
    border-color: #20c997;
}
*/

/* Update Primary Text Colors */
/* Removed override - now uses theme's gold color (#C69C3F) for text-primary */

/* Stat Cards */
.stat-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 200px;
    border: 1px solid rgba(0,0,0,0.1);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

.stat-value {
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    flex: 1;
}

.stat-citation a {
    color: #6c757d;
    text-decoration: none;
}

.stat-citation a:hover {
    text-decoration: underline;
    color: #495057;
}

/* Assessment Option Styles - Dark Mode */
.managed-assessment .assessment-tool .assessment-option {
    transition: all 0.3s ease;
    cursor: pointer;
    border-width: 3px;
    background: rgba(33, 37, 41, 0.9);
    border-color: rgba(108, 117, 125, 0.3);
    color: #e9ecef;
    min-height: 140px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
}

.managed-assessment .assessment-tool .assessment-option h5 {
    color: #f8f9fa;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    line-height: 1.4;
}

.managed-assessment .assessment-tool .assessment-option h5 i {
    font-size: 1.5rem;
    width: 2rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
    margin-top: -0.125rem;
}

.managed-assessment .assessment-tool .assessment-option p {
    color: #adb5bd;
    font-size: 0.95rem;
    margin-top: auto;
    margin-bottom: 0;
    line-height: 1.5;
}

.managed-assessment .assessment-tool .assessment-option:hover {
    border-color: rgba(127, 168, 127, 0.5);
    background: rgba(33, 37, 41, 1);
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.3);
}

.managed-assessment .assessment-tool .assessment-option.selected {
    border-color: #7FA87F;
    background: linear-gradient(135deg, #7FA87F 0%, #9FC49F 100%);
    color: white;
    box-shadow: 0 0.5rem 1rem rgba(127, 168, 127, 0.2);
}

.managed-assessment .assessment-tool .assessment-option.selected h5,
.managed-assessment .assessment-tool .assessment-option.selected p {
    color: white;
}

.managed-assessment .assessment-tool .assessment-option.selected i {
    color: #ffd700;
}

/* Assessment option icons - maintain original colors when not selected */
.managed-assessment .assessment-tool .assessment-option:not(.selected) i.text-muted { color: #6c757d; }
.managed-assessment .assessment-tool .assessment-option:not(.selected) i.text-info { color: #17a2b8; }
.managed-assessment .assessment-tool .assessment-option:not(.selected) i.text-primary { color: var(--gold); }
.managed-assessment .assessment-tool .assessment-option:not(.selected) i.text-success { color: #28a745; }

/* Assessment Step Header - Button Placement */
.assessment-step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.assessment-step-header h3 {
    margin-bottom: 0;
}

.assessment-step-nav {
    display: flex;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .assessment-step-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .assessment-step-nav {
        width: 100%;
        justify-content: space-between;
    }
}

/* Pain Toggle Cards - Dark Mode */
.pain-toggle-card {
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(33, 37, 41, 0.9);
    border: 3px solid rgba(108, 117, 125, 0.3);
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: #e9ecef;
}

.pain-toggle-card h6 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f8f9fa;
    margin-bottom: 0.5rem;
}

.pain-toggle-card small {
    font-size: 0.9rem;
    color: #adb5bd;
}

.pain-toggle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.3);
    border-color: rgba(127, 168, 127, 0.5);
    background: rgba(33, 37, 41, 1);
}

.pain-toggle-card.selected {
    background: linear-gradient(135deg, #7FA87F 0%, #9FC49F 100%);
    color: white;
    border-color: #7FA87F;
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1.5rem rgba(127, 168, 127, 0.3);
}

.pain-toggle-card.selected i {
    color: #ffd700;
}

.pain-toggle-card.selected h6,
.pain-toggle-card.selected small {
    color: white;
}

.pain-toggle-card i {
    transition: transform 0.3s ease;
    opacity: 0.9;
}

.pain-toggle-card:hover i {
    transform: scale(1.1);
    opacity: 1;
}

.pain-toggle-card.selected i {
    transform: scale(1.2);
    opacity: 1;
}

/* Goal Cards - Dark Mode */
.goal-card,
.goal-toggle-card {
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(33, 37, 41, 0.9);
    border: 3px solid rgba(108, 117, 125, 0.3);
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: #e9ecef;
}

.goal-card h6,
.goal-toggle-card h6 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f8f9fa;
    margin-bottom: 0.5rem;
}

.goal-card small,
.goal-toggle-card small {
    font-size: 0.9rem;
    color: #adb5bd;
}

.goal-card:hover,
.goal-toggle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.3);
    border-color: rgba(127, 168, 127, 0.5);
    background: rgba(33, 37, 41, 1);
}

.goal-card.selected,
.goal-toggle-card.selected {
    background: linear-gradient(135deg, #7FA87F 0%, #9FC49F 100%);
    color: white;
    border-color: #7FA87F;
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1.5rem rgba(127, 168, 127, 0.3);
}

.goal-card.selected i,
.goal-toggle-card.selected i {
    color: #ffd700;
}

.goal-card.selected h6,
.goal-card.selected small,
.goal-toggle-card.selected h6,
.goal-toggle-card.selected small {
    color: white;
}

.goal-card i,
.goal-toggle-card i {
    transition: transform 0.3s ease;
    opacity: 0.9;
    color: #007bff !important;
}

.goal-card:hover i,
.goal-toggle-card:hover i {
    transform: scale(1.1);
    opacity: 1;
}

.goal-card.selected i,
.goal-toggle-card.selected i {
    transform: scale(1.2);
    opacity: 1;
}

/* Check Mark for Selected Goal Cards */
.goal-card::after,
.goal-toggle-card::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.goal-card.selected::after,
.goal-toggle-card.selected::after {
    opacity: 1;
    transform: scale(1);
}

/* Assessment Progress Bar */
.assessment-progress .progress {
    height: 8px;
    background-color: #e9ecef;
}

.assessment-progress .progress-bar {
    background: linear-gradient(90deg, #7FA87F 0%, #9FC49F 100%);
    transition: width 0.6s ease;
}

/* Assessment Navigation Buttons */
.assessment-navigation .btn-primary {
    background: linear-gradient(135deg, #7FA87F 0%, #9FC49F 100%);
    border-color: #7FA87F;
}

.assessment-navigation .btn-primary:hover {
    background: linear-gradient(135deg, #6C956C 0%, #7FA87F 100%);
    border-color: #6C956C;
}

.assessment-navigation .btn-outline-secondary:hover {
    color: #7FA87F;
    border-color: #7FA87F;
    background-color: transparent;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .step-connector {
        display: none !important;
    }
    
    .step-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .step-card {
        padding: 1.5rem;
        min-height: auto;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .step-number::before {
        width: 60px;
        height: 60px;
    }
    
    .pillar-card {
        margin-bottom: 1.5rem;
    }
    
    /* Ensure 2x2 grid on medium screens */
    .four-pillar-services .col-lg-6 {
        margin-bottom: 1.5rem;
    }
    
    .integration-benefits {
        text-align: center;
    }
}