/* CWP Box Tab - Style */
.cwp-box-tab {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f8f9fa;
    border-radius: 0;
    box-shadow: none;
}

/* Header */
.cwp-box-tab-header {
    text-align: center;
    margin-bottom: 20px;
}

.cwp-box-tab-tag {
    display: inline-block;
    background: linear-gradient(to bottom, #7f31ff 0%, #4279f1 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cwp-box-tab-title {
    font-size: 48px;
    font-weight: 700 !important;
    margin: 0;
    background: linear-gradient(to bottom, #7f31ff 0%, #4279f1 100%);
    -webkit-background-clip: text;
    background-clip: text;    
    color: rgb(26, 32, 44) !important;
}

/* Navigation */
.cwp-box-tab-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.cwp-box-tab-nav-item {
    background: transparent;
    border: none;
    color: #1a1a1a;
    padding: 12px 24px;
    border-radius: 0;
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cwp-box-tab-nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #7f31ff 0%, #4279f1 100%);
    transition: left 0.3s ease;
    z-index: 1;
}

.cwp-box-tab-nav-item span {
    position: relative;
    z-index: 2;
}

.cwp-box-tab-nav-item:hover {
    color: #1e3a8a;
    transform: none;
    box-shadow: none;
}

.cwp-box-tab-nav-item.active {
    background: transparent;
    color: white;
    border: none;
    transform: none;
    box-shadow: none;
}

.cwp-box-tab-nav-item.active::before {
    left: 0;
    background: linear-gradient(to bottom, #7f31ff 0%, #4279f1 100%);
}

/* Content */
.cwp-box-tab-content-item {
    display: none !important;
    animation: fadeInUp 0.5s ease;
}

.cwp-box-tab-content-item.active {
    display: block !important;
}

/* Domyślnie aktywna pierwsza zakładka - usunięte, bo może powodować konflikty */

.cwp-box-tab-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Usunięte niepotrzebne style */

/* Text Content */
.cwp-box-tab-content-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* FAQ Items */
.cwp-box-tab-faq-item {
    background: white;
    border-radius: 0;
    padding: 24px;
    box-shadow: none;
    transition: all 0.3s ease;
    border: none;
}

.cwp-box-tab-faq-item:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

.cwp-box-tab-faq-question {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    position: relative;
}

.cwp-box-tab-faq-number {
    background: linear-gradient(to bottom, #7f31ff 0%, #4279f1 100%);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    flex-shrink: 0;
}

.cwp-box-tab-faq-question h3 {
    margin: 0;
    font-size: 18px !important;
    font-weight: 600;
    color: #1a1a1a;
    flex: 1;
    line-height: 1.4;
}

.cwp-box-tab-faq-toggle {
    background: linear-gradient(to bottom, #7f31ff 0%, #4279f1 100%);
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.cwp-box-tab-faq-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(127, 49, 255, 0.4);
}

.cwp-box-tab-faq-icon {
    color: white;
    font-size: 16px;
    line-height: 1;
    display: block;
}

.cwp-box-tab-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 24px;
}

.cwp-box-tab-faq-answer.active {
    max-height: 200px;
    padding: 24px 24px 0 24px;
}

.cwp-box-tab-faq-answer p {
    margin: 0;
    color: #6c757d;
    line-height: 1.6;
    font-size: 16px;
}

/* Content Layout - Dokładnie jak na obrazku */
.cwp-box-tab-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.cwp-box-tab-content-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .cwp-box-tab {
        padding: 30px 16px;
    }
    
    .cwp-box-tab-title {
        font-size: 36px;
    }
    
    .cwp-box-tab-content-wrapper {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .cwp-box-tab {
        padding: 24px 12px;
    }
    
    .cwp-box-tab-title {
        font-size: 28px;
    }
    
    .cwp-box-tab-nav {
        gap: 6px;
    }
    
    .cwp-box-tab-nav-item {
        padding: 10px 18px;
        font-size: 14px;
    }
    
    .cwp-box-tab-content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .cwp-box-tab-content-wrapper.reverse .cwp-box-tab-content-text,
    .cwp-box-tab-content-wrapper.reverse .cwp-box-tab-content-image {
        order: unset;
    }
    
    .cwp-box-tab-faq-question {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .cwp-box-tab-faq-question h3 {
        font-size: 16px;
    }
    
    .cwp-box-tab-image {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .cwp-box-tab {
        padding: 20px 8px;
    }
    
    .cwp-box-tab-title {
        font-size: 24px;
    }
    
    .cwp-box-tab-tag {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .cwp-box-tab-nav-item {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .cwp-box-tab-faq-item {
        padding: 16px;
    }
    
    .cwp-box-tab-faq-answer.active {
        padding: 16px 16px 0 16px;
    }
    
    .cwp-box-tab-image {
        height: 250px;
    }
}

/* Loading States */
.cwp-box-tab.loading {
    opacity: 0.7;
    pointer-events: none;
}

.cwp-box-tab.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

