/* --- Flight Search Wrapper --- */
.flight-search-container {
    max-width: 1100px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* --- Tabs --- */
.bfb-tabs {
    display: flex;
    margin-left: 20px;
}
.bfb-tab-link {
    padding: 15px 35px;
    border: none;
    cursor: pointer;
    background-color: #f07d5a;
    color: white;
    font-size: 16px;
    font-weight: bold;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    position: relative;
    transition: background-color 0.3s;
}
.bfb-tab-link.active {
    background-color: #fff;
    color: #333;
    z-index: 2;
}
.bfb-tab-link:not(.active):hover {
    background-color: #e06c4a;
}

/* --- Main Search Box --- */
.bfb-search-box {
    background-color: #fff;
    padding: 25px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: -1px;
    position: relative;
    z-index: 1;
}
#bfb-flight-search-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    align-items: flex-end;
}
#bfb-flight-search-form .form-group {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px 15px;
}
#bfb-flight-search-form label {
    display: block;
    font-size: 11px;
    color: #888;
    margin-bottom: 5px;
    font-weight: bold;
    text-transform: uppercase;
}
#bfb-flight-search-form input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    background: transparent;
}
input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
}
#bfb-flight-search-form .submit-row {
    text-align: center;
    margin-top: -35px;
    position: relative;
    z-index: 3;
}
#bfb-flight-search-form button[type="submit"] {
    background-color: #f07d5a;
    color: white;
    border: none;
    padding: 18px 50px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(240, 125, 90, 0.4);
    transition: background-color 0.3s;
}
#bfb-flight-search-form button[type="submit"]:hover {
    background-color: #e06c4a;
}
#bfb-flight-search-form .dashicons-search {
    font-size: 18px;
    line-height: inherit;
    vertical-align: middle;
    margin-left: 8px;
}

/* --- Search Results Area --- */
#bfb-search-results {
    margin-top: 30px;
}
.bfb-flight-card {
    display: grid;
    grid-template-columns: 2fr 5fr 2fr;
    align-items: center;
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
    gap: 15px;
}
.bfb-flight-card .airline-info { display: flex; align-items: center; gap: 15px; }
.bfb-flight-card .airline-info img { width: 40px; height: 40px; border-radius: 50%; object-fit: contain; }
.bfb-flight-card .airline-info .refund-status { font-size: 12px; color: #555; background: #f0f0f0; padding: 4px 8px; border-radius: 5px; margin-top: 4px; display: inline-block;}
.bfb-flight-card .flight-details { display: flex; align-items: center; justify-content: space-around; }
.bfb-flight-card .time-info { text-align: center; }
.bfb-flight-card .time-info .time { font-size: 20px; font-weight: bold; }
.bfb-flight-card .time-info .airport { font-size: 14px; color: #666; }
.bfb-flight-card .journey-info { text-align: center; color: #888; font-size: 13px; }
.bfb-flight-card .journey-info .plane-icon { font-size: 24px; color: #aaa; }
.bfb-flight-card .price-section { text-align: right; }
.bfb-flight-card .price-section .price { font-size: 28px; font-weight: bold; color: #1a1a1a; }
.bfb-flight-card .price-section .class { font-size: 14px; color: #777; }
.bfb-flight-card .price-section .book-now-btn {
    background-color: #28a745; /* Green as requested */
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s;
    width: 100%;
}
.bfb-flight-card .price-section .book-now-btn:hover { background-color: #218838; }
#bfb-loader { display: none; text-align: center; font-size: 18px; padding: 40px; color: #555; }
/* --- Booking Modal Styles --- */
.bfb-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bfb-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
}

.bfb-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
}

.bfb-modal-content h2 {
    margin-top: 0;
    margin-bottom: 10px;
}
.bfb-modal-content p {
    margin-bottom: 20px;
    color: #666;
}

.form-group-modal {
    margin-bottom: 15px;
}
.form-group-modal label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 14px;
}
.form-group-modal input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
}

.bfb-submit-booking-btn {
    width: 100%;
    padding: 15px;
    background-color: #f07d5a;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

/* --- Invoice/Token Styles --- */
.bfb-invoice-content {
    background-color: #0d121a;
    color: #fff;
    border-radius: 20px;
    padding: 25px;
    width: 90%;
    max-width: 380px;
    font-family: 'Segoe UI', sans-serif;
    border: 1px solid #333;
}

.bfb-invoice-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
}

.bfb-invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #2a2f36;
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.bfb-invoice-header h2 { margin: 0; font-size: 24px; }
.bfb-invoice-header .status { background: #f07d5a; padding: 5px 10px; border-radius: 5px; font-size: 14px; }

.bfb-invoice-details { display: flex; justify-content: space-between; margin-bottom: 25px; }
.bfb-invoice-details div { font-size: 14px; color: #aaa; }
.bfb-invoice-details div span { display: block; color: #fff; font-weight: bold; font-size: 16px; margin-top: 4px; }

.bfb-invoice-qr { text-align: center; margin-top: 20px; }
.bfb-invoice-qr img { max-width: 200px; width: 100%; border-radius: 10px; border: 5px solid #fff; }
.bfb-invoice-qr p { margin: 15px 0 5px; font-size: 14px; color: #aaa; }
.bfb-invoice-logo { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 15px; opacity: 0.8; }
.bfb-invoice-logo img { width: 30px; }