/* Service Tiers Styling */

/* Add geometric arrow styling inspired by the design images */
.service-tier-icon {
    position: relative;
    overflow: hidden;
}

.service-tier-icon::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 50%;
    z-index: 0;
}

.service-tier-icon i {
    position: relative;
    z-index: 1;
}

/* Card hover effects */
.card.border-2 {
    transition: all 0.3s ease;
}

.card.border-2:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

/* Geometric border styling */
.card.border-info::before,
.card.border-primary::before,
.card.border-success::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    z-index: 1;
}

.card.border-info::before {
    background: linear-gradient(90deg, #0dcaf0 0%, #17a2b8 50%, #0dcaf0 100%);
}

.card.border-primary::before {
    background: linear-gradient(90deg, #0d6efd 0%, #0b5ed7 50%, #0d6efd 100%);
}

.card.border-success::before {
    background: linear-gradient(90deg, #198754 0%, #157347 50%, #198754 100%);
}

/* Arrow connector styling between tiers */
.service-tiers-container {
    position: relative;
}

@media (min-width: 992px) {
    .service-tiers-container::before,
    .service-tiers-container::after {
        content: '';
        position: absolute;
        top: 50%;
        width: 30px;
        height: 2px;
        background: linear-gradient(90deg, #dee2e6 0%, #6c757d 50%, #dee2e6 100%);
        transform: translateY(-50%);
        z-index: 0;
    }
    
    .service-tiers-container::before {
        left: 33.33%;
        margin-left: 15px;
    }
    
    .service-tiers-container::after {
        right: 33.33%;
        margin-right: 15px;
    }
    
    .service-tiers-container .col-lg-4:nth-child(2) {
        z-index: 1;
    }
}

/* Pricing badge styling */
.badge.bg-warning {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

/* Button styling with arrow effect */
.btn-lg.fw-bold {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-lg.fw-bold::after {
    content: '→';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.btn-lg.fw-bold:hover::after {
    opacity: 1;
    right: 15px;
}

.btn-lg.fw-bold:hover {
    padding-right: 50px;
}

/* Feature list with custom bullets */
.list-unstyled li {
    position: relative;
    padding-left: 0;
}

.list-unstyled li i.bi-arrow-right {
    position: relative;
    margin-right: 8px;
}

.list-unstyled li i.bi-arrow-right::before {
    font-weight: bold;
}

/* Value proposition section styling */
.bg-light .card-body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .service-tiers-container::before,
    .service-tiers-container::after {
        display: none;
    }
    
    .card.border-2 {
        margin-bottom: 2rem;
    }
}

/* Animation for service icons */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.service-tier-icon:hover i {
    animation: pulse 1s ease-in-out;
}

/* Progress indicator styling */
.pricing-details .alert-info {
    border-left: 4px solid #0d6efd;
    background: linear-gradient(90deg, rgba(13, 110, 253, 0.05) 0%, transparent 100%);
}

/* Custom checkbox styling for features */
.bi-check-circle-fill {
    color: #198754 !important;
    filter: drop-shadow(0 1px 2px rgba(25, 135, 84, 0.3));
}

.bi-check-circle {
    color: #198754 !important;
}

/* System Capabilities: one scaled viewport so all content (text, buttons, inputs) scales together */
.capability-preview {
    height: 220px;
    width: 100%;
    overflow: hidden;
    background: var(--bs-body-bg, #fff);
    pointer-events: none;
    position: relative;
    border-bottom: 1px solid var(--bs-border-color-translucent, rgba(0,0,0,.08));
}
/* Inner is a fixed-size "page" scaled down; everything scales uniformly */
.capability-preview-inner {
    position: absolute;
    left: 0;
    top: 0;
    width: 800px;
    height: 400px;
    transform: scale(0.5);
    transform-origin: top left;
    padding: 10px;
    background: var(--bs-body-bg, #fff);
    overflow: hidden;
    z-index: 1;
}
/* Doughnut/chart placeholder – always visible */
.capability-preview-chart {
    display: block !important;
    min-width: 140px !important;
    min-height: 100px !important;
    width: 160px !important;
    height: 120px !important;
    flex-shrink: 0;
}
.capability-preview-chart svg {
    display: block;
    width: 100%;
    height: 100%;
}
.capability-preview-chart:not(:has(svg)) {
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-info));
    opacity: 0.9;
}
.capability-preview-chart {
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-info));
    opacity: 0.85;
}

/* Card body (title + description): grey so it’s clearly “our copy”, not the example */
.capability-card-body {
    background-color: var(--bs-secondary-bg, #f8f9fa);
    border-top: 1px solid var(--bs-border-color, #dee2e6);
    min-height: 100px;
    flex-shrink: 0;
}

/* Prevent capability cards (BAS, CGT, Payroll) from forcing row/column width; fix line-break and missing description */
.system-capabilities-section .row.g-4 {
    display: flex;
    flex-wrap: wrap;
}
.system-capabilities-section .row.g-4 > [class*="col-"] {
    min-width: 0;
    flex: 0 0 100%;
}
@media (min-width: 768px) {
    .system-capabilities-section .row.g-4 > .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}
@media (min-width: 992px) {
    .system-capabilities-section .row.g-4 > .col-lg-4 {
        flex: 0 0 33.33333333%;
        max-width: 33.33333333%;
    }
}
.system-capabilities-section .card.h-100 {
    min-width: 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.system-capabilities-section .card.h-100 .capability-preview {
    flex: 0 0 auto;
}
.system-capabilities-section .card.h-100 .capability-card-body {
    flex: 1 1 auto;
}
.system-capabilities-section .capability-card-body p {
    overflow-wrap: break-word;
} 