/* Modern Pricing Page - Beautiful, User-Friendly, Responsive */
/* Flutterwave-inspired design with clean cards and smooth interactions */

:root {
    --primary-purple: #4F46E5;
    --primary-purple-dark: #4338CA;
    --secondary-green: #10B981;
    --success-green: #10b981;
    --bg-light: #f8f9fb;
    --bg-white: #ffffff;
    --text-primary: #0F172A;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-light: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #4F46E5 0%, #10B981 100%);
}

/* Pricing Hero Section */
.pricing-hero {
    background: linear-gradient(135deg, #f8f9fb 0%, #ffffff 100%);
    padding: 80px 20px 60px;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.pricing-hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.pricing-hero .sales-strip {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-white);
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--text-secondary);
}

.pricing-hero .sales-strip a {
    color: var(--primary-orange);
    font-weight: 600;
    text-decoration: none;
}

.pricing-hero .sales-strip .link-btn {
    background: none;
    border: none;
    color: var(--primary-orange);
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.pricing-hero h1 {
    font-size: 56px;
    font-weight: 800;
    margin: 0 0 16px 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-hero .subtitle {
    font-size: 24px;
    color: var(--text-primary);
    font-weight: 600;
    margin: 0 0 12px 0;
}

.pricing-hero .desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 32px 0;
}

/* Currency Toggle - Modern Switch Design */
.currency-toggle {
    display: inline-flex;
    background: var(--bg-white);
    border-radius: 12px;
    padding: 4px;
    box-shadow: var(--shadow-md);
    gap: 4px;
}

.currency-btn {
    padding: 10px 24px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.currency-btn.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.currency-btn:hover:not(.active) {
    background: var(--bg-light);
}

/* Scale Section - Build Your Plan */
.scale-section {
    padding: 60px 20px;
    background: var(--bg-light);
}

.configurator {
    max-width: 1100px;
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.configurator h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.configurator .muted {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

/* Mode Toggle - Single vs Multiple */
.mode-toggle {
    display: inline-flex;
    background: var(--bg-light);
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
    margin: 20px 0;
}

.mode-btn {
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mode-btn.active {
    background: var(--bg-white);
    color: var(--primary-purple);
    box-shadow: var(--shadow-sm);
}

/* Preset Buttons Row */
.preset-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.preset-btn {
    padding: 10px 20px;
    border: 2px solid var(--border-light);
    background: var(--bg-white);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.preset-btn:hover {
    border-color: var(--primary-purple);
    color: var(--primary-purple);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.preset-btn[data-preset="clear"] {
    border-color: #ef4444;
    color: #ef4444;
}

.preset-btn[data-preset="clear"]:hover {
    background: #ef4444;
    color: white;
}

/* Configuration Grid - Beautiful Cards */
.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.cfg-card {
    position: relative;
    padding: 20px;
    border: 2px solid var(--border-light);
    border-radius: 16px;
    background: var(--bg-white);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cfg-card:hover {
    border-color: var(--primary-purple);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.15);
}

.cfg-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cfg-card input[type="checkbox"]:checked + span::before {
    background: var(--gradient-primary);
    border-color: var(--primary-purple);
}

.cfg-card input[type="checkbox"]:checked + span::after {
    opacity: 1;
    transform: scale(1);
}

.cfg-card input[type="checkbox"]:checked ~ * {
    opacity: 1;
}

.cfg-card span {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    padding-left: 36px;
    position: relative;
    display: block;
}

/* Custom Checkbox */
.cfg-card span::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-light);
    border-radius: 6px;
    background: var(--bg-white);
    transition: all 0.3s ease;
}

.cfg-card span::after {
    content: '✓';
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    color: white;
    font-size: 14px;
    font-weight: bold;
    opacity: 0;
    transition: all 0.2s ease;
}

.cfg-card small {
    color: var(--text-muted);
    font-size: 14px;
    padding-left: 36px;
}

/* Summary Section */
.summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    background: linear-gradient(135deg, #f8f9fb 0%, #ffffff 100%);
    border-radius: 16px;
    margin: 24px 0;
    border: 2px solid var(--border-light);
}

.summary .price {
    font-size: 48px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Users Input Row */
.users-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin: 20px 0;
}

.users-row input[type="number"] {
    width: 120px;
    padding: 12px 16px;
    border: 2px solid var(--border-light);
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.2s ease;
    margin-top: 8px;
}

.users-row input[type="number"]:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.users-row label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    margin-bottom: 4px;
}

/* Actions - Checkout Button */
.actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn-buy {
    flex: 1;
    padding: 16px 32px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

.btn-buy:active {
    transform: translateY(0);
}

.btn-buy:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* RFQ Section */
.rfq-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8f9fb 0%, #ffffff 100%);
}

.rfq-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.rfq-copy h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 16px 0;
}

.rfq-copy p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 24px 0;
}

.rfq-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rfq-bullets li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 16px;
}

.rfq-bullets li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.rfq-form-wrap {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 36px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

/* Responsive Design */
@media (max-width: 992px) {
    .rfq-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .config-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .pricing-hero h1 {
        font-size: 40px;
    }
    
    .pricing-hero .subtitle {
        font-size: 20px;
    }
    
    .configurator {
        padding: 24px;
    }
    
    .configurator h3 {
        font-size: 24px;
    }
    
    .config-grid {
        grid-template-columns: 1fr;
    }
    
    .summary {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .summary .price {
        font-size: 36px;
    }
    
    .users-row {
        flex-direction: column;
    }
    
    .rfq-copy h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .pricing-hero {
        padding: 60px 16px 40px;
    }
    
    .pricing-hero h1 {
        font-size: 32px;
    }
    
    .configurator {
        padding: 20px;
        border-radius: 16px;
    }
    
    .preset-row {
        flex-direction: column;
    }
    
    .preset-btn {
        width: 100%;
    }
    
    .summary .price {
        font-size: 28px;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .btn-buy {
        width: 100%;
    }
}

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

.cfg-card {
    animation: slideUp 0.4s ease forwards;
}

.cfg-card:nth-child(1) { animation-delay: 0.05s; }
.cfg-card:nth-child(2) { animation-delay: 0.1s; }
.cfg-card:nth-child(3) { animation-delay: 0.15s; }
.cfg-card:nth-child(4) { animation-delay: 0.2s; }
.cfg-card:nth-child(5) { animation-delay: 0.25s; }
.cfg-card:nth-child(6) { animation-delay: 0.3s; }
.cfg-card:nth-child(7) { animation-delay: 0.35s; }
.cfg-card:nth-child(8) { animation-delay: 0.4s; }
.cfg-card:nth-child(9) { animation-delay: 0.45s; }

/* Loading State */
.configurator.loading {
    pointer-events: none;
    opacity: 0.6;
}

/* Success State */
.cfg-card input[type="checkbox"]:checked ~ span {
    color: var(--primary-purple);
}

/* FX Note Styling */
#fxNote {
    padding: 12px;
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
    font-size: 13px;
    color: #1e40af;
}

/* VAT Line */
#cfgVatLine {
    color: var(--text-muted);
    margin-top: 8px;
}

/* Breakdown */
#cfgBreakdown {
    margin-top: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}
