* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.c-matter--article .c-matter__body {
    max-width: 1000px;
    width: 100%;
}
@media (max-width: 1200px) {
    .c-matter--article .c-matter__body {
        max-width: 100%;
    }
}

.cic-body {
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    min-height: 100vh;
    padding: 20px;
}

.cic-container {
    max-width: 1200px;
    margin: 0 auto;
    /* background: white; */
    /* border-radius: 15px; */
    /* box-shadow: 0 10px 30px rgba(0,0,0,0.1); */
    padding: 30px;
}

.cic-header {
    text-align: center;
    margin-bottom: 30px;
}

.cic-header h1 {
    margin-bottom: 10px;
}

.cic-calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Tablet and mobile: single column layout */
@media (max-width: 1024px) {
    .cic-calculator-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.cic-input-section {
    background: #f7fafc;
    padding: 25px;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
}

.cic-input-section h2 {
    margin-bottom: 20px;
}

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

.cic-input-group label {
    display: block;
    margin-bottom: 8px;
}

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

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

.cic-value-display {
    padding: 8px 12px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    min-width: 100px;
    text-align: center;
    outline: none;
    width: 40%;
}

.cic-value-display:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.cic-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e5e7eb;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    margin: 15px 0;
    position: relative;
}

.cic-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #18b981;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border: 2px solid #fff;
    margin-top: -7px;
}

.cic-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #18b981;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border: 1px solid #ddd;
    box-sizing: border-box;
}

.cic-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: linear-gradient(to right, #ddd 0%, #e5e7eb var(--slider-progress, 0%), #e0e0e0 var(--slider-progress, 0%), #e0e0e0 100%);
    border-radius: 3px;
}

.cic-slider::-moz-range-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: #e0e0e0;
    border-radius: 3px;
}

.cic-slider::-moz-range-progress {
    background: #667eea;
    height: 6px;
    border-radius: 3px;
}

.cic-slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    color: #666;
}

.cic-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.cic-input-wrapper .cic-currency {
    position: absolute;
    left: 12px;
    z-index: 1;
}

.cic-input-wrapper .cic-unit {
    position: absolute;
    right: 50px;
    z-index: 1;
}

.cic-input-wrapper input {
    width: 100%;
    padding: 12px 25px 12px 30px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: white;
}

.cic-input-wrapper input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.cic-calculate-btn {
    width: 100%;
    /*padding: 15px;*/
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    /* border: none; */
    /*border-radius: 8px;*/
    cursor: pointer;
    /*transition: all 0.3s ease;*/
    /*margin-top: 10px;*/
}


.cic-results-section {
    background: #f7fafc;
    padding: 25px;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
}

.cic-results-section h2 {
    margin: 10px;
}

.cic-results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.cic-result-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #e2e8f0;
    transition: all 0.3s ease;
}

.cic-result-label, .cic-result-value {
    color: #666;
}

.cic-result-label {
    opacity: 0.8;
    margin-bottom: 5px;
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.cic-result-value {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    /* margin-bottom: 24px; */
}

.cic-result-card.cic-primary {
    background: #f8fafc;
    padding: 26px;
    /* border-radius: 12px; */
    text-align: center;
    /* margin-bottom: 24px; */
    border: 1px solid #e2e8f0;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-left-color: #5a67d8; */
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    border: 2px solid rgba(16, 185, 129, 0.3);
    padding: 26px;
    color:#fff;
    font-weight: bold;
}

.cic-result-card-2, .cic-result-card-3 {
    display: none;
}


.cic-quote {
    text-align: left;
    background: none;
    border: none;
    border-radius: 0;
    padding: 10px;
    font-style: italic;
    color: #666;
}
.cic-quote h3 {
    font-size: 1.2rem;
    line-height: 1.2;
}
.cic-result-label {
    opacity: 0.8;
    margin-bottom: 5px;
}

.cic-chart-section {
    margin: 25px 0;
}

.cic-chart-section h3 {
    margin-bottom: 15px;
}

.cic-chart-container {
    position: relative;
    height: 300px;
    background: white;
    border-radius: 10px;
    padding: 20px;
}

.cic-chart-overlay {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    pointer-events: none;
    /*background: rgba(255, 255, 255, 0.95);*/
    padding: 15px;
    /*border-radius: 8px;*/
    /*border: 2px solid #667eea;*/
    min-width: 120px;
    font-size: 14px;
    display: none;
}

.cic-chart-overlay .cic-future-value {
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 1.2em;
}

.cic-future-value-label {
    display: none;
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    /*padding: 5px 10px;*/
    /*border-radius: 17px;*/
    /*color: #fff;*/
    /*font-weight: bold;*/
}

.cic-action-buttons {
    margin-top: 25px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cic-start-over-btn,
.cic-download-btn {
    flex: 1;
    min-width: 150px;
}

.cic-start-over-btn:active,
.cic-download-btn:active {
    transform: translateY(0);
}

@media (max-width: 480px) {
    .cic-action-buttons {
        flex-direction: column;
    }
    
    .cic-start-over-btn,
    .cic-download-btn {
        width: 100%;
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .cic-calculator-grid {
        gap: 20px;
    }
    
    .cic-container {
        padding: 20px;
    }
    
    .cic-input-section,
    .cic-results-section {
        padding: 20px;
    }
    
    .cic-chart-container {
        height: 250px;
    }
    
    .cic-chart-overlay {
        top: 30%;
        /* font-size: 25px; */
    }
    
    .cic-value-display {
        min-width: 80px;
        width: 45%;
    }
}

/* Small mobile optimizations */
@media (max-width: 480px) {
    .cic-body {
        padding: 10px;
    }
    
    .cic-container {
        padding: 15px;
    }
    
    .cic-input-section,
    .cic-results-section {
        padding: 15px;
    }
    
    .cic-chart-container {
        height: 200px;
        padding: 15px;
    }
    
    .cic-chart-overlay {
        top: 50%;
    }
    
    .cic-slider-header {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .cic-slider-header label {
        width: 100%;
        margin-bottom: 4px;
    }
    
    .cic-value-display {
        width: 100%;
        max-width: none;
    }
    
    .cic-result-value {
        font-size: 2rem;
    }
}

.cic-disclosure {
    margin-top: 40px;
    padding: 20px;
    border-top: 2px solid #e2e8f0;
}

.cic-disclosure p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #64748b;
    text-align: left;
    margin: 0;
}

@media (max-width: 768px) {
    .cic-disclosure {
        margin-top: 30px;
        padding: 15px;
    }
    
    .cic-disclosure p {
        font-size: 0.8125rem;
    }
}

/* ADMIN OVERRIDES */
.c-matter--article .c-matter__body {
    max-width: 1000px;
    width: 100%;
}

@media (max-width: 1200px) {
    .c-matter--article .c-matter__body {
        max-width: 100%;
    }
}