/* Pricing Tab Styles - Complete Styling */

/* Base Container - Full Width Layout */
.sm-pricing-tab-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 20px 40px;
    box-sizing: border-box;
}

/* Container wrapper for better spacing control */
.sm-pricing-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

/* Header Styles */
.sm-tab-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.sm-tab-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #111827;
}

.sm-tab-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

/* Section Spacing - Full Width */
.sm-section {
    margin: 40px 0;
    padding: 0;
    width: 100%;
}

.sm-section:first-child {
    margin-top: 0;
}

.sm-section:last-child {
    margin-bottom: 0;
}

.sm-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
    margin-top: 0;
}

/* Pricing Overview */
.sm-pricing-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.sm-pricing-summary,
.sm-pricing-type,
.sm-pricing-highlights {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sm-pricing-info-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
}

/* Pricing Badges */
.sm-pricing-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.sm-pricing-free {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.sm-pricing-freemium {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.sm-pricing-paid {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fed7aa;
}

/* Benefits List */
.sm-pricing-benefits {
    list-style: none;
    padding: 0;
    margin: 16px 0 0 0;
}

.sm-pricing-benefits li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
    font-size: 14px;
    color: #374151;
}

.sm-check {
    color: #10b981;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

/* Pricing Table */
.sm-pricing-table {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.sm-pricing-plan {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    background: #fff;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sm-pricing-plan:hover,
.sm-pricing-plan.hovered {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.sm-pricing-plan.featured {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
}

.sm-popular-badge {
    background: #2563eb;
    color: #fff;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sm-pricing-plan h4 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 12px 0;
}

.sm-plan-description {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.sm-price {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    margin: 16px 0;
    line-height: 1;
}

.sm-price small {
    font-size: 14px;
    font-weight: 400;
    color: #6b7280;
    margin-left: 2px;
}

.sm-plan-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    border-top: 1px solid #f3f4f6;
    padding-top: 16px;
}

.sm-plan-features li {
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.sm-plan-features li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sm-plan-features li:before {
    content: '✓';
    color: #10b981;
    font-weight: bold;
    margin-right: 8px;
    flex-shrink: 0;
}

.sm-plan-action {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}

.sm-plan-button {
    display: inline-block;
    background: #111827;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    margin-top: 16px;
    transition: background-color 0.3s, transform 0.2s;
    font-size: 14px;
    border: none;
    cursor: pointer;
}

.sm-plan-button:hover {
    background: #374151;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.sm-plan-button.sm-primary {
    background: #2563eb;
}

.sm-plan-button.sm-primary:hover {
    background: #1d4ed8;
}

/* Pricing Messages */
.sm-pricing-message {
    text-align: center;
    padding: 40px 20px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.sm-pricing-type-display h4 {
    margin-bottom: 16px;
    color: #111827;
    font-size: 20px;
    font-weight: 600;
}

.sm-pricing-type-display p {
    margin-bottom: 24px;
    color: #6b7280;
    font-size: 16px;
    line-height: 1.6;
}

/* Enterprise Section - Full Width */
.sm-enterprise-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    padding: 40px;
    margin: 40px 0;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    width: 100%;
    box-sizing: border-box;
}

.sm-enterprise-section h3 {
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    margin-top: 0;
}

.sm-enterprise-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
}

.sm-enterprise-text p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 16px;
    opacity: 0.9;
}

.sm-enterprise-benefits {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.sm-enterprise-benefits li {
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.sm-enterprise-button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    text-align: center;
    min-width: 140px;
}

.sm-enterprise-button:hover {
    background: white;
    color: #667eea;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* Q&A Section Styles */
.sm-pricing-qa,
.sm-pricing-faq {
    margin: 32px 0;
}

.sm-qa-item,
.sm-faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 12px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

.sm-qa-question,
.sm-faq-question {
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border-radius: 8px 8px 0 0;
    transition: background-color 0.3s;
    user-select: none;
}

.sm-qa-question:hover,
.sm-faq-question:hover {
    background: #f1f5f9;
}

.sm-qa-question h4,
.sm-faq-question h4 {
    margin: 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
    flex-grow: 1;
    padding-right: 16px;
}

.sm-qa-toggle,
.sm-faq-toggle {
    font-size: 18px;
    font-weight: bold;
    color: #6b7280;
    transition: transform 0.3s, color 0.3s;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(107, 114, 128, 0.1);
    flex-shrink: 0;
}

.sm-qa-toggle.active,
.sm-faq-toggle.active {
    transform: rotate(45deg);
    color: #2563eb;
    background: rgba(37, 99, 235, 0.1);
}

.sm-qa-answer,
.sm-faq-answer {
    padding: 20px;
    border-top: 1px solid #e5e7eb;
    background: white;
    display: none;
}

.sm-qa-answer p,
.sm-faq-answer p {
    margin: 0 0 12px 0;
    color: #374151;
    font-size: 14px;
    line-height: 1.6;
}

.sm-qa-answer p:last-child,
.sm-faq-answer p:last-child {
    margin-bottom: 0;
}

.sm-qa-responses {
    margin-bottom: 16px;
}

.sm-qa-response {
    margin: 8px 0;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 6px;
    border-left: 3px solid #2563eb;
}

.sm-qa-response p {
    margin: 0;
    font-size: 14px;
    color: #374151;
}

.sm-qa-response strong {
    color: #111827;
    font-weight: 600;
}

.sm-qa-text-samples {
    margin-top: 16px;
}

.sm-qa-text-samples h5 {
    margin: 16px 0 12px 0;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sm-qa-text-samples blockquote {
    margin: 12px 0;
    padding: 12px 16px;
    background: #f1f5f9;
    border-left: 4px solid #3b82f6;
    border-radius: 0 4px 4px 0;
    font-style: italic;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.5;
}

.sm-qa-text-samples blockquote:first-of-type {
    margin-top: 0;
}

.sm-qa-text-samples blockquote:last-of-type {
    margin-bottom: 0;
}

/* Responsive Design */
@media (min-width: 1200px) {
    .sm-pricing-tab-content {
        padding: 20px 60px;
    }
    
    .sm-enterprise-section {
        padding: 50px 60px;
    }
}

@media (max-width: 1024px) {
    .sm-pricing-overview {
        grid-template-columns: 1fr;
    }
    
    .sm-pricing-table {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .sm-pricing-tab-content {
        padding: 16px 20px;
    }
    
    .sm-pricing-table {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .sm-enterprise-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 24px;
    }
    
    .sm-pricing-plan {
        padding: 20px 16px;
    }
    
    .sm-enterprise-section {
        padding: 30px 24px;
        margin: 30px 0;
    }
    
    .sm-section {
        margin: 30px 0;
    }
    
    .sm-tab-header h2 {
        font-size: 20px;
    }
    
    .sm-qa-question h4,
    .sm-faq-question h4 {
        font-size: 15px;
    }
    
    .sm-qa-question,
    .sm-faq-question {
        padding: 14px 16px;
    }
    
    .sm-qa-answer,
    .sm-faq-answer {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .sm-pricing-tab-content {
        padding: 12px 16px;
    }
    
    .sm-enterprise-section {
        padding: 24px 16px;
        margin: 24px 0;
    }
    
    .sm-pricing-plan {
        padding: 16px;
    }
    
    .sm-section {
        margin: 24px 0;
    }
    
    .sm-price {
        font-size: 28px;
    }
    
    .sm-plan-button {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* Animation for FAQ toggles */
@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
}

.sm-qa-answer.show,
.sm-faq-answer.show {
    display: block;
    animation: slideDown 0.3s ease-out;
}

.sm-qa-answer.hide,
.sm-faq-answer.hide {
    animation: slideUp 0.3s ease-out;
}
