/* Custom styles for Financial Analysis Calculator */

body {
    background-color: #182454;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Custom Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #182454;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    border: 2px solid #182454;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

::-webkit-scrollbar-thumb:active {
    background: rgba(255, 255, 255, 0.6);
}

/* Firefox scrollbar styling */
html {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) #182454;
}

.container-fluid {
    max-width: 1400px;
    background-color: #182454;
}

/* Fixed Action Buttons */
.fixed-action-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.75rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.fixed-action-buttons .btn {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    white-space: nowrap;
}

/* Compact Cards */
.compact-card {
    margin-bottom: 0.75rem;
}

.compact-body {
    padding: 0.75rem;
}

/* Property Summary Grid */
.property-summary-grid {
    display: flex;
    gap: 0.75rem;
    align-items: start;
    justify-content: center;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .property-summary-grid {
        justify-content: center;
    }
}

@media (min-width: 992px) {
    .property-summary-grid {
        justify-content: center;
    }
}

/* Summary Section */
.summary-item {
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background-color: #e8f5e8;
    margin: 2px;
    width: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 180px;
}

.summary-item label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #495057;
    display: block;
    margin-bottom: 5px;
    text-align: center;
}

.summary-value {
    font-size: 1rem;
    font-weight: bold;
    color: #212529;
    display: flex;
    justify-content: center;
}

/* Main Title Header */
.main-title-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    margin-bottom: 1.5rem;
    position: relative;
}

.main-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 2rem;
    margin: 0;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
}

