/* General Styles for the Finder */
.bifcf-container {
    font-family: Arial, sans-serif;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    max-width: 700px; /* Adjust as needed */
    margin: 20px auto;
}

.bifcf-container h2, .bifcf-container h3 {
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-top: 0;
}

.bifcf-search-tabs {
    margin-bottom: 20px;
    border-bottom: 1px solid #ccc;
    display: flex; /* Use flexbox for tabs */
}

.bifcf-search-tabs button {
    background-color: #f1f1f1;
    border: 1px solid #ccc;
    border-bottom: none; /* Remove bottom border for inactive tabs */
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1em;
    margin-right: 5px;
    border-radius: 5px 5px 0 0;
    transition: background-color 0.3s;
}

.bifcf-search-tabs button.active {
    background-color: #fff;
    border-bottom: 1px solid #fff; /* Make it look connected to content */
    position: relative;
    top: 1px; /* Align with content border */
}
.bifcf-search-tabs button:hover {
    background-color: #ddd;
}


.bifcf-search-panel {
    display: none; /* Hidden by default, shown by JS */
    padding: 15px;
    border: 1px solid #ccc;
    margin-top: -1px; /* Overlap with tab bottom border */
    background-color: #fff;
}

.bifcf-search-panel.active {
    display: block;
}

.bifcf-form-group {
    margin-bottom: 15px;
}

.bifcf-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.bifcf-form-group select,
.bifcf-form-group input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Important for 100% width */
}

.bifcf-form-group select:disabled,
.bifcf-form-group input[type="text"]:disabled {
    background-color: #f0f0f0;
    cursor: not-allowed;
}

.bifcf-submit-btn {
    background-color: #0073aa; /* WordPress blue */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s;
}
.bifcf-submit-btn:hover {
    background-color: #005a87;
}
.bifcf-submit-btn:disabled {
    background-color: #aaa;
    cursor: not-allowed;
}


/* Search Results Area */
#bifcf-results-area {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background-color: #fff;
}

#bifcf-results-area.loading {
    text-align: center;
    font-style: italic;
    color: #777;
}

#bifcf-results-area .bifcf-error {
    color: #d9534f; /* Bootstrap danger color */
    padding: 10px;
    border: 1px solid #d9534f;
    background-color: #f2dede;
    border-radius: 4px;
}

.bifcf-result-item {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #eee;
}
.bifcf-result-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.bifcf-result-item strong {
    color: #333;
    min-width: 120px; /* Align labels */
    display: inline-block;
}
.bifcf-result-item .ifsc-code-highlight {
    font-weight: bold;
    color: #d9534f; /* Or another highlight color */
}

.bifcf-gmap-container {
    margin-top: 15px;
    width: 100%;
    height: 300px; /* Adjust as needed */
}
.bifcf-gmap-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.bifcf-whatsapp-share {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 15px;
    background-color: #25D366; /* WhatsApp Green */
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
}
.bifcf-whatsapp-share:hover {
    background-color: #1EBE57;
}
.bifcf-whatsapp-share svg { /* Basic icon styling */
    vertical-align: middle;
    margin-right: 5px;
    width: 16px;
    height: 16px;
    fill: white;
}

.bifcf-seo-content {
    margin-top: 20px;
    padding: 15px;
    background-color: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 4px;
    line-height: 1.6;
    color: #444;
}
.bifcf-seo-content h4 {
    margin-top: 0;
    color: #333;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    .bifcf-search-tabs {
        flex-direction: column; /* Stack tabs vertically */
    }
    .bifcf-search-tabs button {
        width: 100%;
        margin-right: 0;
        margin-bottom: 2px; /* Spacing between stacked tabs */
        border-radius: 5px; /* Adjust radius for stacked tabs */
    }
     .bifcf-search-tabs button.active {
        border-bottom: 1px solid #ccc; /* Restore bottom border for active tab */
    }
    .bifcf-container {
        padding: 10px;
    }
}