:root {
    --background: #0f172a;
    --card-bg: #1e293b;
    --card-border: #334155;
    --muted: #334155;
    --primary: #0891b2;
    --primary-light: #22d3ee;
    --primary-dark: #0e7490;
    --white: #FFFFFF;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --error: #ef4444;
    --success: #10b981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--background);
    color: var(--white);
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 30px 0;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.logo-image {
    height: 50px;
    width: auto;
}

.logo-tagline {
    font-size: 0.95rem;
    color: var(--gray-400);
    margin-top: 4px;
    letter-spacing: 1px;
}

.progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 0 40px;
    padding: 0 20px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--muted);
    border: 2px solid var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.progress-step.active .step-number,
.progress-step.completed .step-number {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.step-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 8px;
    text-align: center;
    max-width: 80px;
}

.progress-step.active .step-label {
    color: var(--primary);
}

.progress-line {
    width: 60px;
    height: 2px;
    background: var(--gray-500);
    margin: 0 10px;
    margin-bottom: 25px;
}

main {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 40px;
    border: 1px solid var(--card-border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.step-content {
    display: none;
}

.step-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h2 {
    font-size: 1.75rem;
    margin-bottom: 10px;
    color: var(--white);
}

.step-description {
    color: var(--gray-400);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--gray-200);
}

input, select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--muted);
    border-radius: 8px;
    background: var(--background);
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 184, 169, 0.2);
}

input::placeholder {
    color: var(--gray-500);
}

select option {
    background: var(--background);
    color: var(--white);
}

.input-prefix, .input-suffix {
    display: flex;
    align-items: center;
}

.input-prefix span, .input-suffix span {
    padding: 14px 16px;
    background: var(--muted);
    border: 2px solid var(--muted);
    color: var(--gray-400);
    font-weight: 500;
}

.input-prefix span {
    border-radius: 8px 0 0 8px;
    border-right: none;
}

.input-prefix input {
    border-radius: 0 8px 8px 0;
}

.input-suffix span {
    border-radius: 0 8px 8px 0;
    border-left: none;
    min-width: 80px;
    text-align: center;
}

.input-suffix input {
    border-radius: 8px 0 0 8px;
}

.hint {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: 6px;
    display: block;
}

.error-message {
    color: var(--error);
    font-size: 0.85rem;
    margin-top: 6px;
    display: block;
}

.slider-group {
    margin-bottom: 32px;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.slider-header label {
    margin-bottom: 0;
}

.slider-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    min-width: 120px;
    text-align: right;
}

.slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--background);
    outline: none;
    padding: 0;
    margin: 0;
    border: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    cursor: pointer;
    border: 3px solid var(--white);
    box-shadow: 0 2px 10px rgba(0, 184, 169, 0.4);
    transition: all 0.2s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 184, 169, 0.6);
}

.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    cursor: pointer;
    border: 3px solid var(--white);
    box-shadow: 0 2px 10px rgba(0, 184, 169, 0.4);
    transition: all 0.2s ease;
}

.slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 184, 169, 0.6);
}

.slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, var(--primary) 0%, var(--muted) 100%);
}

.slider::-moz-range-track {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, var(--primary) 0%, var(--muted) 100%);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--gray-500);
}

.integration-group {
    margin-bottom: 28px;
}

.integration-group > label {
    margin-bottom: 12px;
    font-size: 1rem;
}

.option-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.option-btn {
    position: relative;
    cursor: pointer;
    margin-bottom: 0;
}

.option-btn input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.option-btn span {
    display: inline-block;
    padding: 12px 20px;
    background: var(--background);
    border: 2px solid var(--muted);
    border-radius: 8px;
    color: var(--gray-300);
    font-weight: 500;
    transition: all 0.2s ease;
}

.option-btn:hover span {
    border-color: var(--primary);
    color: var(--white);
}

.option-btn input:checked + span {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 184, 169, 0.3);
}

.button-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 184, 169, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--gray-300);
    border: 2px solid var(--gray-500);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.assumptions-panel {
    background: var(--background);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
}

.assumption-category {
    margin-bottom: 25px;
}

.assumption-category:last-child {
    margin-bottom: 0;
}

.assumption-category h3 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--muted);
}

.assumption-grid {
    display: grid;
    gap: 10px;
}

.assumption-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: var(--card-bg);
    border-radius: 6px;
}

.assumption-item .label {
    color: var(--gray-300);
}

