/* RRN GeoDirectory Search Fix — Trucking services with optional sub-dropdown */

/* Hide all GD fields we don't want */
.gd-search-field-categories,
.gd-search-field-taxonomy,
.gd-search-field-distance,
.geodir-filter-container,
.geodir-more-filters {
    display: none !important;
}

/* Main & sub dropdown styling */
.rrn-gd-category-dropdown {
    width: 100%;
    padding: 8px 12px;
    font-size: 15px;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
    appearance: auto;
    cursor: pointer;
    box-sizing: border-box;
}

.rrn-gd-category-dropdown:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

/* Sub dropdown wrapper — slides in below main */
.rrn-gd-sub-wrapper {
    width: 100%;
    margin-top: 8px;
}

/* Error states — red border + shake */
.rrn-gd-field-error {
    border: 2px solid #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25) !important;
    animation: rrn-shake 0.5s ease-in-out;
}

@keyframes rrn-shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
    20%, 40%, 60%, 80% { transform: translateX(4px); }
}

/* Error message banner */
.rrn-gd-error-msg {
    background: #dc3545;
    color: #fff;
    padding: 10px 16px;
    border-radius: 4px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

/* Placeholder styling */
.rrn-gd-category-dropdown option[disabled] {
    color: #999;
}
