/* ============================================
   SQL Server Azure Arc PAYG Calculator
   Premium Enterprise Design System
   CloudSpark x Microsoft Corporate Identity
   ============================================ */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* CSS Variables - Design Tokens */
:root {
    /* CloudSpark Brand Colors */
    --cloudspark-primary: #267df4;
    --cloudspark-secondary: #1a5cc8;
    --cloudspark-accent: #0066b3;
    --cloudspark-dark: #0a1628;
    --cloudspark-gradient: linear-gradient(135deg, #267df4 0%, #0066b3 50%, #5a9df4 100%);
    
    /* Microsoft Fluent Design Colors */
    --ms-blue: #0078d4;
    --ms-blue-dark: #005a9e;
    --ms-blue-light: #50a3ff;
    --ms-teal: #00b294;
    --ms-purple: #8764b8;
    --ms-cyan: #00bcf2;
    --ms-orange: #ff8c00;
    
    /* Primary Brand Gradient - CloudSpark + Microsoft Fusion */
    --primary-gradient: linear-gradient(135deg, #267df4 0%, #0078d4 50%, #00b294 100%);
    --accent-gradient: linear-gradient(135deg, #0066b3 0%, #50a3ff 100%);
    --hero-gradient: linear-gradient(135deg, #0a1628 0%, #267df4 25%, #0078d4 75%, #00b294 100%);
    
    /* Primary Color Scale */
    --primary-50: #e6f0ff;
    --primary-100: #cce1ff;
    --primary-200: #99c3ff;
    --primary-300: #66a5ff;
    --primary-400: #3387ff;
    --primary-500: #0078d4;
    --primary-600: #005a9e;
    --primary-700: #267df4;
    --primary-800: #142952;
    --primary-900: #0a1628;

    /* Accent Colors */
    --accent-cyan: #00bcf2;
    --accent-teal: #00b294;
    --accent-purple: #8764b8;
    --accent-gold: #ffb900;
    --accent-magenta: #e3008c;

    /* Success Colors */
    --success-50: #e6f9ef;
    --success-100: #b3efcf;
    --success-500: #00a651;
    --success-600: #008542;
    
    /* Warning Colors */
    --warning-50: #fff8e6;
    --warning-100: #ffecb3;
    --warning-500: #ff8c00;
    --warning-600: #d67600;
    
    /* Error Colors */
    --error-50: #fde7e9;
    --error-500: #d13438;
    --error-600: #a80000;

    /* Neutral Colors - Modern Gray Scale */
    --neutral-0: #ffffff;
    --neutral-25: #fcfcfc;
    --neutral-50: #f8f9fa;
    --neutral-100: #f3f4f6;
    --neutral-150: #e9ebee;
    --neutral-200: #dfe2e6;
    --neutral-300: #c4c9d0;
    --neutral-400: #9ea5b0;
    --neutral-500: #6b7280;
    --neutral-600: #4b5563;
    --neutral-700: #374151;
    --neutral-800: #1f2937;
    --neutral-900: #111827;

    /* Background Colors */
    --bg-canvas: linear-gradient(180deg, #0a1628 0%, #267df4 30%, #0a1628 100%);
    --bg-surface: rgba(255, 255, 255, 0.98);
    --bg-surface-secondary: #f8f9fa;
    --bg-surface-tertiary: #f3f4f6;
    --bg-elevated: #ffffff;

    /* Text Colors */
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-tertiary: #6b7280;
    --text-muted: #9ea5b0;
    --text-inverse: #ffffff;
    --text-link: #0078d4;
    --text-brand: #267df4;

    /* Border Colors */
    --border-default: #e5e7eb;
    --border-subtle: #f3f4f6;
    --border-strong: #d1d5db;
    --border-focus: #0078d4;
    --border-brand: #267df4;

    /* Premium Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.06);
    --shadow-2xl: 0 32px 64px rgba(0, 0, 0, 0.16), 0 16px 32px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 60px rgba(0, 120, 212, 0.2);
    --shadow-glow-teal: 0 0 60px rgba(0, 178, 148, 0.15);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-card-hover: 0 16px 48px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.06);

    /* Premium Gradients */
    --gradient-primary: linear-gradient(135deg, #0078d4 0%, #005a9e 100%);
    --gradient-brand: linear-gradient(135deg, #267df4 0%, #0066b3 100%);
    --gradient-accent: linear-gradient(135deg, #00b294 0%, #00bcf2 100%);
    --gradient-glass: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.94) 100%);
    --gradient-mesh: radial-gradient(at 40% 20%, rgba(0, 120, 212, 0.15) 0px, transparent 50%),
                     radial-gradient(at 80% 0%, rgba(0, 178, 148, 0.1) 0px, transparent 50%),
                     radial-gradient(at 0% 50%, rgba(30, 58, 110, 0.1) 0px, transparent 50%);

    /* Typography - Premium Fonts */
    --font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
    --font-family-display: 'Plus Jakarta Sans', 'Inter', sans-serif;
    --font-family-mono: 'SF Mono', 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
    
    /* Font Sizes - Fluid Typography */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-5xl: 3.25rem;

    /* Font Weights */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;

    /* Line Heights */
    --line-height-tight: 1.2;
    --line-height-snug: 1.35;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.65;

    /* Spacing Scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;

    /* Border Radius */
    --radius-none: 0;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --radius-2xl: 24px;
    --radius-3xl: 32px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 100ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================
   Base Styles
   ============================================ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    color: var(--text-primary);
    background: var(--bg-canvas);
    min-height: 100vh;
    position: relative;
}

/* Premium Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(0, 120, 212, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(0, 178, 148, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(74, 110, 184, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Subtle Grid Pattern */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* ============================================
   Layout
   ============================================ */

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: var(--space-8);
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .container {
        padding: var(--space-4);
    }
}

/* ============================================
   Header - Premium Hero Section
   ============================================ */

header {
    background: var(--hero-gradient);
    color: var(--text-inverse);
    padding: var(--space-12) var(--space-10);
    border-radius: var(--radius-3xl);
    margin-bottom: var(--space-10);
    box-shadow: var(--shadow-2xl), var(--shadow-glow);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Animated Background Elements */
header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 188, 242, 0.12) 0%, transparent 60%);
    border-radius: 50%;
    animation: floatSlow 20s ease-in-out infinite;
}

header::after {
    content: '';
    position: absolute;
    bottom: -60%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 178, 148, 0.1) 0%, transparent 60%);
    border-radius: 50%;
    animation: floatSlow 25s ease-in-out infinite reverse;
}

@keyframes floatSlow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(20px, -30px) scale(1.02); }
    50% { transform: translate(-10px, 20px) scale(0.98); }
    75% { transform: translate(15px, 10px) scale(1.01); }
}

