/* Flexi Economy Simulator Styles */
.fes-container {
    width: 100%;
    font-family: 'Anuphans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: transparent;
}

.fes-calculator {
    display: flex;
    flex-direction: column;
}

/* Input Section */
.fes-input-section {
    padding: 40px 32px;
    background: #f8fafc;
}

.fes-input-group {
    margin-bottom: 32px;
}

.fes-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1e293b;
    font-size: 16px;
}

.fes-label-text {
    font-size: 16px;
}

.fes-amount {
    font-size: 18px;
    font-weight: 700;
    color: #3b82f6;
}

.fes-description {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 16px;
    line-height: 1.5;
}

/* Input Field Styles */
.fes-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #1e293b;
    background: #ffffff;
    transition: all 0.2s ease;
    outline: none;
}

.fes-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.fes-input::placeholder {
    color: #94a3b8;
}

/* Period Buttons */
.fes-period-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 16px;
}

.fes-period-btn {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.fes-period-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.fes-period-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
}

/* Results Section */
.fes-results-section {
    padding: 40px 32px;
    background: #ffffff;
}

.fes-summary {
    margin-bottom: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.fes-summary-item {
    text-align: center;
}

.fes-summary-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 400;
    margin-bottom: 8px;
    display: block;
}

.fes-summary-value {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    display: block;
}

.fes-summary-value.fes-total {
    color: #3b82f6;
}

.fes-summary-value.fes-interest {
    color: #dc2626;
}

/* Chart Container */
.fes-chart-container {
    margin-bottom: 32px;
    height: 300px;
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Loading Indicator */
.fes-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.95);
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-weight: 500;
    color: #64748b;
}

.fes-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: fes-spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .fes-period-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .fes-input-section,
    .fes-results-section {
        padding: 24px 20px;
    }
}

@media (max-width: 480px) {
    .fes-container {
        margin: 0 16px;
        border-radius: 12px;
    }
    
    .fes-period-buttons {
        grid-template-columns: 1fr;
    }
    
    .fes-summary-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .fes-breakdown-table th,
    .fes-breakdown-table td {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* Elementor Compatibility */
.elementor-widget-container .fes-container {
    margin: 0;
}

/* Animation for smooth transitions */
.fes-summary-value,
.fes-amount {
    transition: all 0.3s ease;
}

/* Focus states for accessibility */
.fes-input:focus,
.fes-period-btn:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