.main-title .logo-image {
    flex-shrink: 0;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.main-title .title-text {
    flex: 1;
    text-align: center;
    width: 100%;
}

/* Logo Image Styling */
.logo-image {
    height: 2rem;
    width: auto;
    margin-right: 0.75rem;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
    vertical-align: middle;
}

/* Alternative filter for different logo types */
.logo-image.dark-logo {
    filter: brightness(0) invert(1);
}

.logo-image.light-logo {
    filter: brightness(1.2);
}

/* Responsive logo sizing */
@media (max-width: 768px) {
    .logo-image {
        height: 1.5rem;
        margin-right: 0.5rem;
    }
}

@media (max-width: 576px) {
    .logo-image {
        height: 1.25rem;
        margin-right: 0.375rem;
    }
}

/* Property Subheader */
.property-subheader {
    color: #e9ecef;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0.5rem 0 0 0;
    letter-spacing: -0.25px;
    text-align: left;
    display: none; /* Hidden by default, shown after AI analysis */
}

.property-subheader.visible {
    display: block;
}

/* Financial Analysis Header */
.financial-analysis-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.financial-analysis-icon {
    color: #28a745;
    font-size: 1.5rem;
}

.financial-analysis-title {
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.75rem;
    margin: 0;
    letter-spacing: -0.5px;
}

/* Modern Financial Table */
.financial-table-modern {
    font-size: 0.9rem;
    margin: 0 auto;
    width: 100%;
    max-width: 1200px;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Table Headers */
.financial-table-modern thead tr {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.financial-table-modern th {
    color: white;
    font-weight: 600;
    text-align: center;
    padding: 12px 16px;
    border: none;
    font-size: 0.85rem;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-header {
    text-align: left !important;
    background: #182454 !important;
    width: 200px;
}

.actuals-header {
    background: #182454 !important;
    color: white !important;
    width: 140px;
}

.adjustments-header {
    background: #182454 !important;
    color: white !important;
    width: 140px;
}

.impact-header {
    background: #182454 !important;
    color: white !important;
    width: 140px;
}

.projected-header {
    background: #182454 !important;
    color: white !important;
    width: 140px;
}

.difference-header {
    background: #182454 !important;
    color: white !important;
    width: 140px;
}

.percentage-header {
    background: #182454 !important;
    color: white !important;
    width: 60px;
}

/* Table Body */
.financial-table-modern tbody tr {
    transition: all 0.2s ease;
}

.financial-table-modern tbody tr:hover {
    background-color: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.financial-table-modern td {
    padding: 12px 16px;
    border: 1px solid #e9ecef;
    vertical-align: middle;
    font-size: 0.85rem;
}

/* Cell Styling */
.metric-cell {
    background-color: #f8f9fa;
    font-weight: 600;
    text-align: left;
    color: #2c3e50;
    border-left: 4px solid #34495e;
}

.actuals-cell {
    background-color: #f0f8ff;
    text-align: right;
    font-weight: 600;
    color: #2c3e50;
}

.adjustments-cell {
    background-color: #f0f8ff;
    text-align: center;
    padding: 8px 12px;
}

.impact-cell {
    background-color: #e3f2fd;
    text-align: right;
    font-weight: 600;
    color: #1976d2;
}

.projected-cell {
    background-color: #f1f8e9;
    text-align: right;
    font-weight: 600;
    color: #2e7d32;
}

.difference-cell {
    background-color: #f1f8e9;
    text-align: right;
    font-weight: 600;
    color: #2e7d32;
}

/* Legacy class mappings for compatibility */
.change-valuation-cell {
    background-color: #e3f2fd;
    text-align: right;
    font-weight: 600;
    color: #1976d2;
}

.row-header {
    background-color: #f8f9fa;
    font-weight: 600;
    text-align: left !important;
    color: #2c3e50;
    border-left: 4px solid #34495e;
}

.percentage-cell {
    background-color: #f8f9fa;
    text-align: center;
    font-weight: 500;
    color: #6c757d;
}

.adjustment-cell {
    background-color: #f0f8ff;
    text-align: center;
    padding: 8px 12px;
}

.calculated-row {
    background-color: #f8f9fa;
}

.highlighted {
    border-left: 4px solid #007bff;
}

/* Highlighted Rows */
.highlighted-row {
    background: linear-gradient(90deg, #f8f9fa 0%, #e9ecef 100%) !important;
}

.highlighted-row .metric-cell {
    background: linear-gradient(90deg, #34495e 0%, #2c3e50 100%) !important;
    color: white !important;
    border-left: 4px solid #3498db;
}

.highlighted-row .actuals-cell {
    background: linear-gradient(90deg, #e3f2fd 0%, #bbdefb 100%) !important;
}

.highlighted-row .impact-cell {
    background: linear-gradient(90deg, #e3f2fd 0%, #90caf9 100%) !important;
}

.highlighted-row .projected-cell {
    background: linear-gradient(90deg, #e8f5e8 0%, #c8e6c8 100%) !important;
}

.highlighted-row .difference-cell {
    background: linear-gradient(90deg, #e8f5e8 0%, #c8e6c8 100%) !important;
}

/* EGI and NOI Row Styling - Light Blue */
tr[data-row="egi"] td,
tr[data-row="noi"] td {
    background: #DBE9FE !important;
}

tr[data-row="egi"].highlighted-row td,
tr[data-row="noi"].highlighted-row td {
    background: #DBE9FE !important;
}

tr[data-row="egi"] .metric-cell,
tr[data-row="noi"] .metric-cell,
tr[data-row="egi"].highlighted-row .metric-cell,
tr[data-row="noi"].highlighted-row .metric-cell {
    background: #DBE9FE !important;
    border-left: 4px solid #3b82f6 !important;
    color: #000000 !important;
}

tr[data-row="egi"] .actuals-cell,
tr[data-row="noi"] .actuals-cell,
tr[data-row="egi"].highlighted-row .actuals-cell,
tr[data-row="noi"].highlighted-row .actuals-cell {
    background: #DBE9FE !important;
}

tr[data-row="egi"] .adjustments-cell,
tr[data-row="noi"] .adjustments-cell,
tr[data-row="egi"].highlighted-row .adjustments-cell,
tr[data-row="noi"].highlighted-row .adjustments-cell {
    background: #DBE9FE !important;
}

tr[data-row="egi"] .impact-cell,
tr[data-row="noi"] .impact-cell,
tr[data-row="egi"].highlighted-row .impact-cell,
tr[data-row="noi"].highlighted-row .impact-cell {
    background: #DBE9FE !important;
}

tr[data-row="egi"] .projected-cell,
tr[data-row="noi"] .projected-cell,
tr[data-row="egi"].highlighted-row .projected-cell,
tr[data-row="noi"].highlighted-row .projected-cell {
    background: #DBE9FE !important;
}

tr[data-row="egi"] .difference-cell,
tr[data-row="noi"] .difference-cell,
tr[data-row="egi"].highlighted-row .difference-cell,
tr[data-row="noi"].highlighted-row .difference-cell {
    background: #DBE9FE !important;
}

tr[data-row="egi"] .percentage-cell,
tr[data-row="noi"] .percentage-cell,
tr[data-row="egi"].highlighted-row .percentage-cell,
tr[data-row="noi"].highlighted-row .percentage-cell {
    background: #DBE9FE !important;
}

tr[data-row="egi"] .change-valuation-cell,
tr[data-row="noi"] .change-valuation-cell,
tr[data-row="egi"].highlighted-row .change-valuation-cell,
tr[data-row="noi"].highlighted-row .change-valuation-cell {
    background: #DBE9FE !important;
}

/* Valuation Row Styling - Medium Blue */
tr[data-row="valuation"] td {
    background: #92C5FD !important;
}

tr[data-row="valuation"].highlighted-row td {
    background: #92C5FD !important;
}

tr[data-row="valuation"] .metric-cell,
tr[data-row="valuation"].highlighted-row .metric-cell {
    background: #92C5FD !important;
    border-left: 4px solid #1d4ed8 !important;
    color: #000000 !important;
}

tr[data-row="valuation"] .actuals-cell,
tr[data-row="valuation"].highlighted-row .actuals-cell {
    background: #92C5FD !important;
}

tr[data-row="valuation"] .adjustments-cell,
tr[data-row="valuation"].highlighted-row .adjustments-cell {
    background: #92C5FD !important;
}

tr[data-row="valuation"] .impact-cell,
tr[data-row="valuation"].highlighted-row .impact-cell {
    background: #92C5FD !important;
}

tr[data-row="valuation"] .projected-cell,
tr[data-row="valuation"].highlighted-row .projected-cell {
    background: #92C5FD !important;
}

tr[data-row="valuation"] .difference-cell,
tr[data-row="valuation"].highlighted-row .difference-cell {
    background: #92C5FD !important;
}

tr[data-row="valuation"] .percentage-cell,
tr[data-row="valuation"].highlighted-row .percentage-cell {
    background: #92C5FD !important;
}

tr[data-row="valuation"] .change-valuation-cell,
tr[data-row="valuation"].highlighted-row .change-valuation-cell {
    background: #92C5FD !important;
}

/* Value Display Styling */
.actuals-value, .projected-value {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
}

.actuals-percentage, .projected-percentage {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6c757d;
    margin-top: 2px;
}

/* Positive/Negative Values */
.difference-cell.positive {
    color: #27ae60 !important;
    background: linear-gradient(90deg, #d4edda 0%, #c3e6cb 100%) !important;
}

.difference-cell.negative {
    color: #e74c3c !important;
    background: linear-gradient(90deg, #f8d7da 0%, #f5c6cb 100%) !important;
}

.impact-cell.positive {
    color: #27ae60 !important;
}

.impact-cell.negative {
    color: #e74c3c !important;
}

/* Input Fields */
.currency-input {
    border: none;
    background: transparent;
    text-align: right;
    font-weight: 600;
    padding: 4px 8px;
    font-size: 0.9rem;
}

.currency-input:focus {
    background-color: white;
    border: 2px solid #007bff;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Whisper Price Input */
.whisper-price-input {
    border: none;
    background: transparent;
    text-align: center;
    font-weight: bold;
    font-size: 1rem;
    color: #212529;
    padding: 4px 8px;
    width: 160px;
    max-width: 160px;
}

.whisper-price-input:focus {
    background-color: white;
    border: 2px solid #007bff;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Units Input */
.units-input {
    border: none;
    background: transparent;
    text-align: center;
    font-weight: bold;
    font-size: 1rem;
    color: #212529;
    padding: 4px 8px;
    width: 180px;
    max-width: 180px;
}

.units-input:focus {
    background-color: white;
    border: 2px solid #007bff;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* In-Place Rent Input */
.in-place-rent-input {
    border: none;
    background: transparent;
    text-align: center;
    font-weight: bold;
    font-size: 1rem;
    color: #212529;
    padding: 4px 8px;
}

.in-place-rent-input:focus {
    background-color: white;
    border: 2px solid #007bff;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Calculated Field Styling */
.calculated-field {
    background-color: #e9ecef !important;
    color: #6c757d;
    font-style: italic;
    text-align: right;
}

/* Required Input Field Styling */
.required-input::placeholder {
    color: #007bff !important;
    font-weight: 500;
}

.required-input:placeholder-shown {
    background-color: #f0f8ff;
    border: 1px solid #007bff;
}

.required-input:not(:placeholder-shown) {
    background-color: transparent;
    border: 1px solid #dee2e6;
}

.required-input:focus {
    background-color: white !important;
    border: 2px solid #007bff !important;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
}

/* T12 Dependent Field Styling */
.t12-dependent:disabled {
    background-color: #e9ecef !important;
    color: #6c757d !important;
    border: 1px solid #dee2e6 !important;
    cursor: not-allowed;
    opacity: 0.7;
}

.t12-dependent:disabled::placeholder {
    color: #6c757d !important;
    font-weight: 400;
    font-style: italic;
}

/* When T12 is uploaded and fields are enabled */
.t12-dependent:not(:disabled) {
    background-color: #f0f8ff;
    border: 1px solid #007bff;
}

.t12-dependent:not(:disabled)::placeholder {
    color: #007bff !important;
    font-weight: 500;
}

.t12-dependent:not(:disabled):focus {
    background-color: white !important;
    border: 2px solid #007bff !important;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
}

/* Modern Slider Styles */
.slider-container {
    width: 100%;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.slider {
    width: 100%;
    height: 8px;
    margin: 0;
}

.slider-value {
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #2c3e50;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    min-width: 60px;
}

/* Slider with Arrows */
.slider-with-arrows {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    position: relative;
}

.slider-arrow {
    background: none;
    border: none;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    color: #6c757d;
    padding: 0;
    flex-shrink: 0;
    border-radius: 2px;
}

.slider-arrow:hover {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
    transform: scale(1.1);
}

.slider-arrow:active {
    background: rgba(0, 123, 255, 0.2);
    transform: scale(0.9);
}

.slider-arrow:focus {
    outline: 1px solid #007bff;
    outline-offset: 1px;
}

.slider-arrow i {
    font-size: 0.6rem;
}

.slider-with-arrows .slider {
    flex: 1;
    margin: 0 -20px;
}

/* Modern noUiSlider customization */
.noUi-target {
    background: #e9ecef;
    border-radius: 6px;
    border: none;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
    height: 8px;
}

.noUi-base {
    height: 8px;
    border-radius: 6px;
}

.noUi-connect {
    background: linear-gradient(90deg, #4a90e2 0%, #357abd 100%);
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.noUi-handle {
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    width: 20px;
    height: 20px;
    right: -10px;
    top: -6px;
    outline: none;
    transition: all 0.2s ease;
}

.noUi-handle:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

.noUi-handle:active {
    transform: scale(1.05);
}

.noUi-handle:before,
.noUi-handle:after {
    display: none;
}

.noUi-horizontal .noUi-handle {
    width: 20px;
    height: 20px;
    right: -10px;
    top: -6px;
}

/* Remove default handle styling */
.noUi-handle:before,
.noUi-handle:after {
    content: none;
}

/* Focus styles for accessibility */
.noUi-handle:focus {
    outline: 2px solid #4a90e2;
    outline-offset: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .financial-table {
        font-size: 0.8rem;
    }
    
    .summary-item {
        margin-bottom: 10px;
    }
    
    .slider-container {
        padding: 5px 0;
    }
    
    .currency-input {
        font-size: 0.8rem;
    }
    
    .in-place-rent-input {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .financial-table th,
    .financial-table td {
        padding: 6px 4px;
    }
    
    .row-header {
        min-width: 150px;
        font-size: 0.8rem;
    }
    
    .in-place-rent-input {
        font-size: 0.8rem;
    }
}

/* Export buttons */
.btn {
    border-radius: 4px;
    font-weight: 600;
    padding: 10px 20px;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

/* Card styling */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 8px;
    background-color: #182454;
}

.card-body {
    padding: 1rem;
    background-color: #182454;
}

/* Top Section Layout */
.top-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Upload and Actions Row */
.upload-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
}

.upload-section {
    flex: 0 0 auto;
    max-width: 400px;
}

.status-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.action-buttons {
    flex: 0 0 auto;
    display: flex;
    gap: 8px;
}

/* Horizontal Upload Zone */
.upload-zone-horizontal {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 12px 16px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
}

.upload-zone-horizontal:hover {
    border-color: #007bff;
    background-color: #f8f9ff;
}

.upload-zone-horizontal.dragover {
    border-color: #007bff;
    background-color: #f8f9ff;
    transform: scale(1.01);
}

.upload-icon-horizontal {
    font-size: 1.5rem;
    color: #6c757d;
    transition: color 0.3s ease;
}

.upload-zone-horizontal:hover .upload-icon-horizontal {
    color: #007bff;
}

.upload-text {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
}

.status-horizontal {
    font-size: 0.85rem;
    color: #6c757d;
    padding: 4px 8px;
    border-radius: 4px;
    background-color: #f8f9fa;
}

/* Inline Status Indicator */
.status-horizontal-inline {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 8px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.status-horizontal-inline.status-idle {
    background-color: #e9ecef;
    color: #6c757d;
    border-color: #dee2e6;
}

.status-horizontal-inline.status-uploading {
    background-color: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

.status-horizontal-inline.status-processing {
    background-color: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
}

.status-horizontal-inline.status-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.status-horizontal-inline.status-error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.status-horizontal-inline i {
    font-size: 1rem;
}

/* KPI Cards Row */
.kpi-cards-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.kpi-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 16px;
}

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

.kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #10B981;
    flex-shrink: 0;
    background: transparent;
    border: 2px solid #10B981;
}

.kpi-card:nth-child(1) .kpi-icon,
.kpi-card:nth-child(2) .kpi-icon,
.kpi-card:nth-child(3) .kpi-icon,
.kpi-card:nth-child(4) .kpi-icon {
    color: #10B981;
    background: transparent;
    border: 2px solid #10B981;
}

.kpi-content {
    flex: 1;
    min-width: 0;
}

.kpi-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 8px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kpi-input {
    border: none;
    background: transparent;
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    padding: 0;
    width: 100%;
    outline: none;
    text-align: right;
}

.kpi-input:focus {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 4px 8px;
    border: 2px solid #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.kpi-input::placeholder {
    color: #adb5bd;
    font-weight: 600;
}

/* Ensure KPI inputs inherit currency input behavior */
.kpi-input.currency-input {
    text-align: right;
}

.kpi-input.units-input {
    text-align: center;
}

.kpi-input.whisper-price-input {
    text-align: center;
}

.kpi-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    transition: all 0.3s ease;
}

/* KPI Value States */
.kpi-placeholder {
    color: #adb5bd !important;
    font-style: italic;
}

.kpi-positive {
    color: #28a745 !important;
}

.kpi-negative {
    color: #dc3545 !important;
}

/* Financial Table Section */
.financial-table-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Table responsive wrapper */
.table-responsive {
    border-radius: 8px;
    overflow: hidden;
    margin: 0 auto;
}

/* Expand table width */
.financial-table-modern {
    max-width: 1200px;
    width: 100%;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .kpi-cards-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .upload-actions-row {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .upload-section {
        max-width: none;
    }
    
    .action-buttons {
        justify-content: center;
    }
    
    .kpi-cards-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .kpi-card {
        padding: 16px;
        gap: 12px;
    }
    
    .kpi-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .kpi-input,
    .kpi-value {
        font-size: 1.1rem;
    }
    
    .top-section {
        padding: 16px;
    }
    
    .financial-table-section {
        padding: 16px;
    }
}

@media (max-width: 576px) {
    .upload-zone-horizontal {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        padding: 16px;
    }
    
    .upload-text {
        font-size: 0.85rem;
    }
    
    .kpi-card {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }
    
    .kpi-content {
        width: 100%;
    }
}

/* Accessibility improvements */
.currency-input[aria-label] {
    /* Styles for inputs with proper labels */
}

/* Animation for value changes */
.value-changed {
    animation: highlight 0.3s ease-in-out;
}

@keyframes highlight {
    0% { background-color: #fff3cd; }
    50% { background-color: #ffeaa7; }
    100% { background-color: inherit; }
}

/* Toast notification animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* T12 Upload Section Styles */
.upload-zone {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.upload-zone:hover {
    border-color: #007bff;
    background-color: #e3f2fd;
}

.upload-zone.dragover {
    border-color: #007bff;
    background-color: #e3f2fd;
    transform: scale(1.02);
}

.upload-content {
    pointer-events: none;
}

.upload-icon {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 1rem;
    display: block;
}

.upload-zone:hover .upload-icon {
    color: #007bff;
}

.upload-zone h5 {
    color: #495057;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.upload-zone p {
    margin-bottom: 0.5rem;
}

.upload-zone .btn {
    pointer-events: all;
    margin-top: 1rem;
}

/* Upload Status Styles */
.upload-status {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    height: fit-content;
}

.upload-status h6 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 1rem;
}

.status-idle {
    color: #6c757d;
    padding: 10px;
    border-radius: 4px;
    background-color: #e9ecef;
}

.status-uploading {
    color: #0c5460;
    padding: 10px;
    border-radius: 4px;
    background-color: #d1ecf1;
}

.status-processing {
    color: #856404;
    padding: 10px;
    border-radius: 4px;
    background-color: #fff3cd;
}

.status-success {
    color: #155724;
    padding: 10px;
    border-radius: 4px;
    background-color: #d4edda;
}

.status-error {
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    background-color: #f8d7da;
}

.status-idle i,
.status-uploading i,
.status-processing i,
.status-success i,
.status-error i {
    margin-right: 8px;
}

/* Progress Bar Styles */
.progress {
    height: 8px;
    border-radius: 4px;
    background-color: #e9ecef;
}

.progress-bar {
    background-color: #007bff;
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* AI Status Styles */
#aiStatus {
    border-top: 1px solid #dee2e6;
    padding-top: 1rem;
}

#aiStatus h6 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.ai-status-content {
    color: #856404;
    padding: 10px;
    border-radius: 4px;
    background-color: #fff3cd;
    font-size: 0.9rem;
}

.ai-status-content i {
    margin-right: 8px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* File Info Display */
.file-info {
    background-color: #e9ecef;
    border-radius: 4px;
    padding: 10px;
    margin-top: 10px;
    font-size: 0.9rem;
}

.file-info .file-name {
    font-weight: 600;
    color: #495057;
}

.file-info .file-size {
    color: #6c757d;
    font-size: 0.8rem;
}

/* Extracted Values Display */
.extracted-values {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    padding: 15px;
    margin-top: 15px;
}

.extracted-values h6 {
    color: #155724;
    font-weight: 600;
    margin-bottom: 10px;
}

.extracted-values .value-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.extracted-values .value-label {
    color: #495057;
    font-weight: 500;
}

.extracted-values .value-amount {
    color: #155724;
    font-weight: 600;
}

/* Responsive adjustments for upload section */
@media (max-width: 768px) {
    .upload-zone {
        padding: 30px 15px;
    }
    
    .upload-icon {
        font-size: 2.5rem;
    }
    
    .upload-status {
        margin-top: 20px;
    }
    
    /* Fixed action buttons responsive */
    .fixed-action-buttons {
        bottom: 10px;
        right: 10px;
        padding: 0.5rem;
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .fixed-action-buttons .btn {
        font-size: 0.75rem;
        padding: 0.375rem 0.5rem;
    }
    
    /* Property summary responsive */
    .property-summary-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .summary-item {
        padding: 8px;
        margin: 1px;
    }
    
    .summary-item label {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .upload-zone {
        padding: 20px 10px;
    }
    
    .upload-icon {
        font-size: 2rem;
    }
    
    .upload-zone h5 {
        font-size: 1.1rem;
    }
    
    .upload-zone p {
        font-size: 0.9rem;
    }
    
    /* Compact layout for mobile */
    .container-fluid {
        padding: 0.5rem;
    }
    
    .compact-body {
        padding: 0.75rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .financial-table {
        font-size: 0.75rem;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    /* Fixed action buttons mobile */
    .fixed-action-buttons {
        bottom: 5px;
        right: 5px;
        padding: 0.375rem;
    }
    
    .fixed-action-buttons .btn {
        font-size: 0.7rem;
        padding: 0.25rem 0.375rem;
    }
}

/* Step Headers */
.step-header {
    color: #495057;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Compact Upload Zone */
.upload-zone-compact {
    border: 2px dashed #dee2e6;
    border-radius: 6px;
    padding: 10px 15px;
    text-align: center;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    height: fit-content;
}

.upload-zone-compact:hover {
    border-color: #007bff;
    background-color: #e3f2fd;
}

.upload-zone-compact.dragover {
    border-color: #007bff;
    background-color: #e3f2fd;
    transform: scale(1.02);
}

.upload-icon-small {
    font-size: 2rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
    display: block;
}

.upload-zone-compact:hover .upload-icon-small {
    color: #007bff;
}

.upload-zone-compact h6 {
    color: #495057;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
}

.upload-zone-compact p {
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.upload-zone-compact .btn {
    pointer-events: all;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    padding: 0.375rem 0.75rem;
}

/* Compact Upload Status */
.upload-status-compact {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    font-size: 0.85rem;
}

.upload-status-compact .status-idle,
.upload-status-compact .status-uploading,
.upload-status-compact .status-processing,
.upload-status-compact .status-success,
.upload-status-compact .status-error {
    padding: 8px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.upload-status-compact .ai-status-content {
    padding: 8px;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* Compact Property Summary Grid */
.property-summary-grid-compact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
}

/* Side-by-side Property Summary Grid */
.property-summary-grid-side-by-side {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    align-items: stretch;
}

.summary-item-compact {
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background-color: #e8f5e8;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.summary-item-compact label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #495057;
    display: block;
    margin-bottom: 5px;
    text-align: center;
}

.summary-item-compact .summary-value {
    font-size: 1rem;
    font-weight: bold;
    color: #212529;
    display: flex;
    justify-content: center;
    width: 100%;
}

.summary-item-compact .units-input,
.summary-item-compact .whisper-price-input {
    width: 100%;
    max-width: 200px;
}

/* Responsive adjustments for compact layout */
@media (max-width: 768px) {
    .upload-zone-compact {
        padding: 15px 10px;
    }
    
    .upload-icon-small {
        font-size: 1.5rem;
    }
    
    .upload-zone-compact h6 {
        font-size: 0.9rem;
    }
    
    .upload-zone-compact p {
        font-size: 0.8rem;
    }
    
    .upload-status-compact {
        padding: 10px;
        margin-top: 15px;
    }
    
    .step-header {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .property-summary-grid-compact,
    .property-summary-grid-side-by-side {
        gap: 0.5rem;
        flex-direction: column;
    }
    
    .summary-item-compact {
        padding: 8px;
    }
    
    .summary-item-compact label {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .upload-zone-compact {
        padding: 10px 8px;
    }
    
    .upload-icon-small {
        font-size: 1.25rem;
    }
    
    .upload-zone-compact h6 {
        font-size: 0.85rem;
    }
    
    .upload-zone-compact .btn {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
    
    .step-header {
        font-size: 0.95rem;
    }
}

/* Remove height constraints to allow natural scrolling */
.container-fluid {
    min-height: 100vh;
}

/* Side-by-side layout adjustments */
.col-lg-4 {
    padding-right: 1rem;
}

.col-lg-8 {
    padding-left: 0.5rem;
}

/* Ensure table maintains its dimensions */
.financial-table {
    width: 100%;
    min-width: 800px;
}

/* Left panel styling */
.col-lg-4 .card {
    height: fit-content;
    position: sticky;
    top: 1rem;
}

/* Responsive adjustments for side-by-side layout */
@media (max-width: 991px) {
    .col-lg-4,
    .col-lg-8 {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .col-lg-4 {
        margin-bottom: 1rem;
    }
    
    .col-lg-4 .card {
        position: static;
    }
}

/* Compact property summary for vertical layout */
.property-summary-grid-compact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.property-summary-grid-compact .summary-item-compact {
    width: 100%;
}

/* Tooltip styles for extracted values */
.extracted-values-tooltip {
    position: fixed;
    background-color: #2c3e50;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    display: none;
    max-width: 300px;
    font-size: 0.85rem;
    border: 1px solid #34495e;
}

.extracted-values-tooltip h6 {
    color: #ecf0f1;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
    border-bottom: 1px solid #34495e;
    padding-bottom: 4px;
}

.tooltip-value-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    font-size: 0.8rem;
}

.tooltip-value-label {
    color: #bdc3c7;
    font-weight: 500;
    margin-right: 8px;
}

.tooltip-value-amount {
    color: #2ecc71;
    font-weight: 600;
}

/* Make success status hoverable */
.status-success {
    cursor: help;
    transition: background-color 0.2s ease;
}

.status-success:hover {
    background-color: #c3e6cb !important;
}

/* Charts Section Styles */
.charts-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    margin-bottom: 2rem;
}

.chart-container {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f3f4;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.chart-header {
    margin-bottom: 16px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 12px;
}

.chart-title {
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
}

.chart-title i {
    color: #10B981;
}

.chart-subtitle {
    color: #6c757d;
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0;
    transition: color 0.3s ease;
}

.chart-wrapper {
    flex: 1;
    position: relative;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-wrapper canvas {
    max-height: 100%;
    width: 100% !important;
    height: auto !important;
}

/* Chart Status Indicators */
.chart-placeholder .chart-subtitle {
    color: #ffc107;
    font-style: italic;
}

.chart-real-data .chart-subtitle {
    color: #28a745;
    font-weight: 600;
}

.chart-placeholder {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    border-color: #ffeaa7;
}

.chart-real-data {
    background: linear-gradient(135deg, #f0fff4 0%, #e8f5e8 100%);
    border-color: #c3e6cb;
}

/* Responsive Chart Adjustments */
@media (max-width: 1200px) {
    .chart-wrapper {
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    .charts-section {
        padding: 16px;
    }
    
    .chart-container {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .chart-wrapper {
        min-height: 200px;
    }
    
    .chart-title {
        font-size: 1rem;
    }
    
    .chart-subtitle {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .charts-section {
        padding: 12px;
    }
    
    .chart-container {
        padding: 12px;
    }
    
    .chart-wrapper {
        min-height: 180px;
    }
    
    .chart-title {
        font-size: 0.95rem;
    }
}

/* Chart Loading State */
.chart-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    color: #6c757d;
    font-style: italic;
}

.chart-loading::before {
    content: "Loading chart...";
}

/* Chart Error State */
.chart-error {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    color: #dc3545;
    font-style: italic;
}

.chart-error::before {
    content: "Error loading chart";
}

/* CTA Sign In Modal Styles */
.cta-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(24, 36, 84, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-modal-overlay.show {
    opacity: 1;
}

.cta-modal-container {
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}
.cta-form-modal-container {
    max-width: 700px;
    width: 90%;
    max-height: 115vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.cta-modal-overlay.show .cta-modal-container .cta-form-modal-container {
    transform: scale(1) translateY(0);
}

.cta-modal-content {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.cta-modal-header {
    background: linear-gradient(135deg, #182454 0%, #2c3e50 100%);
    color: white;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.cta-modal-icon {
    font-size: 1.5rem;
    color: #10B981;
}

.cta-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    flex: 1;
}

.cta-modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    position: absolute;
    top: 16px;
    right: 16px;
}

.cta-modal-close:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.cta-modal-body {
    padding: 24px;
}

.cta-modal-description {
    font-size: 1rem;
    color: #495057;
    margin-bottom: 20px;
    line-height: 1.5;
}

.cta-modal-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.cta-modal-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f3f4;
    font-size: 0.95rem;
    color: #2c3e50;
}

.cta-modal-features li:last-child {
    border-bottom: none;
}

.cta-modal-features li i {
    color: #10B981;
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

.cta-modal-footer {
    padding: 0 24px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.cta-sign-in-btn {
    background-color: #007bff;
    border-color: #007bff;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.cta-sign-in-btn:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.cta-maybe-later-btn {
    border-color: #6c757d;
    color: #6c757d;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.cta-maybe-later-btn:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
    transform: translateY(-1px);
}

.cta-modal-shortcut-hint {
    padding: 16px 24px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.cta-modal-shortcut-hint kbd {
    background: #e9ecef;
    border: 1px solid #adb5bd;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.85rem;
    color: #495057;
    font-family: 'Courier New', monospace;
}

/* Responsive Design for CTA Modal */
@media (max-width: 768px) {
    .cta-modal-container {
        width: 95%;
        margin: 20px;
    }
    
    .cta-modal-header {
        padding: 20px;
    }
    
    .cta-modal-body {
        padding: 20px;
    }
    
    .cta-modal-footer {
        padding: 0 20px 20px 20px;
        flex-direction: column;
    }
    
    .cta-modal-footer .btn {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .cta-modal-footer .btn:last-child {
        margin-bottom: 0;
    }
    
    .cta-modal-title {
        font-size: 1.1rem;
    }
    
    .cta-modal-features li {
        font-size: 0.9rem;
        padding: 10px 0;
    }
}

@media (max-width: 576px) {
    .cta-modal-container {
        width: 100%;
        margin: 10px;
        max-height: 95vh;
    }
    
    .cta-modal-header {
        padding: 16px;
    }
    
    .cta-modal-body {
        padding: 16px;
    }
    
    .cta-modal-footer {
        padding: 0 16px 16px 16px;
    }
    
    .cta-modal-shortcut-hint {
        padding: 12px 16px;
    }
}

/* Animation for modal entrance */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes modalFadeOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
}

.cta-modal-overlay.fade-in {
    animation: modalFadeIn 0.3s ease forwards;
}

.cta-modal-overlay.fade-out {
    animation: modalFadeOut 0.3s ease forwards;
}

/* Focus styles for accessibility */
.cta-modal-close:focus,
.cta-sign-in-btn:focus,
.cta-maybe-later-btn:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Prevent body scroll when modal is open */
body.cta-modal-open {
    overflow: hidden;
}

/* ===== CTA SECTION STYLES ===== */

/* CTA Upper Section - Product Cards */
.cta-upper-section {
    margin-bottom: 2rem;
}

.cta-upper-section .row {
    gap: 1.5rem;
    margin: 0;
}

.cta-product-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #e9ecef;
}

.cta-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.cta-card-image {
    position: relative;
    overflow: hidden;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-card-blue .cta-card-image {
    background: linear-gradient(135deg, #182454 0%, #2c3e50 100%);
}

.cta-card-green .cta-card-image {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.cta-product-image {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cta-card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.cta-card-title {
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 8px;
    line-height: 1.3;
}

.cta-card-subtitle {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
    font-style: italic;
}

.cta-card-description {
    color: #495057;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 24px;
    flex: 1;
}

.cta-btn-purchase {
    background: linear-gradient(135deg, #182454 0%, #2c3e50 100%);
    border: none;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 28px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(24, 36, 84, 0.3);
}

.cta-btn-purchase:hover {
    background: linear-gradient(135deg, #1a2759 0%, #34495e 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(24, 36, 84, 0.4);
    color: white;
}

.cta-btn-download {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border: none;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 28px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.cta-btn-download:hover {
    background: linear-gradient(135deg, #0d9f73 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
    color: white;
}

/* CTA Pricing Section */
.cta-pricing-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    padding: 40px 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1rem;
}

.cta-pricing-header {
    margin-bottom: 40px;
}

.cta-pricing-title {
    color: #182454;
    font-weight: 800;
    font-size: 2.25rem;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.cta-pricing-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
}

/* Pricing Cards */
.cta-pricing-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cta-pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.cta-pricing-card-featured {
    border-color: #10B981;
    transform: scale(1.05);
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.2);
    position: relative;
}

.cta-pricing-card-featured:hover {
    transform: scale(1.05) translateY(-4px);
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.25);
}

.cta-pricing-card-featured::before {
    content: "MOST POPULAR";
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 20px;
    border-radius: 0 0 12px 12px;
    letter-spacing: 0.5px;
    z-index: 1;
}

.cta-pricing-header-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.cta-pricing-card-featured .cta-pricing-header-card {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    padding-top: 35px;
}

.cta-plan-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-pricing-card-featured .cta-plan-name {
    color: white;
}

.cta-pricing-price {
    padding: 24px 20px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
    background: #ffffff;
}

.cta-price-currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: #6c757d;
    vertical-align: top;
    margin-right: 4px;
}

.cta-price-amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: #2c3e50;
    line-height: 1;
}

.cta-pricing-card-featured .cta-price-amount {
    color: #10B981;
}

.cta-price-period {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
}

.cta-features-list {
    list-style: none;
    padding: 24px 20px;
    margin: 0;
    flex: 1;
    background: #ffffff;
}

.cta-features-list li {
    display: flex;
    align-items: center;
    padding: 8px 0;
    font-size: 0.9rem;
    color: #495057;
    border-bottom: 1px solid #f8f9fa;
}

.cta-features-list li:last-child {
    border-bottom: none;
}

.cta-features-list li i {
    color: #10B981;
    font-size: 0.8rem;
    margin-right: 12px;
    width: 16px;
    text-align: center;
}

.cta-plan-btn {
    margin: 0 20px 24px 20px;
    padding: 14px 24px;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
}

.cta-plan-btn-free {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.cta-plan-btn-free:hover {
    background: linear-gradient(135deg, #5a6268 0%, #343a40 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(108, 117, 125, 0.4);
    color: white;
}

.cta-plan-btn-pro {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.cta-plan-btn-pro:hover {
    background: linear-gradient(135deg, #0d9f73 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
    color: white;
}

.cta-plan-btn-team {
    background: linear-gradient(135deg, #182454 0%, #2c3e50 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(24, 36, 84, 0.3);
}

.cta-plan-btn-team:hover {
    background: linear-gradient(135deg, #1a2759 0%, #34495e 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(24, 36, 84, 0.4);
    color: white;
}

/* Responsive Design for CTA Section */
@media (max-width: 1200px) {
    .cta-pricing-card-featured {
        transform: none;
    }
    
    .cta-pricing-card-featured:hover {
        transform: translateY(-4px);
    }
}

@media (max-width: 992px) {
    .cta-pricing-title {
        font-size: 2rem;
    }
    
    .cta-card-title {
        font-size: 1.15rem;
    }
    
    .cta-price-amount {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .cta-pricing-section {
        padding: 32px 20px;
    }
    
    .cta-pricing-title {
        font-size: 1.75rem;
    }
    
    .cta-pricing-subtitle {
        font-size: 1rem;
    }
    
    .cta-card-content {
        padding: 20px;
    }
    
    .cta-card-title {
        font-size: 1.1rem;
    }
    
    .cta-card-description {
        font-size: 0.85rem;
    }
    
    .cta-btn-purchase,
    .cta-btn-download {
        font-size: 0.9rem;
        padding: 12px 24px;
    }
    
    .cta-price-amount {
        font-size: 2.5rem;
    }
    
    .cta-features-list {
        padding: 20px 16px;
    }
    
    .cta-features-list li {
        font-size: 0.85rem;
    }
    
    .cta-plan-btn {
        margin: 0 16px 20px 16px;
        font-size: 0.9rem;
        padding: 12px 20px;
    }
}

@media (max-width: 576px) {
    .cta-upper-section {
        margin-bottom: 2rem;
    }
    
    .cta-pricing-section {
        padding: 24px 16px;
    }
    
    .cta-pricing-title {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
    
    .cta-pricing-subtitle {
        font-size: 0.9rem;
    }
    
    .cta-card-image {
        height: 160px;
    }
    
    .cta-card-content {
        padding: 16px;
    }
    
    .cta-card-title {
        font-size: 1rem;
        margin-bottom: 6px;
    }
    
    .cta-card-subtitle {
        font-size: 0.8rem;
        margin-bottom: 12px;
    }
    
    .cta-card-description {
        font-size: 0.8rem;
        margin-bottom: 20px;
    }
    
    .cta-btn-purchase,
    .cta-btn-download {
        font-size: 0.85rem;
        padding: 10px 20px;
    }
    
    .cta-pricing-header-card {
        padding: 16px;
    }
    
    .cta-plan-name {
        font-size: 1rem;
    }
    
    .cta-pricing-price {
        padding: 20px 16px;
    }
    
    .cta-price-amount {
        font-size: 2.25rem;
    }
    
    .cta-price-currency {
        font-size: 1.25rem;
    }
    
    .cta-price-period {
        font-size: 0.8rem;
        margin-top: 6px;
    }
    
    .cta-features-list {
        padding: 16px 12px;
    }
    
    .cta-features-list li {
        font-size: 0.8rem;
        padding: 6px 0;
    }
    
    .cta-features-list li i {
        font-size: 0.7rem;
        margin-right: 10px;
        width: 14px;
    }
    
    .cta-plan-btn {
        margin: 0 12px 16px 12px;
        font-size: 0.85rem;
        padding: 10px 16px;
    }
    
    .cta-pricing-card-featured::before {
        font-size: 0.7rem;
        padding: 4px 16px;
    }
}

/* Animation for CTA section entrance */
@keyframes ctaFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-upper-section,
.cta-pricing-section {
    animation: ctaFadeInUp 0.6s ease-out;
}

.cta-pricing-section {
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

/* Focus styles for accessibility */
.cta-btn-purchase:focus,
.cta-btn-download:focus,
.cta-plan-btn:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Required Inputs Warning Styles */
.required-inputs-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 16px 0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
    display: none;
    animation: slideDown 0.3s ease-out;
}

.required-inputs-warning.show {
    display: block;
}

.required-inputs-warning-icon {
    color: #856404;
    font-size: 1.25rem;
    margin-right: 8px;
}

.required-inputs-warning-text {
    color: #856404;
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.required-inputs-warning-highlight {
    color: #dc3545;
    font-weight: 700;
}

/* Animation for warning appearance */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 100px;
        padding-top: 16px;
        padding-bottom: 16px;
    }
}

/* Responsive adjustments for warning */
@media (max-width: 768px) {
    .required-inputs-warning {
        padding: 12px 16px;
        margin: 12px 0;
    }
    
    .required-inputs-warning-text {
        font-size: 0.9rem;
    }
    
    .required-inputs-warning-icon {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .required-inputs-warning {
        padding: 10px 12px;
        margin: 10px 0;
    }
    
    .required-inputs-warning-text {
        font-size: 0.85rem;
        flex-direction: column;
        gap: 4px;
    }
    
    .required-inputs-warning-icon {
        font-size: 1rem;
        margin-right: 0;
        margin-bottom: 4px;
    }
}

/* ===== NEW CTA SECTION STYLES ===== */

/* Professional Plan Section ($99/month) */
.cta-professional-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    padding: 40px 32px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.cta-professional-content {
    padding-right: 2rem;
}

.cta-professional-subtitle {
    color: #6366f1;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-professional-title {
    color: #1f2937;
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.cta-professional-description {
    color: #6b7280;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.cta-professional-actions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cta-btn-trial {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border: none;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 32px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    width: fit-content;
}

.cta-btn-trial:hover {
    background: linear-gradient(135deg, #5b5bf6 0%, #4338ca 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
    color: white;
}

.cta-professional-features {
    display: flex;
    gap: 2rem;
}

.cta-feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-feature-item i {
    color: #10b981;
    font-size: 1rem;
}

.cta-feature-item span {
    color: #374151;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Professional Plan Card */
.cta-professional-card {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border-radius: 16px;
    padding: 32px;
    color: white;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cta-professional-price {
    text-align: center;
    margin-bottom: 1.5rem;
}

.cta-professional-price .cta-price-currency {
    font-size: 2rem;
    font-weight: 600;
    color: white;
    vertical-align: top;
    margin-right: 4px;
}

.cta-professional-price .cta-price-amount {
    font-size: 4rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.cta-professional-price .cta-price-period {
    font-size: 1.1rem;
    font-weight: 500;
    color: white;
    opacity: 0.9;
}

.cta-professional-plan-name {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
}

.cta-professional-plan-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
    margin-bottom: 2rem;
}

.cta-professional-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    flex: 1;
}

.cta-professional-features-list li {
    display: flex;
    align-items: center;
    padding: 8px 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-professional-features-list li:last-child {
    border-bottom: none;
}

.cta-professional-features-list li i {
    color: #10b981;
    font-size: 0.8rem;
    margin-right: 12px;
    width: 16px;
    text-align: center;
}

.cta-professional-btn {
    background: white;
    color: #6366f1;
    border: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 14px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cta-professional-btn:hover {
    background: #f8fafc;
    color: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* MFA Advanced Excel Model Section ($249/year) */
.cta-mfa-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    padding: 40px 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.cta-mfa-content {
    padding-right: 2rem;
}

.cta-mfa-subtitle {
    color: #6366f1;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-mfa-description {
    color: #6b7280;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.cta-mfa-image {
    text-align: center;
}

.cta-mfa-screenshot {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb;
}

/* MFA Card */
.cta-mfa-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cta-mfa-title {
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.cta-mfa-card-description {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
    margin-bottom: 2rem;
}

.cta-mfa-price {
    text-align: center;
    margin-bottom: 2rem;
}

.cta-mfa-price .cta-price-currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    vertical-align: top;
    margin-right: 4px;
}

.cta-mfa-price .cta-price-amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: #1f2937;
    line-height: 1;
}

.cta-mfa-price .cta-price-period {
    font-size: 1rem;
    font-weight: 500;
    color: #6b7280;
}

.cta-price-discount {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #10b981;
    margin-top: 8px;
}

.cta-mfa-btn {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border: none;
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 14px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    margin-bottom: 2rem;
}

.cta-mfa-btn:hover {
    background: linear-gradient(135deg, #5b5bf6 0%, #4338ca 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
    color: white;
}

.cta-mfa-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.cta-mfa-features-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 0.9rem;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
}

.cta-mfa-features-list li:last-child {
    border-bottom: none;
}

.cta-mfa-features-list li i.fa-check-circle {
    color: #6366f1;
    font-size: 1rem;
    margin-right: 12px;
    flex-shrink: 0;
}

.cta-mfa-features-list li span {
    flex: 1;
    font-weight: 500;
}

.cta-feature-info {
    color: #9ca3af;
    font-size: 0.8rem;
    margin-left: 8px;
    cursor: help;
    flex-shrink: 0;
}

.cta-feature-info:hover {
    color: #6b7280;
}

/* Responsive Design for New CTA Sections */
@media (max-width: 992px) {
    .cta-professional-content,
    .cta-mfa-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .cta-professional-title {
        font-size: 2rem;
    }
    
    .cta-professional-features {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .cta-professional-section,
    .cta-mfa-section {
        padding: 32px 24px;
    }
    
    .cta-professional-title {
        font-size: 1.75rem;
    }
    
    .cta-professional-description,
    .cta-mfa-description {
        font-size: 1rem;
    }
    
    .cta-professional-card,
    .cta-mfa-card {
        padding: 24px;
    }
    
    .cta-professional-price .cta-price-amount,
    .cta-mfa-price .cta-price-amount {
        font-size: 3rem;
    }
    
    .cta-professional-features {
        gap: 1rem;
        justify-content: center;
    }
    
    .cta-mfa-content {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .cta-professional-section,
    .cta-mfa-section {
        padding: 24px 16px;
    }
    
    .cta-professional-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .cta-professional-subtitle,
    .cta-mfa-subtitle {
        font-size: 0.9rem;
    }
    
    .cta-professional-description,
    .cta-mfa-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-professional-card,
    .cta-mfa-card {
        padding: 20px;
    }
    
    .cta-professional-price .cta-price-amount,
    .cta-mfa-price .cta-price-amount {
        font-size: 2.5rem;
    }
    
    .cta-professional-features {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }
    
    .cta-professional-plan-name,
    .cta-mfa-title {
        font-size: 1.25rem;
    }
    
    .cta-professional-features-list li,
    .cta-mfa-features-list li {
        font-size: 0.85rem;
        padding: 10px 0;
    }
    
    .cta-btn-trial,
    .cta-professional-btn,
    .cta-mfa-btn {
        font-size: 0.9rem;
        padding: 12px 20px;
        width: 100%;
        text-align: center;
    }
}

/* Animation for new CTA sections */
@keyframes ctaSlideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-professional-section,
.cta-mfa-section {
    animation: ctaSlideInUp 0.6s ease-out;
}

.cta-mfa-section {
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

/* Focus styles for accessibility */
.cta-btn-trial:focus,
.cta-professional-btn:focus,
.cta-mfa-btn:focus {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

/* API Platform Section */
.cta-api-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    padding: 40px 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    margin-bottom: 1rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.cta-api-content {
    padding-right: 2rem;
}

.cta-api-title {
    color: #6366f1;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.cta-api-description {
    color: #6b7280;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.cta-api-diagram {
    text-align: center;
    margin-bottom: 2rem;
}

.cta-api-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.cta-api-actions {
    text-align: left;
}

.cta-api-btn {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border: none;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 32px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    width: fit-content;
}

.cta-api-btn:hover {
    background: linear-gradient(135deg, #5b5bf6 0%, #4338ca 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
    color: white;
}

/* API Code Section */
.cta-api-code-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}

.cta-code-window {
    background: #2d3748;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    flex: 1;
}

.cta-code-header {
    background: #4a5568;
    padding: 12px 16px;
    display: flex;
    align-items: center;
}

.cta-code-dots {
    display: flex;
    gap: 6px;
}

.cta-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.cta-dot-red {
    background: #fc8181;
}

.cta-dot-yellow {
    background: #f6e05e;
}

.cta-dot-green {
    background: #68d391;
}

.cta-code-content {
    padding: 0;
    background: #2d3748;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-code-image {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Design for API Section */
@media (max-width: 992px) {
    .cta-api-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .cta-api-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .cta-api-section {
        padding: 32px 24px;
    }
    
    .cta-api-title {
        font-size: 1.4rem;
    }
    
    .cta-api-description {
        font-size: 1rem;
    }
    
    .cta-api-code-section {
        gap: 0.75rem;
    }
    
    .cta-code-content {
        min-height: 150px;
    }
}

@media (max-width: 576px) {
    .cta-api-section {
        padding: 24px 16px;
    }
    
    .cta-api-title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .cta-api-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-api-btn {
        font-size: 0.9rem;
        padding: 12px 24px;
        width: 100%;
        text-align: center;
    }
    
    .cta-code-header {
        padding: 8px 12px;
    }
    
    .cta-dot {
        width: 10px;
        height: 10px;
    }
    
    .cta-code-content {
        min-height: 120px;
    }
}

/* Animation for API section */
.cta-api-section {
    animation: ctaSlideInUp 0.6s ease-out;
    animation-delay: 0.4s;
    animation-fill-mode: both;
}

/* Focus styles for API button */
.cta-api-btn:focus {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

/* Copyright Footer Styles */
.copyright-footer {
    text-align: center;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1rem;
}

.copyright-footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
    font-weight: 400;
}

.copyright-footer a {
    color: #10B981;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.copyright-footer a:hover {
    color: #059669;
    text-decoration: underline;
}

/* Responsive adjustments for copyright footer */
@media (max-width: 768px) {
    .copyright-footer {
        padding: 1.5rem 0;
    }
    
    .copyright-footer p {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .copyright-footer {
        padding: 1rem 0;
    }
    
    .copyright-footer p {
        font-size: 0.8rem;
    }
}