/* Mesh Gradient Overlay */
.header-content {
    position: relative;
    z-index: 2;
}

/* Brand Logos Container */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-6);
    margin-bottom: var(--space-6);
}

.brand-logo {
    height: 40px;
    opacity: 0.95;
    transition: var(--transition-base);
}

.brand-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

.logo-divider {
    width: 2px;
    height: 36px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
}

/* Language Selector - Premium Style */
.lang-selector {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: var(--space-1);
    background: rgba(255, 255, 255, 0.08);
    padding: var(--space-1);
    border-radius: var(--radius-full);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-btn {
    padding: var(--space-2) var(--space-4);
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    font-family: var(--font-family);
    transition: var(--transition-base);
    letter-spacing: 0.5px;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-inverse);
}

.lang-btn.active {
    background: rgba(255, 255, 255, 0.95);
    color: var(--cloudspark-primary);
    box-shadow: var(--shadow-md);
}

/* Header Title */
.header-content h1 {
    font-family: var(--font-family-display);
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-extrabold);
    margin-bottom: var(--space-4);
    letter-spacing: -1px;
    line-height: var(--line-height-tight);
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.9) 50%, #00bcf2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.subtitle {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-normal);
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    line-height: var(--line-height-relaxed);
    color: rgba(255, 255, 255, 0.9);
}

/* Badge under subtitle */
.powered-by {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-6);
    padding: var(--space-2) var(--space-4);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.powered-by svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 1024px) {
    header {
        padding: var(--space-10) var(--space-8);
    }
    
    .header-content h1 {
        font-size: var(--font-size-3xl);
        padding-right: 100px;
    }
}