.assumption-item .value {
    color: var(--white);
    font-weight: 600;
}

.assumption-item.total {
    background: var(--muted);
    margin-top: 5px;
}

.assumption-item.total .label,
.assumption-item.total .value {
    color: var(--primary);
}

.loading {
    text-align: center;
    padding: 60px 20px;
}

.progress-container {
    max-width: 400px;
    margin: 0 auto;
}

.progress-bar-wrapper {
    width: 100%;
    height: 8px;
    background: var(--muted);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-status {
    color: var(--gray-400);
    font-size: 0.95rem;
    margin-top: 15px;
    min-height: 24px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--muted);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.roi-headline {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    border-radius: 12px;
    margin-bottom: 30px;
}

.roi-headline h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.roi-headline #roi-multiple {
    font-size: 3rem;
}

.roi-headline p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}

.highlight-card {
    background: var(--background);
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    border: 1px solid var(--muted);
    transition: all 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(0, 184, 169, 0.15);
}

.highlight-card.primary {
    background: linear-gradient(135deg, rgba(0, 184, 169, 0.15) 0%, rgba(0, 184, 169, 0.05) 100%);
    border-color: var(--primary);
}

.highlight-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.highlight-icon svg {
    width: 24px;
    height: 24px;
    color: var(--white);
}

.highlight-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 6px;
}

.highlight-card.primary .highlight-value {
    color: var(--primary);
    font-size: 1.75rem;
}

.highlight-label {
    color: var(--gray-400);
    font-size: 0.85rem;
    line-height: 1.3;
}

.chart-container {
    background: var(--background);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
}

.chart-container h3 {
    margin-bottom: 24px;
    color: var(--white);
    font-size: 1.1rem;
}

.chart-container canvas {
    height: 320px !important;
}

.savings-breakdown {
    background: var(--background);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
}

.savings-breakdown h3 {
    margin-bottom: 24px;
    color: var(--white);
    font-size: 1.1rem;
}

.breakdown-bars {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.breakdown-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.breakdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.breakdown-label {
    color: var(--gray-300);
    font-size: 0.95rem;
}

.breakdown-value {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.breakdown-bar {
    height: 10px;
    background: var(--muted);
    border-radius: 5px;
    overflow: hidden;
}

.breakdown-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 5px;
    transition: width 0.8s ease-out;
}

@media (max-width: 900px) {
    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .highlights-grid {
        grid-template-columns: 1fr;
    }
    
    .highlight-value {
        font-size: 1.3rem;
    }
    
    .highlight-card.primary .highlight-value {
        font-size: 1.5rem;
    }
}

.results-table th:first-child,
.results-table td:first-child {
    text-align: left;
}

.results-table th {
    color: var(--primary);
    font-weight: 600;
    background: var(--card-bg);
}

.results-table td {
    color: var(--gray-200);
}

.results-table .total-row td {
    font-weight: 600;
    color: var(--white);
    background: var(--card-bg);
}

.results-table .cost-row td {
    color: var(--error);
}

.results-table .net-row td {
    font-weight: 700;
    color: var(--primary);
    background: var(--muted);
}

.payback-explanation {
    background: var(--background);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

.payback-explanation h3 {
    margin-bottom: 15px;
    color: var(--white);
}

.payback-explanation p {
    color: var(--gray-300);
    line-height: 1.8;
}

.disclaimer {
    margin-top: 30px;
    padding: 16px 20px;
    background: var(--background);
    border-radius: 8px;
    border-left: 3px solid var(--gray-500);
}

.disclaimer p {
    color: var(--gray-400);
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
    font-style: italic;
}

.cta-section {
    text-align: center;
    padding: 30px;
    background: var(--background);
    border-radius: 12px;
}

.cta-section p {
    margin-bottom: 20px;
    color: var(--gray-300);
    font-size: 1.1rem;
}

.cta-section .btn {
    margin: 0 10px;
}

footer {
    text-align: center;
    padding: 30px;
    color: var(--gray-500);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    main {
        padding: 25px;
    }

    .progress-bar {
        flex-wrap: wrap;
        gap: 10px;
    }

    .progress-line {
        display: none;
    }

    .step-label {
        display: none;
    }

    .results-summary {
        grid-template-columns: 1fr;
    }

    .button-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .cta-section .btn {
        margin: 10px 0;
        display: block;
    }

    .results-table {
        font-size: 0.85rem;
    }

    .results-table th,
    .results-table td {
        padding: 8px 10px;
    }
}
