.fca-calculator {
    max-width: 600px;
    margin: 20px auto;
    padding: 25px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: #ffffff;
    direction: rtl;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.fca-calculator .fca-field {
    margin-bottom: 20px;
}

.fca-calculator label {
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.fca-calculator .select2-container {
    text-align: right;
}

.fca-calculator .select2-selection {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 12px;
    min-height: 42px;
    text-align: right;
}

.fca-calculator .select2-selection:focus {
    border-color: #0073e6;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,115,230,0.2);
}

.fca-calculator button {
    padding: 12px 30px;
    background: #0073e6;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.fca-calculator button:hover {
    background: #005bb5;
}

.fca-calculator button:active {
    transform: translateY(1px);
}

/* استایل نتایج */
.fca-result {
    margin-top: 25px;
    padding: 0;
}

.fca-success {
    padding: 20px;
    background: #f8fff8;
    border-radius: 8px;
    border-right: 4px solid #28a745;
}

.fca-error {
    padding: 15px;
    background: #fff8f8;
    border-radius: 8px;
    border-right: 4px solid #dc3545;
    color: #dc3545;
    font-weight: 500;
}

.fca-success h3 {
    margin: 0 0 15px 0;
    color: #28a745;
    font-size: 18px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

.route {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.from, .to {
    font-weight: 600;
    color: #333;
}

.arrow {
    margin: 0 15px;
    color: #0073e6;
    font-weight: bold;
}

.distance, .time, .type {
    margin: 10px 0;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.distance:last-child, .time:last-child, .type:last-child {
    border-bottom: none;
}

.km {
    color: #0073e6;
    font-weight: 600;
}

.miles {
    color: #6c757d;
    font-weight: 500;
}

/* استایل dropdown Select2 */
.airport-option {
    padding: 8px 5px;
    border-bottom: 1px solid #f0f0f0;
}

.airport-option:last-child {
    border-bottom: none;
}

.airport-name {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.airport-name strong {
    color: #333;
    font-size: 14px;
}

.iata-code {
    background: #0073e6;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
}

.airport-name-en {
    color: #666;
    font-size: 12px;
    display: block;
}

.airport-location {
    color: #888;
    font-size: 11px;
    margin-top: 2px;
}

/* responsive */
@media (max-width: 768px) {
    .fca-calculator {
        margin: 10px;
        padding: 15px;
    }
    
    .route {
        flex-direction: column;
        text-align: center;
    }
    
    .arrow {
        margin: 5px 0;
        transform: rotate(90deg);
    }
}

/* استایل Select2 برای راست‌چین */
.select2-container--default .select2-results__option {
    text-align: right;
    direction: rtl;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    text-align: right;
    direction: rtl;
}