@media (max-width: 768px) {
    header {
        padding: var(--space-8) var(--space-6);
        border-radius: var(--radius-2xl);
    }
    
    .header-content h1 {
        font-size: var(--font-size-2xl);
        text-align: left;
        padding-right: 80px;
    }
    
    .subtitle {
        font-size: var(--font-size-base);
        text-align: left;
    }
    
    .logo-container {
        justify-content: flex-start;
        margin-bottom: var(--space-6);
    }
    
    .brand-logo {
        height: 32px;
    }
    
    .lang-selector {
        top: -4px;
        right: -4px;
    }
}

/* ============================================
   Card System - Premium Glass Morphism
   ============================================ */

.card {
    background: var(--bg-surface);
    backdrop-filter: blur(40px);
    border-radius: var(--radius-2xl);
    padding: var(--space-10);
    margin-bottom: var(--space-8);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
}

/* Premium top accent bar */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    opacity: 0;
    transition: var(--transition-base);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover), var(--shadow-glow);
}

.card:hover::before {
    opacity: 1;
}

/* Card Headings */
.card h2 {
    font-family: var(--font-family-display);
    color: var(--text-primary);
    margin-bottom: var(--space-8);
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    display: flex;
    align-items: center;
    gap: var(--space-4);
    letter-spacing: -0.5px;
}

.card h2::before {
    content: '';
    width: 4px;
    height: 32px;
    background: var(--gradient-brand);
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.card h3 {
    font-family: var(--font-family-display);
    color: var(--text-primary);
    margin: var(--space-8) 0 var(--space-5) 0;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    letter-spacing: -0.3px;
}

/* ============================================
   Input Section - Premium Form Design
   ============================================ */

.input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-3);
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    letter-spacing: 0.2px;
}

.input-group input,
.input-group select {
    padding: var(--space-4) var(--space-5);
    border: 2px solid var(--border-default);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    transition: var(--transition-base);
    background: var(--bg-elevated);
    color: var(--text-primary);
    appearance: none;
}

.input-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='%234b5563'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-4) center;
    padding-right: var(--space-12);
}

.input-group input:hover,
.input-group select:hover {
    border-color: var(--border-strong);
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(0, 120, 212, 0.12);
}

.input-group small {
    margin-top: var(--space-2);
    color: var(--text-tertiary);
    font-size: var(--font-size-xs);
}

/* ============================================
   Azure Services Section - Premium Style
   ============================================ */

.azure-services {
    background: linear-gradient(180deg, var(--bg-surface-secondary) 0%, var(--bg-surface-tertiary) 100%);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    margin-top: var(--space-8);
    border: 1px solid var(--border-subtle);
    position: relative;
    display: block !important;
}

.azure-services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.azure-services h3 {
    margin-top: 0;
    margin-bottom: var(--space-6);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--accent-teal);
}

.azure-services h3::before {
    content: '☁️';
    font-size: var(--font-size-xl);
}

.azure-services .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-4);
}

/* ============================================
   Partner Incentives Section
   ============================================ */

.partner-incentives {
    background: linear-gradient(135deg, #fff8e6 0%, #fff5f0 100%);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    margin-top: var(--space-8);
    border: 1px solid rgba(255, 140, 0, 0.15);
    position: relative;
    overflow: hidden;
    display: block !important;
}

.partner-incentives::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--warning-500) 0%, var(--accent-gold) 100%);
}

.partner-incentives h3 {
    color: var(--warning-600);
    margin-top: 0;
    margin-bottom: var(--space-5);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.partner-incentives h3::before {
    content: '💰';
    font-size: var(--font-size-xl);
}

.partner-incentives .checkbox-group {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 140, 0, 0.2);
}

/* ============================================
   Premium Checkbox Groups
   ============================================ */

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-3);
    border: 2px solid var(--border-subtle);
    transition: var(--transition-base);
    min-height: 56px;
}

.checkbox-group:hover {
    border-color: var(--primary-200);
    box-shadow: var(--shadow-sm);
}

.checkbox-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-sm);
    color: var(--text-primary);
    flex: 1;
    min-width: 180px;
}

.checkbox-group input[type="checkbox"] {
    appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid var(--border-strong);
    border-radius: var(--radius-sm);
    margin-right: var(--space-3);
    cursor: pointer;
    position: relative;
    transition: var(--transition-base);
    flex-shrink: 0;
    background: var(--bg-elevated);
}

