.dcfb-search-form {
    max-width: 1200px;
    margin: 0 auto;
    padding: 34px 20px 10px;
    font-family: inherit;
}

.dcfb-form-heading {
    text-align: center;
    font-size: 1.7em;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 20px;
}

/* ---------- Trip type pill toggle ---------- */
.dcfb-trip-type-pill {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 18px;
}
.dcfb-trip-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.dcfb-trip-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: 30px;
    background: #fff;
    color: #333;
    font-weight: 600;
    font-size: 0.95em;
    cursor: pointer;
    border: 1px solid #e3e6ec;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    user-select: none;
}
.dcfb-trip-option input:checked + .dcfb-trip-btn {
    background: #0066cc;
    color: #fff;
    border-color: #0066cc;
    box-shadow: 0 6px 16px rgba(0, 102, 204, 0.35);
}
.dcfb-trip-option input:focus-visible + .dcfb-trip-btn {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}
.dcfb-trip-btn .dcfb-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ---------- Search card row ---------- */
.dcfb-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    background: #fff;
    padding: 8px;
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(20, 30, 60, 0.1);
}

.dcfb-field-group {
    flex: 1;
    min-width: 165px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 12px 18px;
    position: relative;
}

.dcfb-field-group:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 18%;
    bottom: 18%;
    right: 0;
    width: 1px;
    background: #eceff3;
}

.dcfb-field-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    font-size: 0.78em;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #5b6472;
}
.dcfb-field-group label .dcfb-icon {
    width: 14px;
    height: 14px;
    color: #0066cc;
    flex-shrink: 0;
}

.dcfb-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.dcfb-field-group input[type="text"] {
    width: 100%;
    border: none;
    background: transparent;
    padding: 4px 22px 4px 0;
    font-size: 1em;
    font-weight: 600;
    color: #1a1a2e;
    box-sizing: border-box;
}
.dcfb-field-group input[type="text"]::placeholder {
    color: #a3a9b3;
    font-weight: 400;
}
.dcfb-field-group input[type="text"]:focus {
    outline: none;
}

.dcfb-input-icon {
    position: absolute;
    right: 0;
    width: 16px;
    height: 16px;
    color: #a3a9b3;
    pointer-events: none;
}

.dcfb-occupancy-trigger {
    background: none;
    border: none;
    padding: 4px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1em;
    color: #1a1a2e;
}
.dcfb-chevron {
    font-size: 0.7em;
    color: #a3a9b3;
    margin-left: 6px;
}

.dcfb-search-btn-group {
    flex: 0 0 auto;
    min-width: 150px;
    justify-content: center;
}
.dcfb-search-btn-group .dcfb-search-btn {
    color: #fff !important;
    border-color: #fff !important;
}
.dcfb-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 100%;
    min-height: 52px;
    background: linear-gradient(135deg, #0066cc, #0052a3);
    color: #fff;
    border: none;
    padding: 14px 26px;
    border-radius: 14px;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0, 102, 204, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dcfb-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 102, 204, 0.45);
}
.dcfb-search-btn .dcfb-icon {
    width: 17px;
    height: 17px;
}

/* ---------- Trust badges ---------- */
.dcfb-trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 34px;
    margin: 24px 0 6px;
}
.dcfb-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88em;
    font-weight: 500;
    color: #4a5160;
}
.dcfb-trust-item .dcfb-icon {
    width: 19px;
    height: 19px;
    color: #0066cc;
    flex-shrink: 0;
}

.dcfb-trip-type {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}
.dcfb-trip-type label {
    font-weight: normal;
}

.dcfb-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999 !important;
    justify-content: center;
    align-items: center;
    padding: 15px;
}
.dcfb-modal-content {
    background: white;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 25px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.dcfb-close {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 28px;
    cursor: pointer;
    color: #888;
    transition: color 0.2s;
}
.dcfb-close:hover { color: #333; }
.booking-summary {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid #0066cc;
}
.booking-summary p { margin: 6px 0; }
#dcfb-success-message {
    background: #e8f5e9;
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid #2e7d32;
    text-align: center;
}
#dcfb-success-message h3 { margin-top: 0; }

.dcfb-flight-listings .dcfb-flights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}
.dcfb-flight-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: box-shadow 0.3s;
}
.dcfb-flight-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.dcfb-flight-img { max-width: 100%; height: auto; border-radius: 4px; margin-bottom: 10px; }
.dcfb-flight-name { font-size: 1.2em; margin: 10px 0; }
.dcfb-route { color: #666; margin-bottom: 8px; }
.dcfb-price { font-size: 1.1em; font-weight: bold; color: #0066cc; margin-bottom: 12px; }
.dcfb-book-now-btn { background: #0066cc; color: white; border: none; padding: 8px 16px; border-radius: 4px; cursor: pointer; }
.dcfb-book-now-btn:hover { background: #0052a3; }

/* Travelers & Cabin Popup */
.dcfb-popup {
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    width: 320px;
    margin-top: 5px;
    left: 0;
}
.dcfb-popup-content { padding: 15px; }
.dcfb-popup-row { margin-bottom: 15px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.dcfb-popup-label { font-weight: bold; width: 40%; }
.age-hint { font-weight: normal; font-size: 0.8em; color: #666; }
.dcfb-popup-controls { display: flex; align-items: center; gap: 10px; }
.dcfb-popup-btn { width: 30px; height: 30px; border-radius: 50%; border: 1px solid #ccc; background: #f9f9f9; cursor: pointer; font-size: 18px; }
.dcfb-popup-slider { width: 100%; margin-top: 5px; }

/* Cabin Class - Grid layout */
.dcfb-cabin-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
    margin-top: 5px;
}
.dcfb-cabin-options label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: normal;
    cursor: pointer;
    white-space: nowrap;
}
.dcfb-cabin-options input[type="radio"] {
    margin: 0;
    width: auto;
}

.dcfb-popup-done {
    background: #0066cc;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .dcfb-row { flex-direction: column; padding: 6px; }
    .dcfb-field-group { padding: 14px 12px; }
    .dcfb-field-group:not(:last-child)::after {
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        width: auto;
        height: 1px;
    }
    .dcfb-search-btn-group { min-width: 100%; }
    .dcfb-search-btn { min-height: 48px; }
}

@media (max-width: 600px) {
    .dcfb-search-form { padding: 24px 14px 6px; }
    .dcfb-form-heading { font-size: 1.3em; margin-bottom: 16px; }
    .dcfb-trip-btn { padding: 9px 18px; font-size: 0.9em; }
    .dcfb-trust-badges { gap: 18px 22px; }
    .dcfb-trust-item { font-size: 0.8em; }
    .dcfb-popup {
        width: 280px;
        right: 0;
        left: auto;
    }
    .dcfb-popup-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .dcfb-popup-label {
        width: 100%;
        margin-bottom: 5px;
    }
    .dcfb-popup-controls {
        width: 100%;
        justify-content: center;
    }
    .dcfb-cabin-options {
        grid-template-columns: 1fr;
    }
    .dcfb-modal-content { padding: 15px; }
}
