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

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

.ira-calc-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.ira-calc-subheader {
    text-align: center;
    padding: 0 0 25px 0;
}

.ira-calc-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.ira-calc-inputs-section,
.ira-calc-outputs-section {
    background: #f7fafc;
    border: 2px solid #f3f4f6;
    border-radius: 8px;
    padding: 24px;
    min-width: 0 !important;
    max-width: 100% !important;
}

.ira-calc-section-title {
    margin-bottom: 30px;
    color: #1a202c;
}

.ira-calc-input-group {
    margin-bottom: 40px;
}

.ira-calc-input-group label {
    display: block;
    margin-bottom: 8px;
    color: #4a5568;
}

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

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

.ira-calc-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%;
    transition: all 0.3s ease;
}

.ira-calc-value-display:focus {
    border-color: #667eea;
}

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

.ira-calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #010C7E;
    cursor: pointer;
    border: 2px solid #fff;
    margin-top: -7px;
}

.ira-calc-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #010C7E;
    cursor: pointer;
    border: 1px solid #ddd;
    box-sizing: border-box;
}

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

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

.ira-calc-slider::-moz-range-progress {
    background: #445ac0;
    height: 6px;
    border-radius: 3px;
}

.ira-calc-slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    color: #666;
    font-size: 0.875rem;
}

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

.ira-calc-currency,
.ira-calc-percent {
    position: absolute;
    z-index: 1;
    color: #718096;
}

.ira-calc-currency {
    left: 12px;
}

.ira-calc-percent {
    right: 12px;
}

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

.ira-calc-input-wrapper input:focus {
    outline: none;
    border-color: #667eea;
}

.ira-calc-input-wrapper input:disabled {
    background-color: #f7fafc;
    cursor: not-allowed;
}

.ira-calc-buttons-container {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.ira-calc-calculate-btn,
.ira-calc-reset-btn {
    flex: 1;
    width: 100%;
}

.ira-calc-intro-message {
    padding: 25px;
    background: white;
    border-radius: 10px;
    color: #4a5568;
    line-height: 1.6;
}

.ira-calc-results-message {
    font-size: 1rem;
    line-height: 1.4;
    color: #666;
    font-style: italic;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 20px;
    /* margin: 30px 0; */
    border-radius: 8px;
}


.ira-calc-output-group {
    margin-bottom: 20px;
    padding: 25px;
    background: linear-gradient(135deg, #010C7E 0%, #445ace 100%);
    border-radius: 8px;
    /* border-left: 4px solid #667eea; */
}

.ira-calc-output-group-secondary {
    background: linear-gradient(135deg, #445ace 0%, #667eea 100%);
}

.ira-calc-output-group h3, .ira-calc-value {
    color: #fff!important;
}   

.ira-calc-output-group h3 {
    font-size: 1.2rem;
    /* text-transform: uppercase; */
    font-weight: 400;
}

.ira-calc-output-group .ira-calc-value {
    font-size: 1.7rem;
    padding-top: 10px;
    font-weight: 600;
}

.ira-calc-results-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.ira-calc-download-btn,
.ira-calc-reset-btn {
    flex: 1;
}

/* Mobile and Tablet Styles */
@media (max-width: 968px) {
    .ira-calc-wrapper {
        grid-template-columns: 1fr;
    }

    .ira-calc-inputs-section {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }

    .ira-calc-inputs-section,
    .ira-calc-outputs-section {
        padding: 30px 20px;
    }

    .ira-calc-header {
        padding: 30px 20px;
    }

}

@media (max-width: 640px) {
    .ira-calc-wrapper-main {
        padding: 10px;
    }

    .ira-calc-slider-header {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .ira-calc-slider-header label {
        width: 100%;
        margin-bottom: 4px;
    }
    
    .ira-calc-value-display {
        width: 100%;
        max-width: none;
    }
}