.checkbox-group input[type="checkbox"]:checked {
    background: var(--gradient-brand);
    border-color: var(--cloudspark-primary);
}

.checkbox-group input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 7px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.checkbox-group input[type="checkbox"]:focus {
    box-shadow: 0 0 0 4px rgba(30, 58, 110, 0.15);
}

.checkbox-group input[type="number"] {
    padding: var(--space-2) var(--space-3);
    border: 2px solid var(--border-default);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    width: 80px;
    font-family: var(--font-family);
    transition: var(--transition-base);
    text-align: center;
}

.checkbox-group select {
    padding: var(--space-2) var(--space-4);
    padding-right: var(--space-8);
    border: 2px solid var(--border-default);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    min-width: 180px;
    font-family: var(--font-family);
    transition: var(--transition-base);
    background-color: var(--bg-elevated);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 20 20' fill='%234b5563'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    appearance: none;
    cursor: pointer;
}

.checkbox-group input[type="number"]:focus,
.checkbox-group select:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(0, 120, 212, 0.12);
    outline: none;
}

/* Input with Unit Label */
.input-with-unit {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--bg-elevated);
    border: 2px solid var(--border-default);
    border-radius: var(--radius-md);
    padding: var(--space-1) var(--space-3);
    transition: var(--transition-base);
}

.input-with-unit:focus-within {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(0, 120, 212, 0.12);
}

.input-with-unit input[type="number"] {
    border: none;
    background: transparent;
    padding: var(--space-1) 0;
    width: 50px;
    text-align: center;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
}

.input-with-unit input[type="number"]:focus {
    outline: none;
    box-shadow: none;
}

.unit-label {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
    white-space: nowrap;
}

.checkbox-group small {
    width: 100%;
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
    margin-top: var(--space-1);
}

.service-price {
    color: var(--primary-500);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-sm);
    background: var(--primary-50);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    white-space: nowrap;
    border: 1px solid var(--primary-100);
    flex-shrink: 0;
}

/* ============================================
   Primary Button - Premium Style
   ============================================ */

.btn-primary {
    background: var(--gradient-brand);
    color: var(--text-inverse);
    padding: var(--space-5) var(--space-10);
    border: none;
    border-radius: var(--radius-xl);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    font-family: var(--font-family-display);
    cursor: pointer;
    transition: var(--transition-base);
    width: 100%;
    margin-top: var(--space-8);
    box-shadow: var(--shadow-lg), 0 4px 20px rgba(30, 58, 110, 0.3);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: var(--transition-slow);
}

.btn-primary::after {
    content: '→';
    font-size: 1.2em;
    transition: var(--transition-base);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl), 0 8px 30px rgba(30, 58, 110, 0.4);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover::after {
    transform: translateX(4px);
}

.btn-primary:active {
    transform: translateY(-1px);
}

/* ============================================
   Summary Card - Premium Hero Results
   ============================================ */

.summary-card {
    background: var(--hero-gradient);
    color: var(--text-inverse);
    border: none;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-2xl);
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M0 0h40v40H0V0zm40 40h40v40H40V40zm0-40h2l-2 2V0zm0 4l4-4h2l-6 6V4zm0 4l8-8h2L40 10V8zm0 4L52 0h2L40 14v-2zm0 4L56 0h2L40 18v-2zm0 4L60 0h2L40 22v-2zm0 4L64 0h2L40 26v-2zm0 4L68 0h2L40 30v-2zm0 4L72 0h2L40 34v-2zm0 4L76 0h2L40 38v-2zm0 4L80 0v2L42 40h-2zm4 0L80 4v2L46 40h-2zm4 0L80 8v2L50 40h-2zm4 0l28-28v2L54 40h-2zm4 0l24-24v2L58 40h-2zm4 0l20-20v2L62 40h-2zm4 0l16-16v2L66 40h-2zm4 0l12-12v2L70 40h-2zm4 0l8-8v2l-6 6h-2zm4 0l4-4v2l-2 2h-2z'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.summary-card:hover {
    transform: none;
}

.summary-card h2 {
    color: var(--text-inverse);
}

.summary-card h2::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.3) 100%);
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    margin-bottom: var(--space-8);
    position: relative;
    z-index: 1;
}

