.potential-calculator-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.potential-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 30px;
    text-align: center;
}

.potential-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.potential-hero .lead {
    font-size: 1.2rem;
    opacity: 0.9;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #374151;
}

.input-group input[type="number"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.input-group .help-text {
    font-size: 13px;
    color: #6b7280;
    margin-top: 5px;
}

.potential-results {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
    text-align: center;
}

.potential-metric {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.potential-metric:last-child {
    margin-bottom: 0;
}

.metric-label {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 5px;
}

.metric-value {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.metric-yearly {
    font-size: 3.5rem;
    font-weight: bold;
    color: #10b981;
    margin: 10px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.service-segments-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.service-segment {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #6366f1;
}

.service-segment:last-child {
    margin-bottom: 0;
}

.service-segment h6 {
    color: #6366f1;
    font-weight: 600;
    margin-bottom: 10px;
}

.service-segment-help {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 15px;
}

.service-level {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
}

.service-level:last-child {
    margin-bottom: 0;
}

.service-level-title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-level-help {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 10px;
}

.form-label-sm {
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 5px;
    color: #4b5563;
}

.form-control-sm {
    padding: 8px 10px;
    font-size: 14px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    width: 100%;
}

.revenue-breakdown-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.revenue-group {
    margin-bottom: 25px;
}

.revenue-group:last-child {
    margin-bottom: 0;
}

.group-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f3f4f6;
}

.group-header i {
    font-size: 20px;
    margin-right: 10px;
    color: #6366f1;
}

.group-header h6 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
}

.csp-revenue-group .group-header i {
    color: #059669;
}

.supporting-metrics-group .group-header i {
    color: #6366f1;
}

.revenue-card {
    background: #f8fafc;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #e5e7eb;
    transition: all 0.3s ease;
}

.revenue-card:last-child {
    margin-bottom: 0;
}

.primary-card {
    border-left-color: #059669;
    background: linear-gradient(135deg, #f0fdf4 0%, #f8fafc 100%);
}

.total-card {
    border-left-color: #059669;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 2px solid #059669;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.15);
}

.secondary-card {
    border-left-color: #6366f1;
    background: linear-gradient(135deg, #f1f5f9 0%, #f8fafc 100%);
}

.revenue-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.revenue-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #059669;
    margin-bottom: 5px;
    font-family:
        "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas,
        "Courier New", monospace;
}

.total-value {
    font-size: 2.2rem;
    color: #059669;
    font-weight: 900;
}

.secondary-value {
    font-size: 1.5rem;
    color: #6366f1;
}

.revenue-description {
    font-size: 12px;
    color: #6b7280;
    font-style: italic;
    margin-top: 5px;
}

.revenue-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .revenue-value {
        font-size: 1.5rem;
    }

    .total-value {
        font-size: 1.8rem;
    }

    .secondary-value {
        font-size: 1.3rem;
    }
}

.highlight-box {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    color: white;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    border: 2px solid #10b981;
}

.highlight-box h4 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    color: #10b981;
}

.highlight-box p,
.highlight-box .text-muted {
    color: rgba(255, 255, 255, 0.85) !important;
}

.highlight-box .small {
    color: rgba(255, 255, 255, 0.75) !important;
}

.key-metric-box {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    margin-bottom: 15px;
}

.key-metric-box .metric-label {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.key-metric-box .metric-value {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 0;
}

/* Detailed Calculation Table Styles */
.detailed-calculations-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e5e7eb;
}

.calculation-table {
    font-family: inherit;
    font-size: 14px;
    margin-bottom: 0;
}

.calculation-table th {
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 8px;
    border: none;
    background: #374151 !important;
    color: white !important;
}

.calculation-table td {
    padding: 10px 8px;
    vertical-align: middle;
    border-color: #e5e7eb;
}

.segment-cell {
    background: #f1f5f9 !important;
    font-weight: 600;
    border-left: 4px solid #3b82f6;
}

.segment-description {
    font-size: 12px;
    font-weight: normal;
    color: #64748b;
    margin-top: 3px;
}

.segment-group-header td:first-child {
    background: #f1f5f9 !important;
}

.table-striped > tbody > tr.segment-group-header:nth-of-type(odd) > td {
    background: #f1f5f9 !important;
}

.badge {
    font-size: 11px;
    font-weight: 500;
    background: transparent !important;
    color: inherit !important;
    border: 1px solid #dee2e6;
    padding: 2px 6px;
}

.badge.bg-success {
    color: #198754 !important;
    border-color: #198754;
}

.badge.bg-warning {
    color: #fd7e14 !important;
    border-color: #fd7e14;
}

.calculation-table tfoot tr {
    font-weight: 600;
}

.calculation-table tfoot .table-info {
    background: #dbeafe !important;
}

.calculation-table tfoot .table-success {
    background: #d1fae5 !important;
}

.calculation-table tfoot .table-warning {
    background: #fef3c7 !important;
}

.calculation-formula .alert {
    font-size: 14px;
    margin-bottom: 0;
}

.calculation-formula ul {
    font-size: 13px;
    margin-bottom: 8px;
}

.details-toggle-text {
    transition: all 0.2s ease;
}

/* Responsive table improvements */
@media (max-width: 1200px) {
    .calculation-table {
        font-size: 12px;
    }

    .calculation-table th,
    .calculation-table td {
        padding: 8px 4px;
    }
}

@media (max-width: 768px) {
    .calculation-table th[style],
    .calculation-table td[style] {
        width: auto !important;
        min-width: 80px;
    }
}

/* Unlock form section styles */
.unlock-form-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.unlock-form-section h5 {
    color: #1f2937 !important;
    font-weight: 600;
}

/* Validate CTA section - ensure good contrast on bg-primary-subtle */
.validate-cta-section {
    color: #1f2937;
}

.validate-cta-section h3 {
    color: #1f2937 !important;
}

.validate-cta-section p {
    color: #374151 !important;
}
