/* --- Flight Fares Widget Styles --- */
.ffw-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.ffw-header h2 {
    font-size: 24px;
    color: #1a1a1a;
    margin-bottom: 8px;
    font-weight: 700;
}

.ffw-header p {
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 25px;
}

.ffw-header p strong {
    color: #28a745;
    font-size: 16px;
}

/* Tabs */
.ffw-tabs {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 30px;
}

.ffw-tab {
    background: none;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.ffw-tab.active {
    color: #0f4c81;
}

.ffw-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #0f4c81;
}

/* Grid Layout */
.ffw-grid {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.ffw-grid.active {
    display: grid;
}

/* Flight Card */
.ffw-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    background: #fff;
}

.ffw-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

.ffw-card-top {
    padding: 20px;
    background: #ffffff;
}

.ffw-route {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ffw-point {
    text-align: left;
    flex: 1;
}

.ffw-point.right {
    text-align: right;
}

.ffw-airline-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    margin-bottom: 5px;
}

.ffw-point-code {
    font-size: 20px;
    font-weight: 800;
    color: #111827;
}

.ffw-point-city {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 2px;
}

.ffw-point-date {
    font-size: 12px;
    color: #9ca3af;
}

/* Dashed Line Connector */
.ffw-line {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    position: relative;
    top: -10px;
}

.ffw-line-dot {
    width: 6px;
    height: 6px;
    background-color: #d1d5db;
    border-radius: 50%;
}

.ffw-line-dash {
    flex: 1;
    height: 1px;
    border-top: 2px dashed #d1d5db;
    margin: 0 5px;
}

/* Card Bottom */
.ffw-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-top: 1px solid #f3f4f6;
    background: #fafafa;
}

.ffw-price {
    font-size: 13px;
    color: #4b5563;
}

.ffw-price span {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
}

.ffw-book-btn {
    background-color: #003580;
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.ffw-book-btn:hover {
    background-color: #00224f;
}

/* Empty State */
.ffw-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #6b7280;
    font-style: italic;
}

/* --- Modal Styles --- */
.ffw-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}

.ffw-modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    width: 100%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    animation: ffwFadeIn 0.3s ease;
}

@keyframes ffwFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.ffw-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
}

.ffw-close:hover {
    color: #111827;
}

.ffw-modal-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 20px;
    color: #111827;
}

.ffw-route-info {
    font-size: 14px;
    color: #003580;
    font-weight: 600;
    margin-bottom: 20px;
    background: #f0f6ff;
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-block;
}

.ffw-form-group {
    margin-bottom: 15px;
}

.ffw-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
}

.ffw-form-group input,
.ffw-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
}

.ffw-form-group input:focus,
.ffw-form-group textarea:focus {
    outline: none;
    border-color: #003580;
    box-shadow: 0 0 0 3px rgba(0, 53, 128, 0.1);
}

.ffw-form-group textarea {
    resize: vertical;
    height: 80px;
}

.ffw-submit-btn {
    width: 100%;
    background-color: #003580;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.ffw-submit-btn:hover {
    background-color: #00224f;
}

.ffw-response {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

.ffw-response.success { color: #059669; }
.ffw-response.error { color: #dc2626; }

/* Responsive */
@media (max-width: 480px) {
    .ffw-grid {
        grid-template-columns: 1fr;
    }
    .ffw-point-code {
        font-size: 16px;
    }
    .ffw-book-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}