.summary-item {
    background: rgba(255, 255, 255, 0.08);
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    text-align: center;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-base);
}

.summary-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
}

.summary-item .label {
    display: block;
    font-size: var(--font-size-sm);
    opacity: 0.85;
    margin-bottom: var(--space-3);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-snug);
}

.summary-item .value {
    display: block;
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-extrabold);
    letter-spacing: -1px;
    font-family: var(--font-family-display);
}

.summary-item .highlight {
    color: var(--accent-cyan);
    text-shadow: 0 0 30px rgba(0, 188, 242, 0.5);
}

@media (max-width: 1024px) {
    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .summary-item .value {
        font-size: var(--font-size-2xl);
    }
}

/* Benefits List - Premium Style */
.benefits-list {
    background: rgba(255, 255, 255, 0.06);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.benefits-list h4 {
    margin-bottom: var(--space-5);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    font-family: var(--font-family-display);
}

.benefits-list ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-4);
}

.benefits-list li {
    padding: var(--space-4) var(--space-4) var(--space-4) var(--space-10);
    position: relative;
    font-size: var(--font-size-sm);
    line-height: var(--line-height-relaxed);
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-md);
    transition: var(--transition-base);
}

.benefits-list li:hover {
    background: rgba(255, 255, 255, 0.08);
}

.benefits-list li::before {
    content: "✓";
    position: absolute;
    left: var(--space-4);
    color: var(--accent-teal);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-lg);
    text-shadow: 0 0 20px rgba(0, 178, 148, 0.5);
}

/* ============================================
   Comparison Table - Premium Design
   ============================================ */

/* Comparison Header with Markup Input */
.comparison-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.comparison-header h2 {
    margin-bottom: 0;
}

.markup-input-container {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    background: linear-gradient(135deg, #fff8e6 0%, #fff5f0 100%);
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-lg);
    border: 2px solid rgba(255, 140, 0, 0.2);
}

.markup-input-container label {
    font-weight: var(--font-weight-semibold);
    color: var(--warning-600);
    font-size: var(--font-size-sm);
    white-space: nowrap;
}

.markup-input-wrapper {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid var(--border-default);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-base);
}

.markup-input-wrapper:focus-within {
    border-color: var(--warning-500);
    box-shadow: 0 0 0 4px rgba(255, 140, 0, 0.15);
}

.markup-input-wrapper input {
    width: 60px;
    padding: var(--space-2) var(--space-3);
    border: none;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
    text-align: center;
    color: var(--warning-600);
    background: transparent;
}

.markup-input-wrapper input:focus {
    outline: none;
}

.markup-unit {
    padding: var(--space-2) var(--space-3);
    background: var(--warning-50);
    color: var(--warning-600);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-sm);
    border-left: 1px solid var(--border-default);
}

/* Customer Cost Column Highlight */
.comparison-table th.customer-cost,
.comparison-table td.customer-cost {
    background: rgba(255, 140, 0, 0.08);
    font-weight: var(--font-weight-bold);
}

.comparison-table thead th.customer-cost {
    background: rgba(255, 255, 255, 0.15);
}

.table-responsive {
    overflow-x: auto;
    margin: 0 calc(-1 * var(--space-4));
    padding: 0 var(--space-4);
}

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: var(--space-5);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.comparison-table thead {
    background: var(--gradient-brand);
    color: var(--text-inverse);
}

.comparison-table th {
    padding: var(--space-5) var(--space-6);
    text-align: left;
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
    white-space: nowrap;
    letter-spacing: 0.3px;
    font-family: var(--font-family-display);
}

.comparison-table th:first-child {
    border-radius: var(--radius-xl) 0 0 0;
}

.comparison-table th:last-child {
    border-radius: 0 var(--radius-xl) 0 0;
}

.comparison-table td {
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--border-subtle);
    font-size: var(--font-size-sm);
    vertical-align: middle;
}

.comparison-table tbody tr {
    transition: var(--transition-base);
}

.comparison-table tbody tr:hover {
    background: var(--bg-surface-secondary);
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table tbody tr:last-child td:first-child {
    border-radius: 0 0 0 var(--radius-xl);
}

.comparison-table tbody tr:last-child td:last-child {
    border-radius: 0 0 var(--radius-xl) 0;
}

.comparison-table .best-value {
    background: var(--success-50);
}

.comparison-table .best-value:hover {
    background: var(--success-100);
}

.comparison-table .recommended {
    background: linear-gradient(90deg, var(--primary-50) 0%, transparent 100%);
    border-left: 4px solid var(--cloudspark-primary);
}

/* ============================================
   Earnings Grid - Premium Cards
   ============================================ */

.earnings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: var(--space-8);
}

.earning-item {
    background: var(--bg-surface-secondary);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    border-left: 4px solid var(--cloudspark-primary);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.earning-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(30, 58, 110, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.earning-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.earning-item h4 {
    color: var(--cloudspark-primary);
    margin-bottom: var(--space-5);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
    font-family: var(--font-family-display);
}

.earning-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--border-subtle);
    font-size: var(--font-size-sm);
    gap: var(--space-4);
}

.earning-detail span:first-child {
    flex: 1;
    min-width: 0;
    color: var(--text-secondary);
}

.earning-detail span:last-child {
    font-weight: var(--font-weight-bold);
    white-space: nowrap;
    font-family: var(--font-family-mono);
    color: var(--text-primary);
}

.earning-detail:last-child {
    border-bottom: none;
    font-weight: var(--font-weight-bold);
    color: var(--success-500);
    font-size: var(--font-size-base);
    padding-top: var(--space-5);
    margin-top: var(--space-4);
    border-top: 2px solid var(--cloudspark-primary);
    background: rgba(0, 166, 81, 0.05);
    margin: var(--space-4) calc(-1 * var(--space-8)) calc(-1 * var(--space-8));
    padding: var(--space-5) var(--space-8) var(--space-5);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.mci-detail {
    background: linear-gradient(135deg, var(--success-50) 0%, #e6fff2 100%);
    margin: var(--space-2) 0;
    padding: var(--space-4) var(--space-5) !important;
    border-radius: var(--radius-md);
    border: 1px solid var(--success-100) !important;
}

/* ============================================
   Services Breakdown
   ============================================ */

.services-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-5);
}

.service-item {
    background: var(--bg-surface-secondary);
    padding: var(--space-5);
    border-radius: var(--radius-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 2px solid var(--border-subtle);
    transition: var(--transition-base);
}

.service-item:hover {
    border-color: var(--primary-200);
    box-shadow: var(--shadow-sm);
}

.service-item .name {
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-sm);
    color: var(--text-primary);
}

.service-item .cost {
    color: var(--primary-500);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-base);
    font-family: var(--font-family-mono);
}

/* ============================================
   Scenario Tabs - Premium Tab Design
   ============================================ */

.scenario-tabs {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-8);
    flex-wrap: wrap;
    background: var(--bg-surface-secondary);
    padding: var(--space-2);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
}

.tab-btn {
    padding: var(--space-4) var(--space-6);
    border: none;
    background: transparent;
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
    font-family: var(--font-family);
    color: var(--text-secondary);
    transition: var(--transition-base);
    white-space: nowrap;
}

.tab-btn:hover {
    background: var(--bg-elevated);
    color: var(--cloudspark-primary);
}

.tab-btn.active {
    background: var(--gradient-brand);
    color: var(--text-inverse);
    box-shadow: var(--shadow-md);
}

.scenario-content {
    background: var(--bg-surface-secondary);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    min-height: 200px;
    border: 1px solid var(--border-subtle);
}

.scenario-details h4 {
    color: var(--cloudspark-primary);
    margin-bottom: var(--space-5);
    font-size: var(--font-size-xl);
    font-family: var(--font-family-display);
}

.scenario-details ul {
    list-style: none;
}

.scenario-details li {
    padding: var(--space-4) var(--space-4) var(--space-4) var(--space-10);
    position: relative;
    font-size: var(--font-size-sm);
    line-height: var(--line-height-relaxed);
    color: var(--text-secondary);
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-3);
    border: 1px solid var(--border-subtle);
    transition: var(--transition-base);
}

.scenario-details li:hover {
    border-color: var(--primary-200);
}

.scenario-details li::before {
    content: "→";
    position: absolute;
    left: var(--space-4);
    color: var(--accent-teal);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-lg);
}

/* ============================================
   ROI Content - Premium Metrics
   ============================================ */

.roi-content {
    display: grid;
    gap: var(--space-8);
}

.roi-metric {
    background: var(--bg-surface-secondary);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-5);
    border: 1px solid var(--border-subtle);
}

.roi-metric h4 {
    grid-column: 1 / -1;
    color: var(--cloudspark-primary);
    margin-bottom: var(--space-3);
    font-size: var(--font-size-lg);
    font-family: var(--font-family-display);
}

.metric-item {
    padding: var(--space-6);
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 2px solid var(--border-subtle);
    transition: var(--transition-base);
}

.metric-item:hover {
    border-color: var(--primary-200);
    box-shadow: var(--shadow-sm);
}

.metric-item .label {
    display: block;
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
    margin-bottom: var(--space-3);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: var(--font-weight-semibold);
}

.metric-item .value {
    display: block;
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-extrabold);
    color: var(--cloudspark-primary);
    font-family: var(--font-family-display);
    letter-spacing: -1px;
}

.metric-item.positive .value {
    color: var(--success-500);
}

.metric-item.negative .value {
    color: var(--error-500);
}

/* ============================================
   Chart Card - Premium Style
   ============================================ */

.chart-card canvas {
    max-height: 450px;
}

/* ============================================
   Footer - Premium Corporate
   ============================================ */

footer {
    text-align: center;
    padding: var(--space-12) var(--space-8);
    color: rgba(255, 255, 255, 0.85);
    margin-top: var(--space-10);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

footer p {
    margin-bottom: var(--space-3);
    font-size: var(--font-size-sm);
}

footer a {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

footer a:hover {
    color: var(--text-inverse);
}

footer a::after {
    content: '→';
    transition: var(--transition-base);
}

footer a:hover::after {
    transform: translateX(4px);
}

.footer-branding {
    margin-top: var(--space-8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-6);
    flex-wrap: wrap;
}

.footer-logo {
    height: 28px;
    opacity: 0.7;
    filter: brightness(0) invert(1);
    transition: var(--transition-base);
}

.footer-logo:hover {
    opacity: 1;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .card {
        padding: var(--space-6);
        border-radius: var(--radius-xl);
    }
    
    .card h2 {
        font-size: var(--font-size-xl);
    }
    
    .input-grid {
        grid-template-columns: 1fr;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .earnings-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-table {
        font-size: var(--font-size-xs);
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: var(--space-3);
    }
    
    .scenario-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
        text-align: center;
    }
    
    .benefits-list ul {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Premium Animations
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.results-section {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    animation-fill-mode: both;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.15s; }
.card:nth-child(3) { animation-delay: 0.2s; }
.card:nth-child(4) { animation-delay: 0.25s; }
.card:nth-child(5) { animation-delay: 0.3s; }
.card:nth-child(6) { animation-delay: 0.35s; }

/* ============================================
   Loading State - Premium Spinner
   ============================================ */

.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 56px;
    height: 56px;
    margin: -28px 0 0 -28px;
    border: 4px solid var(--border-default);
    border-top-color: var(--cloudspark-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    body {
        background: white;
        color: black;
    }
    
    body::before,
    body::after {
        display: none;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    header {
        background: var(--cloudspark-primary);
        box-shadow: none;
        border-radius: 0;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid var(--border-default);
        page-break-inside: avoid;
        backdrop-filter: none;
        background: white;
    }
    
    .btn-primary,
    .lang-selector {
        display: none;
    }
    
    .summary-card {
        background: var(--cloudspark-primary);
    }
}

/* ============================================
   Utility Classes
   ============================================ */

.text-center { text-align: center; }
.text-right { text-align: right; }
.font-mono { font-family: var(--font-family-mono); }
.font-bold { font-weight: var(--font-weight-bold); }
.font-display { font-family: var(--font-family-display); }
.text-primary { color: var(--primary-500); }
.text-brand { color: var(--cloudspark-primary); }
.text-success { color: var(--success-500); }
.text-warning { color: var(--warning-500); }
.text-error { color: var(--error-500); }
.text-teal { color: var(--accent-teal); }
.text-cyan { color: var(--accent-cyan); }

/* Gradient Text */
.gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass Effect */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Focus Ring */
.focus-ring:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(30, 58, 110, 0.2);
}
